Edit images
Edit one or more images with a Qwen-compatible request.
Edit images
curl -X POST "https://router.chbcloud.com/v1/images/edits" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{}'Successful response.
{
"data": [
{}
],
"created": 0,
"metadata": {}
}Edits source images according to one text instruction. Input images can be public URLs or supported base64 data URLs. Generated URLs can expire, so download successful results promptly.
Use the InnoPaaS AppKey as a Bearer token. Create or manage keys in Console. API key guide
Authorization
AuthorizationBody
application/jsoninputQwen-compatible messages containing source images and one editing instruction.
modelExact model ID returned by the model list operation.
parametersEditing options such as n, size, negative_prompt, prompt extension, watermark, and seed.
Response
application/jsonSuccessful response.
dataGenerated image records, commonly containing a URL or base64 data.
createdCreation time as a Unix timestamp.
metadataProvider metadata, request ID, rewrite result, and usage when available.
{
"data": [
{}
],
"created": 0,
"metadata": {}
}