Download Collection
Nine requests in Postman Collection v2.1 format
Download Environment Template
Blank local variables; no credentials or media URLs included
What’s included
The collection covers these small workflows:- Generate one image and retrieve its status and downloads.
- Animate an owned product image and retrieve the resulting video.
- Edit an image.
- Swap faces in two images you have permission to use.
- Lip-sync five seconds of a consented video to supplied audio.
- Request a signed image-upload URL and upload PNG bytes without forwarding your Magic Hour authorization header to storage.
Open the public workspace
The official Magic Hour workspace on Postman contains the same nine-request collection. Fork the collection into your own workspace, then import the blank environment template above and configure local credentials as described below. The public workspace contains no shared environment. You can also browse the published request documentation without signing in. The generated code examples show authentication separately at the collection level; include your bearer token when adapting a request outside Postman.Import and configure
- Download both files above.
- In Postman, select Import, then import both JSON files.
- Select the Magic Hour — Local credentials and media environment.
- Set
api_keyto your Magic Hour API key. Keep its type set to secret and its value local; do not share the value or export the populated environment. Marking a variable secret masks it but does not by itself prevent sharing. - Add only the media variables needed by the request you plan to send. Each can
be a direct public URL you control or a Magic Hour
api-assets/...path.
First safe run
- Send 01 — Generate one image once. It uses a small default example and
saves
image_project_id. - Wait several seconds, then send 02 — Get image result. Repeat request 02
until the status is
complete,error, orcanceled. - When complete, use the temporary URL in
downloadsbefore it expires.
upload_url and image_url.
Credential and output hygiene
- Requests with missing credentials or required variables are skipped. Check the Postman Console for the missing field. A failed creation request leaves your last successful project ID available for recovery.
- Never commit or publish an environment after adding an API key, signed upload URL, private media URL, or project ID.
- The collection applies bearer authentication to Magic Hour API requests. The binary storage upload explicitly uses no authentication.
- Project output URLs are temporary. Copy completed media into storage you control when your application needs durable access.
- Treat the included response checks as developer feedback, not as a substitute for application-level retries, deadlines, webhook verification, or moderation.