{
"model": "gpt-image-2",
"prompt": "这个女孩戴上眼镜",
"size": "1024x1824",
"image": "https://api.maisi-ai.com/uploads/69e73c385ea61.png",
"quality": "low",
"response_format": "png"
}curl --location 'https://mliapi.com/v1/images/edits' \
--header 'Authorization: Bearer sk-xxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2",
"prompt": "这个女孩戴上眼镜",
"size": "1024x1824",
"image": "https://api.maisi-ai.com/uploads/69e73c385ea61.png",
"quality": "low",
"response_format": "png"
}'{
"created": 1778209602,
"data": [
{
"b64_json": "iVBORw=",
"revised_prompt": "Edit the provided portrait photo of the young woman by adding a pair of stylish, natural-looking eyeglasses that fit her face well. Keep her facial features, pose, lighting, background, hair, clothing, and overall photorealistic style unchanged. The glasses should be subtle, elegant, and realistic with clear lenses and a thin frame."
}
],
"background": "opaque",
"output_format": "png",
"quality": "medium",
"size": "1024x1824",
"usage": {
"input_tokens": 1612,
"input_tokens_details": {
"image_tokens": 1536,
"text_tokens": 76
},
"output_tokens": 1254,
"output_tokens_details": {
"image_tokens": 1254,
"text_tokens": 0
},
"total_tokens": 2866
}
}