Skip to main content
POST
/
qwen-image
/
async
Qwen Image
curl --request POST \
  --url https://modellixapi.jpushoa.com/api/v1/text-to-image/alibaba/qwen-image/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A beautiful landscape with mountains and lakes"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-abc123",
    "model_id": "qwen-image-plus",
    "duration": 150
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Image description text, supports Chinese and English

Required string length: 1 - 800
Example:

"A cute cat playing in a garden on a sunny day"

negative_prompt
string

Negative prompt describing unwanted content

Maximum string length: 500
Example:

"blurry, low quality"

size
enum<string>
default:1328*1328

Image size (format: width*height)

Available options:
1664*928,
1472*1140,
1328*1328,
1140*1472,
928*1664
Example:

"1328*1328"

n
enum<integer>
default:1

Number of images to generate

Available options:
1
Example:

1

seed
integer

Random seed for reproducible results

Required range: 0 <= x <= 2147483647
Example:

42

prompt_extend
boolean
default:true

Enable intelligent prompt rewriting (adds 3-4s latency)

Example:

true

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required