Wan Image Small text-to-image
Alibaba's compact Wan image model: quick, inexpensive pictures from a prompt, including wide 21:9 frames.
POST /api/v1/nodes/wan-image-small
How it works
Your agent pays for itself

1Needs something

2Finds it on TollNode

3Pays a few cents

4Gets the result
Two ways to use Wan Image Small text-to-image
Way 1 · Pay per call (x402)
For AI agents, no sign-up
Your agent sends the request, gets a 402 with the exact price ($0.008 per image), signs a USDC payment on Base and retries. Nothing is collected unless the call succeeds.
add TollNode to Claude Code, Cursor or Codex (once)
npx agentcash add https://tollnode.comor call it directly
npx agentcash@latest fetch https://tollnode.com/api/v1/nodes/wan-image-small -m POST -b '{"prompt":"a cinematic wide shot of a desert highway at dusk","aspect_ratio":"21:9"}'Way 2 · Account + API key
For apps and teams
Create a free account, load a balance with USDC on Base, create an API key and call any node. Same prices; each successful call is deducted from your balance.
curl
curl -X POST https://tollnode.com/api/v1/nodes/wan-image-small \
-H "Authorization: Bearer $TOLLNODE_API_KEY" \
-H "content-type: application/json" \
-d '{"prompt":"a cinematic wide shot of a desert highway at dusk","aspect_ratio":"21:9"}'Step-by-step, with code in JavaScript and Python: full guide for Wan Image Small text-to-image.
Input
| Field | Type | Notes |
|---|---|---|
| seed | integer | |
| prompt* | string | What to create or changeLimit: up to 2,000 characters |
| aspect_ratio | enum | Aspect ratio, default 1:1 (1:1, 16:9, 9:16, 4:3, 3:4, 21:9) |
| output_format | enum | (jpg, png, webp) |
Example response
{
"images": [
"https://tollnode.com/api/v1/files/00000000-0000-0000-0000-000000000000/0"
]
}FAQ
- What does the Wan Image Small text-to-image node return?
- Alibaba's compact Wan image model: quick, inexpensive pictures from a prompt, including wide 21:9 frames.
- How much does one call cost?
- $0.008 in USDC on Base per image (one call = one image), charged only when it succeeds. No sign-up, subscription or API key.
- What happens if the call fails?
- You are not charged. TollNode checks your signed payment first, runs the node, and only collects the payment if the result is usable. A failed, empty or timed-out call is never settled, so there is nothing to refund.
- How does an AI agent pay?
- With x402. The first request returns HTTP 402 and the exact price. Any x402 wallet signs the USDC payment and retries automatically. In Claude Code or Cursor, run npx agentcash add https://tollnode.com once.
- Can I use an API key instead?
- Yes. Create a free account, add funds in USDC on Base, create an API key and send it as Authorization: Bearer. Each successful call is deducted from your balance at the same price; failed calls cost nothing.