Catalog
AIPOSTlive

Video generation (async)

Generate a short video from a text prompt with StableStudio Grok Video, then poll the returned job id until completion.

$0.15-$0.75
per call
Success
100%
p50 latency
1.18s
p95 latency
2.61s
Calls (30d)
2
FlowVideo generation (async) (this step) →Video generation job status(free)— the response's native job handle feeds step ②; agents get the same provider-pinned hint in h402.followUp.

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
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"}'
CLI
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 USDC

Fill 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 chars

Detailed description of the video to generate.

modelstringrequired

StableStudio video model. The current enabled model is Grok Video; additional higher-priced models need separate paid probes before being added.

One of
durationstringoptionaldefault 6

Video duration in seconds. StableStudio quotes longer clips at a higher price.

One of
resolutionstringoptionaldefault 720p

Output video resolution.

One of
aspect_ratiostringoptionaldefault 16:9

Output video aspect ratio.

One of
imagestringoptional

Optional public reference image URL for image-to-video generation.

e.g.
POST/routes/stablestudio-video/ai/video-generate-async
Request body
{
  "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.

ResponseExample response
{
  "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.

stablestudio-video
x402
100
Success
100%
p50
1.18s
Calls
2
100%
Dynamic $0.15-$0.75; quote required$0.225/call
Last successful call: 23d ago· Aggregated by h402 — not the source provider