Skip to content

How do I stop an image job result being offered as a video download in a mixed creation app?

Use the job's returned media kind and the response's actual content type. A common job list can contain images, videos and text payloads.

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

Persist kind

Store the provider's kind alongside your local generation request and route it to the correct preview component. Do not infer video from a generic Completed state.

Handle disagreement

Validate the complete download response and inspect bytes when the declared media looks unexpected. Keep the original job record rather than forcing a .mp4 suffix.

Test all supported types

Use an approved mock image, a video and a text response to check label, filter and file extension.

Pass condition

Only video results enter video-only playback and the saved format matches the delivered object.

Sources

One task. A recoverable workflow.

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

Open API documentation