Image > Image Edit Turbo

Image Edit Turbo

Edit one or more images from a text prompt.

POSThttps://api.medux.io/api/app/v1/generate/image/image_edit_turbo

Examples

curl -X POST https://api.medux.io/api/app/v1/generate/image/image_edit_turbo \
  -H 'Authorization: Bearer $MEDUX_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"height":1024,"image_file_ids":["FILE_ID"],"model_id":"qwen-image-edit","prompt":"PROMPT","width":1024}'

Auth Requirements

Authentication is required via Authorization header.

Preconditions

Upload each source file and create file references before calling this endpoint.

Successful requests return a Medux task record immediately. Use the task query or sync endpoints to track completion.

All file inputs must be uploaded and persisted as file references before submission.

Request

Body

application/json
Authorizationstringrequired

Bearer token or API key.

Location: HEADER

image_file_idsarray<string>required

Input image file_id list.

Location: BODY

promptstringrequired

Prompt text describing the requested image edit.

Location: BODY

negative_promptstringoptional

Optional negative prompt.

Location: BODY

heightintegeroptional

Output image height. Default: 1024.

Location: BODY

widthintegeroptional

Output image width. Default: 1024.

Location: BODY

model_idstringoptional

Image editing model id. Default: qwen-image-edit.

Location: BODY

titlestringoptional

Optional task title.

Location: BODY

Response

Response

application/json
codeint32optional

response code enums:
.. 0: ok
.. 12: invalid input
.. 1410: invalid model
.. 1409: paid plan required
.. 1401: insufficient credits
.... 1401 ~ 1499 是 media
.. 1404: provider error
.. 1405: provider timeout
.. 13: unauthenticated
.. 16: rate limit
.. 99: server error

Available options: 0 12 1410 1409 1401 1404 1405 13 16 99

Location: RESPONSE

data.assetobjectoptional

No description provided.

Location: RESPONSE

data.paid_plan_requiredobjectoptional

No description provided.

Location: RESPONSE

data.taskobjectoptional

No description provided.

Location: RESPONSE

messagestringoptional

No description provided.

Available options: ok invalid input invalid model paid plan required insufficient credits provider error provider timeout unauthenticated rate limit server error

Location: RESPONSE

MCP Tool

This endpoint is also available through the Medux-hosted remote MCP service.

Image Edit Turbo

Edit one or more images from a text prompt.

Invocation Example

Edit one or more images from a text prompt.