
MAGI-2
Sand AI
Text to VideoImage to VideoReference to VideoFrom $0.08 / s
MAGI-2 generates up to 30-second 1080p videos with native audio, multimodal references, precise timeline control, and targeted video editing.
Input
Mode
Complete required fields to see price
Text To Video · 1080p · 5s
Idle output unavailable
| Duration | Resolution | Type | Price |
|---|---|---|---|
| output second | 1080p | Image to Video | $0.08 / s |
| Reference to Video | $0.08 / s | ||
| Text to Video | $0.08 / s |
* Actual charges are based on the final output.
Endpoint
POST
https://pollo.ai/api/platform/v1/generation/sand-ai/magi-2/videoMode
Authentication
Pass your API key in the x-api-key request header.
x-api-key: YOUR_API_KEYView API KeysSubmit Task
Create a model generation task.
Request
curl -X POST 'https://pollo.ai/api/platform/v1/generation/sand-ai/magi-2/video' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"input": {
"prompt": "At dawn, waves break gently against the rocks as the camera slowly moves forward.",
"resolution": "1080p",
"duration": 5,
"aspectRatio": "16:9",
"generateAudio": true
}
}'Response (200)
{
"taskId": "task_01HZ7Q2V8J3E4T6Y9K0M1N2P3",
"status": "pending"
}Check Status
Poll the task status endpoint until generation completes.
HTTP request
GET /api/platform/v1/generation/{taskId}/status HTTP/1.1
Host: pollo.ai
x-api-key: YOUR_API_KEYResponse (200)
{
"taskId": "task_01HZ7Q2V8J3E4T6Y9K0M1N2P3",
"credit": 12,
"costUsd": 0.12,
"generations": [
{
"id": "generation_01",
"createdDate": "2026-07-13T07:00:00.000Z",
"updatedDate": "2026-07-13T07:00:12.000Z",
"status": "succeeded",
"failMsg": null,
"url": "https://example.com/output.mp4",
"mediaType": "video"
}
]
}Webhook
Optionally include webhookUrl to receive a callback when the task succeeds or fails.
Optional request field
{
"input": {
"prompt": "At dawn, waves break gently against the rocks as the camera slowly moves forward.",
"resolution": "1080p",
"duration": 5,
"aspectRatio": "16:9",
"generateAudio": true
},
"webhookUrl": "https://example.com/webhooks/pollo"
}Schema
Input fields for the selected endpoint and mode.
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Text prompt describing the content to generate. |
| resolution | string | No | Output resolution of the generated media (e.g. 720p, 1080p, 2K, 4K). Values are case-insensitive. |
| duration | integer | No | The duration of the generated video, in seconds. |
| aspectRatio | string | No | Output aspect ratio, as width:height (e.g. 16:9). |
| generateAudio | boolean | No | Generate natural-sounding, fitting audio for the output video. |
Errors
Common public API response codes.
- 400
- Invalid input or model constraint
- 401
- Missing or invalid API key
- 403
- API key does not have access
- 404
- Model or task was not found
Model documentation is coming soon.