Video generation (async)
Generate a short video from a text prompt with StableStudio Grok Video, then poll the returned job id until completion.
Provider contract
- Call path
- /routes/stablestudio-video/ai/video-generate-async
- Method
- POST
- Selected provider
- stablestudio-videodefault
- Provider price
- Dynamic $0.15-$0.75; quote required
- Settlement
- Base USDC · x402 · 5% h402 fee
Quickstart
Both commands call the selected provider directly.
curl -X POST '/routes/stablestudio-video/ai/video-generate-async' \
-H 'content-type: application/json' \
-d '{"prompt":"A tiny robot waving at the camera in a cozy workshop","model":"grok-video","duration":"6","resolution":"720p","aspect_ratio":"16:9"}'h402 call 'ai/video-generate-async' --provider 'stablestudio-video' --method POST --json '{"prompt":"A tiny robot waving at the camera in a cozy workshop","model":"grok-video","duration":"6","resolution":"720p","aspect_ratio":"16:9"}'Parameters & live test
pays real USDCFill the request fields, quote the exact per-call total, then choose x402 or eligible bonus credit explicitly before sending. Only the selected provider's listed parameters are accepted.
promptstringrequired1–8000 charsDetailed description of the video to generate.
modelstringrequiredStableStudio video model. The current enabled model is Grok Video; additional higher-priced models need separate paid probes before being added.
durationstringoptionaldefault 6Video duration in seconds. StableStudio quotes longer clips at a higher price.
resolutionstringoptionaldefault 720pOutput video resolution.
aspect_ratiostringoptionaldefault 16:9Output video aspect ratio.
imagestringoptionalOptional public reference image URL for image-to-video generation.
{
"prompt": "A tiny robot waving at the camera in a cozy workshop",
"model": "grok-video",
"duration": "6",
"resolution": "720p",
"aspect_ratio": "16:9"
}This starts a job — poll Video generation job status (ai/video-generate-async-status) for the final result.
{ "data": { "success": true, "jobId": "cmrwc9rqh000404k3g7kighfi", "status": "pending", "type": "grok-video-generate", "pollUrl": "https://stablestudio.dev/api/jobs/cmrwc9rqh000404k3g7kighfi" }, "h402": { "routeId": "ai/video-generate-async", "provider": "stablestudio-video", "selectedCandidateId": "ai/video-generate-async/stablestudio-video", "routing": "manual", "followUp": { "routeId": "ai/video-generate-async-status", "path": "/routes/stablestudio-video/ai/video-generate-async-status", "method": "GET", "params": { "jobId": "cmrwc9rqh000404k3g7kighfi" }, "docsUrl": "https://h402-test.hunt.town/catalog/ai/video-generate-async-status", "instruction": "This response is a job receipt, not the final result. Poll GET /routes/stablestudio-video/ai/video-generate-async-status with the returned id as jobId (free) until the provider reports completion — terminal status labels are provider-native, and a failure status means the job errored. Final-result example: https://h402-test.hunt.town/catalog/ai/video-generate-async-status" }, "paidBy": "x402-exact" } }
Providers
Choose a provider for this task. The catalog recommends the current default from quality, reliability, and price; your selected provider stays pinned. Listed prices are provider prices; settlement adds a 5% h402 fee.
- Success
- 100%
- p50
- 1.18s
- Calls
- 2