Skip to Content
Video ModelsGrok Imagine 1.5

Grok Imagine 1.5

Overview

Grok Imagine Video 1.5 is xAI’s AI video generation model that creates realistic videos, generates synchronized audio, and supports video editing workflows with strong prompt adherence and consistent visual quality.

Test API KEY: key_00000000000000000000000000000000

Endpoints

1. Create Task

Request

POST https://api.pixwithapi.online/api/task/create

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Api-Key{API_KEY}Yes

Request Parameters

ParameterTypeRequiredDescription
promptstringYesThe input prompt (e.g., “A cinematic close-up of a woman turning toward the camera”)
image_urlsarrayYes[“https://cdn.pixwithapi.online/start_frame.jpg ”, “https://cdn.pixwithapi.online/end_frame.jpg ”]. Provide 1 or 2 images. The first image is the start frame (required), and the second image is the end frame (optional). 1080p only supports a single start frame.
model_idstringYes2-54
optionsobjectYesConfiguration options for the task
options.prompt_optimizationbooleanYesIf true, all prompt words will be automatically translated into English.
options.aspect_ratiostringYesAspect ratio of the output. Valid values: 'auto', '1:1', '16:9', '9:16', '4:3', '3:4', '3:2', '2:3'. Default: 'auto'.
options.resolutionstringYesResolution of the output. Valid values: '480p', '720p', '1080p'. Default: '480p'. '1080p' only supports a single start frame.
options.durationintYesDuration in seconds. Valid values: 5, 10, 15. Default: 5.

Example Request - Start Frame

{ "prompt": "A cinematic portrait shot with natural motion, realistic lighting, and synchronized ambient audio", "image_urls": [ "https://cdn.pixwithapi.online/images/example.jpeg" ], "model_id": "2-54", "options": { "prompt_optimization": true, "aspect_ratio": "auto", "resolution": "1080p", "duration": 5 } }

Example Request - Start and End Frames

{ "prompt": "The camera slowly pushes in as the scene transitions naturally from the start frame to the end frame", "image_urls": [ "https://cdn.pixwithapi.online/start_frame.jpg", "https://cdn.pixwithapi.online/end_frame.jpg" ], "model_id": "2-54", "options": { "prompt_optimization": true, "aspect_ratio": "auto", "resolution": "720p", "duration": 5 } }

Response Parameters

ParameterTypeDescription
codeint1=success, 0=error
messagestringSuccess and failure messages
dataobject
data.task_idstring
data.estimated_timeintEstimated time in seconds

Response

{ "code": 1, "message": "success", "data": { "task_id": "d425ab4dc256f0ebaa84862b9cea8a3d", "estimated_time": 180 } }
Last updated on