curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "grok-imagine",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A couple of doors open sequentially, revealing living rooms, kitchens, bedrooms, and offices with residents inside",
"aspect_ratio": "16:9",
"mode": "normal"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}Grok (xAI)
Grok Imagine Video Generation
High-quality video generation with Grok Imagine
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "grok-imagine",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A couple of doors open sequentially, revealing living rooms, kitchens, bedrooms, and offices with residents inside",
"aspect_ratio": "16:9",
"mode": "normal"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the response result through the unified Query Task Status endpoint.
Grok Imagine Video Generation
Generate high-quality videos using Grok Imagine. Create engaging content with text-to-video and image-to-video capabilities.Available Model
- grok-imagine - Video generation (text-to-video and image-to-video)
Key Features
- Flexible Modes: Text-to-video and image-to-video
- Generation Styles: Choose from “fun”, “normal”, or “spicy” modes
- Aspect Ratios: 1:1 (square), 2:3 (portrait), 3:2 (landscape), 16:9 (widescreen), and 9:16 (vertical)
- Video Duration: 6 seconds or 10 seconds (configurable via
durationparameter)
Authorizations
All API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
