AI Image Editor
Edit images with AI.
Request body
Example request
{
"name": "My Ai Image Editor image",
"image_count": 1,
"model": "default",
"aspect_ratio": "1:1",
"resolution": "1k",
"style": {
"prompt": "Give me sunglasses"
},
"assets": {
"image_file_paths": [
"api-assets/id/1234.png",
"api-assets/id/1235.png"
]
}
}Response
Success
Example response
{
"id": "cuid-example",
"credits_charged": 50
}Changes
Changed in 11 of the 58 revisions of this API.1220
- ○
added the non-success response with the status
500response-non-success-status-added
- ○
removed the
Not Foundenum value from themessageresponse property for the response status404response-property-enum-value-removed
- ○
removed the
Unauthorizedenum value from themessageresponse property for the response status401response-property-enum-value-removed
- ○
added the required property
codeto the response with the400statusresponse-required-property-added
- ○
added the required property
codeto the response with the401statusresponse-required-property-added
- ○
added the required property
codeto the response with the402statusresponse-required-property-added
- ○
added the required property
codeto the response with the404statusresponse-required-property-added
- ○
added the required property
codeto the response with the422statusresponse-required-property-added
- ○
- ○
added the new
seedream-v5-proenum value to the request propertymodelrequest-property-enum-value-added
- ○
- ○
added the new
nano-banana-2-liteenum value to the request propertymodelrequest-property-enum-value-added
- ○
- ○
added the new
flux-2-kleinenum value to the request propertymodelrequest-property-enum-value-added
- ○
- ○
added the new
gpt-image-2enum value to the request propertymodelrequest-property-enum-value-added
- ○
- ○
added the new
1kenum value to the request propertyresolutionrequest-property-enum-value-added
- ○
added the new
640pxenum value to the request propertyresolutionrequest-property-enum-value-added
- ○
- ○
added the new optional request property
resolutionnew-optional-request-property
- ○
- ○
added the non-success response with the status
402response-non-success-status-added
- ○
- ○
added the new
nano-banana-2enum value to the request propertymodelrequest-property-enum-value-added
- ○
- ●
removed the request property
style/modelrequest-property-removed
- ○
added the new optional request property
aspect_rationew-optional-request-property
- ○
added the new optional request property
image_countnew-optional-request-property
- ○
added the new optional request property
modelnew-optional-request-property
- ●