Videos
Generate AI video ads and check their status.
/developer/videos/generateGenerate a new video from a text prompt. Deducts credits from your account.
Request Body
promptstringrequiredText prompt describing the video (max 5000 chars)
durationintegerVideo duration in seconds: 4, 8, or 12. Default: 12
aspect_ratiostring"9:16" (portrait) or "16:9" (landscape). Default: "9:16"
stylestringOptional style hint for the generation
reference_image_urlstringURL to a reference image for style guidance
webhook_urlstringURL to receive a POST when generation completes or fails
Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "queued",
"credits_used": 6,
"duration_seconds": 12,
"aspect_ratio": "9:16",
"video_url": null,
"created_at": "2026-02-08T12:00:00",
"error": null
}Credits
1 credit = 2 seconds of video. A 12-second video costs 6 credits, an 8-second video costs 4 credits, and a 4-second video costs 2 credits.
/developer/videos/{id}Get video status and download URL (when completed).
Poll this endpoint to check if your video is ready. When status is completed, the video_url field contains a presigned download URL (valid for 1 hour).
/developer/videosList your videos with optional status filter and pagination.
statusstringFilter: "queued", "processing", "completed", "failed"
pageintegerPage number (default: 1)
per_pageintegerResults per page, 1-100 (default: 20)