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_00000000000000000000000000000000Endpoints
1. Create Task
Request
POST https://api.pixwithapi.online/api/task/createHeaders
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Api-Key | {API_KEY} | Yes |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | The input prompt (e.g., “A cinematic close-up of a woman turning toward the camera”) |
| image_urls | array | Yes | [“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_id | string | Yes | 2-54 |
| options | object | Yes | Configuration options for the task |
| options.prompt_optimization | boolean | Yes | If true, all prompt words will be automatically translated into English. |
| options.aspect_ratio | string | Yes | Aspect ratio of the output. Valid values: 'auto', '1:1', '16:9', '9:16', '4:3', '3:4', '3:2', '2:3'. Default: 'auto'. |
| options.resolution | string | Yes | Resolution of the output. Valid values: '480p', '720p', '1080p'. Default: '480p'. '1080p' only supports a single start frame. |
| options.duration | int | Yes | Duration 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
| Parameter | Type | Description |
|---|---|---|
| code | int | 1=success, 0=error |
| message | string | Success and failure messages |
| data | object | |
| data.task_id | string | |
| data.estimated_time | int | Estimated time in seconds |
Response
{
"code": 1,
"message": "success",
"data": {
"task_id": "d425ab4dc256f0ebaa84862b9cea8a3d",
"estimated_time": 180
}
}Last updated on