Skip to content

What should I save from a Magic Hour create response if the finished MP4 isn't there yet?

Save the project ID and the reported credits_charged along with your approved request settings. Magic Hour's create response documents queue acceptance rather than file delivery. Use the job status or configured callback to learn when a usable output exists.

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval

Store receipt data durably

Tie the project ID to the customer's source and quote. Avoid leaking private upload URLs into logs or user-visible error messages.

Attach the generated file later

When completion is confirmed, obtain the actual output, validate it and record the download separately. Treat any failure or credit return as its own state.

Example

A response can already record a charge for a queued operation while the file status remains pending.

Pass condition

The job is recoverable from the same ID and the customer sees a download only when the actual artifact is ready.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation