Base URL, method, and required headers are rendered from the active protocol template for this model.
POSThttps://api.gate.ai/api/v1/videos
Field
Value
Authorization
Authentication header containing the API key in the format Bearer {API_KEY}
Content-Type
Request content type, fixed to application/json
Idempotency-Key
Optional idempotency key; repeated submissions with the same value do not create duplicate jobs
model
Required video model ID; the current model is grok-imagine-video-1.5
prompt
Required video description; include subject, action, scene, camera, and style
duration
Optional video duration in seconds; supported range depends on the model
resolution
Optional output resolution: 480p, 720p, or 1080p
aspect_ratio
Optional aspect ratio: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, or adaptive
generate_audio
Optional; whether to generate audio
seed
Optional random seed from -1 to 4294967295
size
Optional exact output size, such as 1280x720
input_references
Optional reference media array for image-to-video, first or last frames, or style transfer
metadata
Optional pass-through business object for auditing or source tags
webhook_url
Optional callback URL invoked when the job completes or fails
