Qwen Image 3
Model Overview
API Schema
post
Body
modelstring · enumRequiredPossible values:
promptstring · max: 800Required
The text prompt describing the content, style, or composition of the image to be generated.
image_sizeany ofOptionalDefault:
square_hdor
string · enumOptionalPossible values:
The size of the generated image.
negative_promptstring · max: 500Optional
The description of elements to avoid in the generated image.
num_imagesinteger · min: 1 · max: 4OptionalDefault:
The number of images to generate.
1output_formatstring · enumOptionalDefault:
The format of the generated image.
pngPossible values: seedinteger · max: 2147483647Optional
The same seed and the same prompt given to the same version of the model will output the same image every time.
enable_prompt_expansionbooleanOptionalDefault:
If set to True, prompt will be upsampled with more details.
trueenable_safety_checkerbooleanOptionalDefault:
If set to True, the safety checker will be enabled.
trueResponses
200
Successful response.
application/json
post/v1/images/generations
curl --request POST \
--url 'https://api.aimlapi.com/v1/images/generations' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{"model": "alibaba/qwen-image-3", "prompt": "Describe what you want the model to generate."}'200
Successful response.
{
"data": [
{
"url": "https://cdn.aimlapi.com/generations/hedgehog/1749730923700-29fe35d2-4aef-4bc5-a911-6c39884d16a8.png",
"b64_json": null
}
],
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Code Example
Last updated
Was this helpful?