Generate a 1080p video with synchronized audio from a text prompt with MAGI-2 API. Describe the scene, action, camera movement, dialogue and sound, then retrieve the finished video through the asynchronous task API.
Developer API pricing
Provider: SeeAPI
USD estimate: $0.0037 / credit · Estimated equivalent, not an additional charge.
Price: 23.49 credits/sec (≈ $0.088/sec)
/v1/generationsA unique key used to safely retry the same request.
order-20260818-001The model identifier.
magi-2magi-2magi-2The generation capability to run.
text-to-videotext-to-videotext-to-videoThe public provider to use.
seeapiseeapiseeapiThe text prompt and output settings for this generation.
Provider parameters
seeapiDefault ProviderDescribe the subjects, action, camera movement, dialogue and sound to generate.
A lighthouse keeper climbs a spiral staircase at dusk. The camera follows from below as waves crash outside and wind howls through the windows.The output frame aspect ratio.
21:916:94:31:13:49:1616:9The output video duration in seconds.
5The output video resolution.
1080p1080pWhether to generate synchronized dialogue, sound effects, ambience and music with the video.
trueA seed for reproducible variations.
An absolute HTTPS URL that receives the terminal generation webhook.
https://client.example.com/webhooks/seeapiThe accepted generation and its current processing status.
The generation identifier. Save it to query status and retrieve the result.
task_xxxThe model used for this generation.
magi-2The endpoint used for this generation.
text-to-videoThe selected public provider.
seeapiseeapi: SeeAPIseeapiThe current generation state. Processing does not mean the video is ready.
processingprocessingThe estimated charge in public credits for this request.
117.45Credits consumed by this generation so far.
0Credits refunded for this generation so far.
0The time the generation was created, in ISO 8601 format.
2026-08-18T10:00:00ZThe time the generation was last updated, in ISO 8601 format.
2026-08-18T10:00:00ZWhether this is a replay of an earlier request with the same idempotency key.
falseThe accepted generation and its current processing status.
The generation identifier. Save it to query status and retrieve the result.
task_xxxThe model used for this generation.
magi-2The endpoint used for this generation.
text-to-videoThe selected public provider.
seeapiseeapi: SeeAPIseeapiThe current generation state. Processing does not mean the video is ready.
processingprocessingThe estimated charge in public credits for this request.
117.45Credits consumed by this generation so far.
0Credits refunded for this generation so far.
0The time the generation was created, in ISO 8601 format.
2026-08-18T10:00:00ZThe time the generation was last updated, in ISO 8601 format.
2026-08-18T10:00:00ZWhether this is a replay of an earlier request with the same idempotency key.
falseInvalid JSON, parameters, Schema, or API Policy
Invalid API Key or authentication failed
Insufficient credits
The current request is not allowed
Model, Endpoint, or task not found
Idempotency conflict or the same request is still being created
Request body is too large
Too many requests
Service temporarily unavailable
After submitting a task, use the unified query endpoint to check progress and retrieve results:
Submit requests from your server using a Bearer API key. Store the generation identifier and use Get Task Details to check progress and retrieve the result. Acceptance does not mean the video is complete.
Manage the secret used to verify generation webhook signatures. Callback URLs are supplied when you create each generation.
Callback URL per generation.
const response = await fetch("https://api.seeapi.com/v1/generations", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "order-20260818-001",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "magi-2",
"endpoint": "text-to-video",
"provider": "seeapi",
"input": {
"prompt": "A lighthouse keeper climbs a spiral staircase at dusk. The camera follows from below as waves crash outside and wind howls through the windows.",
"aspect_ratio": "16:9",
"duration_seconds": 5,
"resolution": "1080p",
"generate_audio": true
},
"callback_url": "https://client.example.com/webhooks/seeapi"
})
});
const result = await response.json();{
"generation": {
"id": "task_xxx",
"model": "magi-2",
"endpoint": "text-to-video",
"provider": "seeapi",
"status": "processing",
"estimated_credits": 117.45,
"consumed_credits": 0,
"refunded_credits": 0,
"created_at": "2026-08-18T10:00:00Z",
"updated_at": "2026-08-18T10:00:00Z"
},
"idempotent": false
}