TollNode

Qwen Image text-to-image

Alibaba's original Qwen Image model: detailed pictures with strong text rendering, a negative prompt and optional image-to-image from a starting picture.

POST /api/v1/nodes/qwen-image

How it works

Your agent pays for itself

Explained in 5 minutes →
  1. Step 1: Needs something. Mid-task, your agent needs an image, a search or a voice.

    1Needs something

  2. Step 2: Finds it on TollNode. It picks the right tool. The price is shown up front.

    2Finds it on TollNode

  3. Step 3: Pays a few cents. Its wallet pays for that one use. No sign-up.

    3Pays a few cents

  4. Step 4: Gets the result. The result comes straight back. If it fails, it's free.

    4Gets the result

Two ways to use Qwen Image 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.035 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.com
or call it directly
npx agentcash@latest fetch https://tollnode.com/api/v1/nodes/qwen-image -m POST -b '{"prompt":"a vintage travel poster for a mountain toll road, bold title text TOLL ROAD"}'

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/qwen-image \
  -H "Authorization: Bearer $TOLLNODE_API_KEY" \
  -H "content-type: application/json" \
  -d '{"prompt":"a vintage travel poster for a mountain toll road, bold title text TOLL ROAD"}'

Step-by-step, with code in JavaScript and Python: full guide for Qwen Image text-to-image.

Input

FieldTypeNotes
seedinteger
imagestringOptional starting image to transform (https URL). Or send the file inline as a base64 data: URI (up to 4.5 MB)Limit: https link or base64 data: URI up to 4.5 MB
prompt*stringWhat to create or changeLimit: up to 2,000 characters
strengthnumberWith a starting image: how much to change it. Default 0.9Limit: 0 to 1
aspect_ratioenumAspect ratio, default 1:1 (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3)
output_formatenum (jpg, png, webp)
negative_promptstringWhat you do not want to seeLimit: up to 500 characters

Example response

{
  "images": [
    "https://tollnode.com/api/v1/files/00000000-0000-0000-0000-000000000000/0"
  ]
}

FAQ

What does the Qwen Image text-to-image node return?
Alibaba's original Qwen Image model: detailed pictures with strong text rendering, a negative prompt and optional image-to-image from a starting picture.
How much does one call cost?
$0.035 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.