curl --request POST \
--url https://api.powertokens.ai/v1/images/edits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen-image-2.0-pro",
"prompt": "<string>",
"n": 1,
"size": "1024*1024",
"response_format": "url",
"seed": 123,
"watermark": false,
"prompt_extend": true,
"negative_prompt": "<string>",
"extra": {
"input": {},
"parameters": {}
}
}
'{
"created": 123,
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>"
}
],
"metadata": {}
}For the image editing models in the final Ali whitelist: qwen-image-2.0-pro and wan2.7-image-pro.
Supports single-image editing and multi-image fusion. Public fields: model, image, prompt, n, size, response_format, seed, watermark, prompt_extend, and negative_prompt. Both JSON and multipart/form-data are supported.
curl --request POST \
--url https://api.powertokens.ai/v1/images/edits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen-image-2.0-pro",
"prompt": "<string>",
"n": 1,
"size": "1024*1024",
"response_format": "url",
"seed": 123,
"watermark": false,
"prompt_extend": true,
"negative_prompt": "<string>",
"extra": {
"input": {},
"parameters": {}
}
}
'{
"created": 123,
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>"
}
],
"metadata": {}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Image editing model name.
qwen-image-2.0-pro, wan2.7-image-pro Image editing prompt describing desired effect. Supports Chinese and English, max 800 characters.
Number of images to generate. qwen-image-2.0, qwen-image-edit-max/plus series support 1-6, qwen-image-edit supports 1 only.
1 <= x <= 6Output resolution in format width*height. Total pixels between 512512 and 20482048.
"1024*1024"
Response format.
url, b64_json Random seed, range [0, 2147483647].
Whether to add watermark.
Whether to enable prompt intelligent rewriting.
Negative prompt.
Extended parameters containing input and parameters fields.
Show child attributes