Overview
Qwen 2 Image is an asynchronous text-to-image API. It supports standard and pro generation modes, multiple aspect ratios, prompt extension, optional negative prompts, and up to 6 images per task.Endpoint and authentication
Base URL:
All requests require your APIXO API key:
Copy-paste async quickstart
taskId; you need it to poll for the final result.
Poll for result
resultJson after state becomes success:
Request body
Standard text-to-image
Pro text-to-image
Parameters
Result delivery mode. Use
async for polling with statusTask, or callback for webhook delivery.Required when
request_type is callback. Must be a callback URL that can receive the final task payload. See Webhooks.Response format
Submit task response
POST /generateTask/qwen-2-image returns a task ID when the task is accepted:
Status response fields
Webhook callback mode
Use callback mode when your backend should receive the final result automatically instead of polling.Billing
New non-LLM requests use 1 credit =$0.001. Calculate the full amount, including billable quantity and add-ons, apply the applicable account discount, then round the request total upward to the next whole credit. Agreed fixed unit prices retain their precision and replace the standard price and discount; final rounding still applies. See credit conversion and rounding.
Qwen 2 Image is billed per generated image.
Billing behavior:
Latency and polling
Qwen 2 Image tasks are asynchronous. Actual latency varies by prompt complexity, requested image count, and queue load.
Rate limits and concurrency can vary by account, API key, and route. If you receive
429, slow down requests and retry with backoff. For account-level details, see System APIs.
Errors and troubleshooting
HTTP errors
Request validation
See Error Codes for the full error reference.
MCP integration
The complete model schema declares result decoding inmcp.result and supported file bindings in mcp.attachments. These are client integration metadata, not generation input parameters. Model parameter validation remains on the API.