Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qwen Image 3 API: runnable cURL and Node.js examples

PoYo model page API docs Check

Generate or edit 1K and 2K images with Qwen Image 3 or Qwen Image 3 Pro through PoYo's async API.

Answer: To use the Qwen Image 3 API, send a server-side request to POST https://api.poyo.ai/api/generate/submit with model qwen-image-3, qwen-image-3-pro and a PoYo API key. The examples in this repository are runnable with Node.js 22+ or cURL.

Last verified against the live PoYo schema and pricing on August 9, 2026.

Quickstart

  1. Create a key in the PoYo dashboard.
  2. Copy .env.example to .env and replace the placeholder.
  3. Run node node/index.mjs.
POYO_API_KEY=YOUR_POYO_API_KEY_HERE
POYO_BASE_URL=https://api.poyo.ai

The complete cURL request is in curl/generate.md. The Node.js example submits the task and polls until finished or failed.

Model IDs

  • qwen-image-3
  • qwen-image-3-pro

Use the exact IDs above. Product names and API model IDs are not always identical.

Request fields

Field Requirement Meaning
prompt required Generation or editing instruction, up to 5,000 characters.
image_urls optional One to three input images.
size required 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, or 21:9.
resolution required 1K or 2K.
output_format optional png or jpeg.
prompt_extend optional Boolean prompt expansion.
negative_prompt optional Up to 5,000 characters.
seed optional Integer from 0 to 2147483647.
enable_safety_checker optional Boolean.

Pricing snapshot

Usage Price
qwen-image-3, 1K or 2K $0.024 per image
qwen-image-3-pro, 1K $0.032 per image
qwen-image-3-pro, 2K $0.06 per image
Input image surcharge $0.0025 per image

Pricing can change. Confirm the current amount on the model page before a production rollout.

Best for

  • text-to-image
  • multi-image editing
  • poster and product artwork

Important behavior

  • Use qwen-image-3-pro when the higher-tier model is required.
  • Editing accepts one to three public input-image URLs.
  • Output URLs should be downloaded and stored by your application.

Async production flow

submit -> persist data.task_id -> poll during development -> receive callback_url webhook in production

Treat finished and failed as terminal states. Accept a webhook only for task IDs your system created, process it idempotently, and reconcile the final state through the status endpoint.

Repository map

Links

License

MIT

About

Qwen Image 3 API cURL and Node.js quickstart for 1K/2K generation and multi-image editing.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages