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"
{ "created": 1702345678, "size": "1024x1024", "data": [ { "url": "https://media.lumenfall.ai/abc123.png", "revised_prompt": "Add a stylish red fedora hat to the person in the image" } ], "metadata": { "model": "gemini-3-pro-image", "executed_model": "vertex/gemini-3-pro-image", "provider": "vertex", "provider_name": "Google Vertex AI", "cost": 0.04, "cost_currency": "USD" }}
Images
Edit images
Edit images using text prompts
POST
/
openai
/
v1
/
images
/
edits
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"
{ "created": 1702345678, "size": "1024x1024", "data": [ { "url": "https://media.lumenfall.ai/abc123.png", "revised_prompt": "Add a stylish red fedora hat to the person in the image" } ], "metadata": { "model": "gemini-3-pro-image", "executed_model": "vertex/gemini-3-pro-image", "provider": "vertex", "provider_name": "Google Vertex AI", "cost": 0.04, "cost_currency": "USD" }}
Use this file to discover all available pages before exploring further.
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.
Upscaling uses this endpoint too. To upscale an image, call this endpoint with an upscale model and a scale_factor instead of a prompt. See Image upscaling for the full guide and model list.
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
Used only when calling an upscale model. Multiplies the input dimensions on each axis (e.g., 2 doubles width and height). Supported values vary by model. When omitted, each upscale model uses its default. Ignored by non-upscale models.Renamed
Actual output dimensions as "WIDTHxHEIGHT" (e.g., "1024x1024"). Extracted from the generated image. May differ from the requested size if the model produced a different resolution.
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"
{ "created": 1702345678, "size": "1024x1024", "data": [ { "url": "https://media.lumenfall.ai/abc123.png", "revised_prompt": "Add a stylish red fedora hat to the person in the image" } ], "metadata": { "model": "gemini-3-pro-image", "executed_model": "vertex/gemini-3-pro-image", "provider": "vertex", "provider_name": "Google Vertex AI", "cost": 0.04, "cost_currency": "USD" }}