Wan 2.6 image-to-video generation via USDC micropayments — no API keys required.
What it does
This endpoint animates a source image into video using the Wan 2.6 model, accessed through StableStudio's pay-per-generation API. You POST a prompt and an uploaded image URL to `/api/generate/wan-2.6/i2v`, pay with USDC on Base (or Tempo L2), and receive an async job ID. Poll the job endpoint until the video is ready. No API keys or subscriptions are needed — authentication and payment happen via on-chain wallet signatures.
The Wan 2.6 i2v endpoint accepts a source image URL (uploaded via StableStudio's file upload flow), a text prompt describing the desired motion, and configuration options including resolution (720p or 1080p), duration (5, 10, or 15 seconds), negative prompt, prompt expansion, multi-shot narrative mode, audio sync URL, and a reproducibility seed. Pricing is dynamic, ranging from $0.50 to $2.25 per generation depending on resolution and duration, with generation times of 2–5 minutes.
The payment flow uses the x402/MPP protocol: an unauthenticated POST returns HTTP 402 with a `PAYMENT-REQUIRED` header containing USDC payment details (Base network, 6 decimals). After signing and submitting payment, the endpoint returns a job ID. Job status is polled via `GET /api/jobs/{jobId}` using a SIGN-IN-WITH-X wallet signature header. Completed video jobs return a `videoUrl` and `thumbnailUrl`. The endpoint is POST-only, which is why HEAD/GET probes returned 405 — this is expected behavior, not a failure.
Capabilities
Use cases
- —Animate a product photo into a short promotional video clip
- —Turn concept art or storyboard frames into motion previews
- —Generate social media video content from a single still image
- —Create animated visual effects from reference photographs
- —Produce video prototypes from design mockups
Fit
Best for
- —Agents needing pay-per-call image-to-video without subscriptions
- —Workflows requiring up to 1080p, 15-second AI-generated video from a single image
- —Developers integrating crypto-native micropayment video generation
Not for
- —Real-time or low-latency video generation (2–5 min processing time)
- —Users without a crypto wallet (USDC on Base or Tempo required)
- —Long-form video production beyond 15 seconds per generation
Quick start
# 1. POST without payment to get 402 challenge
curl -X POST https://stablestudio.dev/api/generate/wan-2.6/i2v \
-H 'Content-Type: application/json' \
-d '{"prompt": "A cat slowly turning its head", "image": "https://your-blob-url.vercel-storage.com/cat.png", "duration": "5", "resolution": "720p"}'
# Returns 402 with PAYMENT-REQUIRED header
# 2. Decode header, sign USDC payment, re-POST with PAYMENT-SIGNATURE header
# 3. Poll GET /api/jobs/{jobId} with SIGN-IN-WITH-X headerExample
Request
{
"seed": 42,
"image": "https://example.blob.vercel-storage.com/uploads/abc/cat.png",
"prompt": "A cat slowly turning its head and blinking",
"duration": "5",
"multiShots": false,
"resolution": "720p",
"negativePrompt": "blurry, distorted",
"enablePromptExpansion": true
}Response
{
"type": "wan-2.6-i2v",
"jobId": "job_abc123def456",
"status": "pending",
"success": true
}Endpoint
Quality
Full OpenAPI schema with detailed input/output definitions, clear pricing ($0.50–$2.25), comprehensive documentation in x-guidance, and well-defined payment flow. The 405 on HEAD/GET is expected for a POST-only endpoint. Deducted slightly because the probe did not capture an actual 402 challenge for this specific endpoint (POST was not attempted), and no dedicated docs page exists (404).
Warnings
- —Probe returned 405 because HEAD/GET were tried on a POST-only endpoint — endpoint is expected to be live
- —File upload flow ($0.01) required before using this endpoint — source image must be uploaded via /api/upload first
- —Generation takes 2–5 minutes; poll every 10 seconds with 10-minute timeout
Citations
- —Wan 2.6 i2v costs $0.50–$2.25 per generation and takes 2–5 minuteshttps://stablestudio.dev/api/openapi.json
- —Payment is USDC on Base network (6 decimals)https://stablestudio.dev/api/openapi.json
- —i2v endpoint accepts image, prompt, duration (5/10/15), resolution (720p/1080p), negativePrompt, enablePromptExpansion, multiShots, audioUrl, seedhttps://stablestudio.dev/api/openapi.json
- —File upload flow costs $0.01 and uses Vercel Blob storagehttps://stablestudio.dev/api/openapi.json
- —Job polling uses SIGN-IN-WITH-X header with CAIP-122 wallet signaturehttps://stablestudio.dev/api/openapi.json
- —StableStudio supports USDC on Base, Solana, or Tempo paymenthttps://stablestudio.dev