REST API Generation Workflow
Create asynchronous image, animation, and sprite-sheet jobs and monitor them correctly.
Asynchronous jobs
Generation requests return a job identifier rather than blocking until the artifact is complete. Persist the identifier, poll status, and download only after completion.
Image to animation to sheet
- Create or identify the project and asset.
- Submit an image prompt and optional references.
- Poll the image job and review its artifact.
- Submit animation using the source image job.
- Poll and optionally edit the animation in Studio.
- Submit sprite-sheet generation using the source video job.
- Download artifacts and metadata.
Errors
Handle validation, authentication, insufficient-credit, forbidden, rate-limit, and transient service errors separately. Retry only transient failures and use bounded exponential backoff.
Orientation and specialized options
Send camera and subject orientation through their dedicated fields. Use the documented flags for background removal, tileability, parallax, extension, sizing, quality, and output timing.