Quickstart
Generate your first AI video with a single request
1. Export your API key
export MISTROUNTER_API_KEY="sk_..."Never expose this key in browser or mobile application code.
2. Create a generation
curl https://api.mistrounter.ai/v1/videos/generations \
-H "Authorization: Bearer $MISTROUNTER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: demo-wave-001" \
-d '{
"model": "kling-2.1-master",
"prompt": "A cinematic aerial shot of a glass city above the ocean",
"duration": 5,
"aspect_ratio": "16:9"
}'The response includes a generation ID:
{
"id": "7a97c8c2-...",
"object": "video.generation",
"status": "pending",
"model": "kling-2.1-master",
"credits": 1750,
"output": []
}3. Poll for completion
curl https://api.mistrounter.ai/v1/videos/generations/7a97c8c2-... \
-H "Authorization: Bearer $MISTROUNTER_API_KEY"Continue while the status is pending or processing. A successful response
has status: "success" and at least one URL in output. Failed generations
restore their reserved credits automatically.