Skip to main content

Get Video API

Retrieves the status of a video being generated and automatically triggers the next steps (clip generation, final render). This endpoint is idempotent and can be called regularly to track progress.

Authentication

All requests must include the header:
  • x-api-key: YOUR_API_KEY

Headers

string
required
Your IACrea API key

URL Parameters

string
required
Unique video identifier (returned by POST /api/video-editor/generate/video)

Responses

This endpoint returns different statuses depending on the generation progress:

200 — status: "GENERATING_VIDEO"

Video clips (sequences) are being generated.
string
Status: "GENERATING_VIDEO"
number
Remaining video credits
number
Credits used
array
List of generated content with their current status ("pending" | "success" | "error")

200 — status: "START_RENDERING_VIDEO"

All sequences are ready and the final video render is starting.
string
Status: "START_RENDERING_VIDEO"
number
Render progress (0 at start)
number
Remaining video credits
number
Credits used
array
List of generated content

200 — status: "RENDERING_VIDEO"

The final video render is in progress.
string
Status: "RENDERING_VIDEO"
number
Render progress (number between 0 and 1, or 0-100 depending on implementation)
number
Remaining video credits
number
Credits used

200 — status: "DONE"

The final video is ready and available.
string
Status: "DONE"
string
URL of the generated final video
string
Video identifier
array
List of generated content with their final status
number
Remaining video credits
number
Credits used

200 — status: "PENDING"

Transitional state. May be returned when a sequence has an error and regeneration is automatically restarted on the server.
string
Status: "PENDING"
string
Optional error message (e.g. "Re-generating video in error")

401 — Unauthorized

Returned if x-api-key is missing or invalid.

404 — Not Found

Returned if the video id does not exist.

500 — Server Error

Internal server error.

Request Example

Response Examples

Generation in progress

Render in progress

Video complete

Integration Recommendations

  • Polling: Call this endpoint every 2-5 seconds until you get status "DONE" or "ERROR"
  • Timeout: Plan for a client-side timeout (e.g. 10-20 minutes) depending on render duration
  • Resilience: If you receive "PENDING" after already seeing "GENERATING_VIDEO", keep polling: the server may automatically restart failed sequences
  • Webhook: If you provided a webhookUrl when creating the video, you will also receive a notification when the video is ready