WAN3 Developer Platform

One API for image and video creation.

Discover available models, import owned media safely, submit with cross-model idempotency, and read results from WAN3-owned storage.

/models

Runtime model discovery

/uploads

Verified owned media

/generations

Unified image and video tasks

Your first generation

curl https://wan3.net/api/v1/generations \
  -H "Authorization: Bearer $WAN3_API_KEY" \
  -H "Idempotency-Key: video-job-001" \
  -H "Content-Type: application/json" \
  -d '{"model":"wan3","input":{"type":"text-to-video","workflow":"t2v","prompt":"A paper dragon crossing an orange-lit city","duration":5,"resolution":"720p","aspect_ratio":"16:9"}}'
OpenAPI 3.1MarkdownIdempotency-Key requiredNo browser CORS keys

WAN3 Agent Skills · v1.0.0

Download image and video generation Skills

The Skills call the WAN3 platform with your WAN3 API key. Internal service credentials remain server-side and are never distributed to a Skill or developer.

unzip wan3-agent-skills-v1.0.0.zip
export WAN3_API_KEY=wan3_live_...
# Copy wan3-image-generation or wan3-video-generation into your agent's skills directory.

Text to image

curl https://wan3.net/api/v1/generations \
  -H "Authorization: Bearer $WAN3_API_KEY" \
  -H "Idempotency-Key: image-job-001" \
  -H "Content-Type: application/json" \
  -d '{"model":"nano-banana","input":{"type":"text-to-image","prompt":"A ceramic fox in a quiet studio","aspect_ratio":"1:1"}}'

Node.js

const response = await fetch("https://wan3.net/api/v1/generations", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.WAN3_API_KEY}`,
    "Idempotency-Key": "video-job-001",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "wan3",
    input: { type: "text-to-video", workflow: "t2v", prompt: "A paper dragon crossing a city", duration: 5, resolution: "720p" },
  }),
});
console.log(await response.json());

Python

import os, requests

response = requests.post(
    "https://wan3.net/api/v1/generations",
    headers={
        "Authorization": f"Bearer {os.environ['WAN3_API_KEY']}",
        "Idempotency-Key": "image-job-001",
    },
    json={"model": "nano-banana", "input": {"type": "text-to-image", "prompt": "A ceramic fox"}},
    timeout=30,
)
print(response.json())

Owned media upload

# 1. Reserve: POST /api/v1/uploads with file_name, file_type, file_size
# 2. PUT bytes to data.upload_url with every data.required_headers value
# 3. Complete: POST /api/v1/uploads/{reservation_id}/complete
# 4. Pass the returned opaque media id in input.media_ids

Polling

curl https://wan3.net/api/v1/generations/{generation_id} \
  -H "Authorization: Bearer $WAN3_API_KEY"

Stable error contract

codeHTTPmeaning
invalid_request400Request fields or owned media are invalid
unauthorized401API key is invalid, expired, or revoked
insufficient_credits402Account balance cannot fund the task
forbidden403The key does not have the required scope
not_found404The owned generation or media was not found
idempotency_conflict409The key was reused with another public request
rate_limited429Retry after the Retry-After interval
provider_rejected502The task was rejected and exposes no upstream details
service_busy503Retry safely with the same Idempotency-Key

API keys are revealed once and must stay server-side. Every generation requires a stable Idempotency-Key: reuse it for network retries and use a new key only for an intentional new task. Discover live fields through GET /models and read credit usage through GET /usage.