Edits
Updated: Nov 11, 2026
Native OpenAI Images format. Edits or extends input images based on a prompt. The request body uses multipart/form-data. application/json is also supported, in which case images are passed as URLs or Base64.
See API Guide - Authentication.
See API Guide - Common Request Headers.
multipart/form-data- body
model*stringModel ID, e.g. gpt-image-1.
image*array<>Image files to edit. Multiple files are allowed.
prompt*stringText description of the edit.
mask?fileMask image. Transparent areas indicate where to edit.
binaryn?integerNumber of images to generate.
1 <= value1size?stringImage size, e.g. 1024x1024.
quality?stringImage quality, such as low, medium, high, or auto.
response_format?stringResponse format, either url or b64_json. Some models always return b64_json.
"url""b64_json"output_format?stringOutput image format, such as png, jpeg, or webp.
stream?booleanWhether to stream the response.
Successful response
application/json- response
created?integerCreation time, as a Unix timestamp in seconds.
data?array<>List of generated images.
usage?Token usage statistics.
curl -X POST 'https://api.cysuo.com/v1/images/edits' \ -F 'model=string' \ -F 'image=[ "string"]' \ -F 'prompt=string'{ "created": 0, "data": [ { "url": "string", "b64_json": "string", "revised_prompt": "string" } ], "usage": { "input_tokens": 0, "input_tokens_details": { "text_tokens": 0, "image_tokens": 0 }, "output_tokens": 0, "total_tokens": 0 }}