Wan 2.6 text-to-video generation via USDC micropayments — up to 1080p, 15 seconds, no API key required.
What it does
This endpoint provides text-to-video generation using the Wan 2.6 model, accessed through StableStudio's pay-per-generation API. It accepts a text prompt and returns an asynchronous job that produces a video. Resolutions range from 720p (1280×720) to 1080p (1920×1080) in both landscape and portrait orientations, with durations of 5, 10, or 15 seconds. Additional parameters include negative prompts, prompt expansion, multi-shot narrative mode, audio URL sync, and a reproducibility seed. Pricing is dynamic, ranging from $0.50 to $2.25 per generation depending on resolution and duration, with typical generation times of 2–5 minutes.
Payment is handled via the MPP protocol (Tempo method, intent: charge) or x402, settling in USDC on Base (EIP-155:8453). No API keys or subscriptions are needed — callers POST to the endpoint without a payment header to receive a 402 challenge containing the exact USDC amount, then resubmit with a signed PAYMENT-SIGNATURE header. On success the endpoint returns a jobId with status "pending"; the caller then polls GET /api/jobs/{jobId} using a SIGN-IN-WITH-X wallet signature header until the job completes and returns a videoUrl and thumbnailUrl. Recommended polling interval for video is every 10 seconds with a 10-minute timeout.
StableStudio also exposes a companion Wan 2.6 image-to-video (i2v) endpoint at the same price range, which requires uploading a source image first via the /api/upload flow. The full OpenAPI spec is available at /api/openapi.json and an MCP server is installable via `npx -y agentcash@latest`.
Capabilities
Use cases
- —Generate short video clips from text descriptions for social media content
- —Produce product demo or explainer videos from written scripts
- —Create animated storyboard sequences with multi-shot narrative mode
- —Sync generated video to an existing audio track
- —Prototype cinematic shots at up to 1080p before committing to full production
Fit
Best for
- —Agents or apps that need on-demand text-to-video without managing API keys or subscriptions
- —Workflows requiring high-resolution (up to 1080p) AI-generated video clips
- —Crypto-native applications that can sign USDC payments on Base
Not for
- —Real-time or low-latency video needs (generation takes 2–5 minutes)
- —Callers without an EVM wallet capable of signing USDC transactions on Base
- —Long-form video production (max 15 seconds per generation)
Quick start
# 1. Get 402 challenge
curl -X POST https://stablestudio.dev/api/generate/wan-2.6/t2v \
-H 'Content-Type: application/json' \
-d '{"prompt": "A golden retriever running through a field of sunflowers", "duration": "5", "size": "1280*720"}'
# → 402 with PAYMENT-REQUIRED header (base64 JSON)
# 2. Sign USDC payment, resubmit with PAYMENT-SIGNATURE header
# 3. Poll GET /api/jobs/{jobId} with SIGN-IN-WITH-X header until completeExample
Request
{
"seed": 42,
"size": "1280*720",
"prompt": "A golden retriever running through a field of sunflowers at sunset, cinematic lighting",
"duration": "5",
"multiShots": false,
"negativePrompt": "blurry, low quality",
"enablePromptExpansion": true
}Response
{
"type": "wan-2.6-t2v",
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "pending",
"success": true
}Endpoint
Quality
Full OpenAPI schema with detailed input/output definitions, comprehensive x-guidance documentation, clear pricing, and well-documented payment flow. The endpoint returned 405 on HEAD/GET probes (expected since it's POST-only), but the OpenAPI spec and agents.txt confirm it is live. Minor deduction for no dedicated docs page and no direct 402 capture on the specific endpoint.
Warnings
- —Probe returned 405 because HEAD/GET were used on a POST-only endpoint; the endpoint is confirmed live via OpenAPI spec
- —No dedicated documentation page exists (/docs returns 404); all docs are embedded in the OpenAPI x-guidance field
- —Generation takes 2–5 minutes; callers must implement async job polling
Citations
- —Wan 2.6 t2v costs $0.50–$2.25 per generation and takes 2–5 minuteshttps://stablestudio.dev/api/openapi.json
- —Supported sizes are 1280*720, 720*1280, 1920*1080, 1080*1920 with durations 5, 10, or 15 secondshttps://stablestudio.dev/api/openapi.json
- —Payment settles in USDC on Base (EIP-155:8453) via x402 or MPP Tempo methodhttps://stablestudio.dev/api/openapi.json
- —MCP server available via npx -y agentcash@latesthttps://stablestudio.dev/agents.txt
- —Amount is USDC micro-units with 6 decimalshttps://stablestudio.dev/api/openapi.json