Skip to main content
POST
Qwen text-to-image

Authorizations

Authorization
string
header
required

Pass Authorization: Bearer <token> in the request header.

Body

application/json
model
enum<string>
required

Model name. Example: qwen-image-2.0-pro.

Available options:
qwen-image-2.0-pro
input
object
required

Basic input information.

parameters
object

Image processing parameters.

Response

Success. Returns the image generation result.

output
object

Task output information.

usage
object

Output usage statistics. Only successful results are counted.

request_id
string

Unique request identifier. It can be used for request traceability and troubleshooting.

code
string

Error code. Only returned when the request fails.

message
string

Error message. Only returned when the request fails.