curl https://api.lumenfall.ai/openai/v1/images/edits \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -F "model=gemini-3-pro-image" \ -F "image=@original.png" \ -F "prompt=Add a red hat to the person" \ -F "size=1024x1024"
Copy
{ "created": 1702345678, "data": [ { "url": "https://media.lumenfall.ai/abc123.png", "revised_prompt": "Add a stylish red fedora hat to the person in the image" } ]}
Images
Edit images
Edit images using text prompts
POST
https://api.lumenfall.ai
/
openai
/
v1
/
images
/
edits
Copy
curl https://api.lumenfall.ai/openai/v1/images/edits \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -F "model=gemini-3-pro-image" \ -F "image=@original.png" \ -F "prompt=Add a red hat to the person" \ -F "size=1024x1024"
Copy
{ "created": 1702345678, "data": [ { "url": "https://media.lumenfall.ai/abc123.png", "revised_prompt": "Add a stylish red fedora hat to the person in the image" } ]}
Edit or extend images using AI models from various providers. This endpoint accepts multipart/form-data requests for file uploads.
OpenAI CompatibilityThis endpoint implements the OpenAI Images Edit API. You can use any OpenAI SDK by changing the base URL to https://api.lumenfall.ai/openai/v1.Lumenfall normalizes behavior across all models - mapping parameters, emulating features, and standardizing errors - so your code works consistently regardless of which provider handles the request.
An image whose fully transparent areas (where alpha is zero) indicate where the image should be edited. Must be a valid PNG file with the same dimensions as the source image.Passthrough
The prompt that was used to generate the image, if the model revised the original prompt.
Copy
curl https://api.lumenfall.ai/openai/v1/images/edits \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -F "model=gemini-3-pro-image" \ -F "image=@original.png" \ -F "prompt=Add a red hat to the person" \ -F "size=1024x1024"
Copy
{ "created": 1702345678, "data": [ { "url": "https://media.lumenfall.ai/abc123.png", "revised_prompt": "Add a stylish red fedora hat to the person in the image" } ]}