Documentation Index Fetch the complete documentation index at: https://docs.lumenfall.ai/llms.txt
Use this file to discover all available pages before exploring further.
Generate images from a text prompt using AI models from various providers.
OpenAI Compatibility This endpoint implements the OpenAI Images 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.
Request body
You can include additional parameters not listed here. They will be passed through to the underlying provider.
What do the parameter badges mean?
Each parameter has a badge showing how Lumenfall handles it across different providers: Badge Meaning Passthrough Passed as-is; some providers may ignore it Renamed Field name is mapped to the provider’s expected name Converted Value is transformed to match each provider’s format Emulated Works consistently on all models, even if the provider doesn’t natively support it
Learn more about unified model behavior .
A text description of the desired image. Maximum length varies by model. Renamed
The model to use for image generation. See Models .
The number of images to generate. Must be between 1 and 10. Some models only support n=1. Emulated
size
string
default: "1024x1024"
The size of the generated images. Supported sizes vary by model:
256x256
512x512
1024x1024
1024x1792 (portrait)
1792x1024 (landscape)
Converted
The quality of the image. Options: standard, hd. Only supported by some models. Passthrough
The format of the generated images. Options:
url — Returns a URL to the generated image
b64_json — Returns the image as base64-encoded JSON
Emulated
The image file format to generate. Lumenfall supports more formats than OpenAI:
png — Lossless compression, supports transparency
jpeg — Lossy compression, smaller file size
gif — Supports animation and transparency
webp — Modern format with good compression
avif — Best compression, modern browsers only (Limited to 1,600px on the longest side. Larger images will fall back to the original format.)
If the provider returns a different format, Lumenfall automatically converts the image. Emulated
Compression quality for lossy formats (jpeg, webp, avif). Range: 1-100, where 100 is highest quality. Emulated
The style of the generated images. Options: vivid, natural. Only supported by some models like DALL-E 3. Passthrough
A unique identifier representing your end-user. Only used by some providers. Passthrough
Query parameters
If true, returns a cost estimate without generating the image. See Cost estimation .
Response
Unix timestamp of when the request was created.
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.
Array of generated image objects. URL of the generated image. Only present if response_format is url.
Base64-encoded image data. Only present if response_format is b64_json.
The prompt that was used to generate the image, if the model revised the original prompt.
Metadata about the request execution, including effective cost. See Billing . Provider display name (e.g., "Google Vertex AI").
Provider slug (e.g., "vertex").
The provider’s request ID, useful for reconciliation.
The model string sent in the request.
The model that was actually executed, as "{provider_slug}/{provider_model}".
Effective cost in the currency specified by cost_currency.
Currency of the cost (e.g., "USD").
curl https://api.lumenfall.ai/openai/v1/images/generations \
-H "Authorization: Bearer $LUMENFALL_API_KEY " \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3-pro-image",
"prompt": "A futuristic city skyline at sunset",
"n": 1,
"size": "1024x1024"
}'
{
"created" : 1702345678 ,
"size" : "1024x1024" ,
"data" : [
{
"url" : "https://media.lumenfall.ai/abc123.png" ,
"revised_prompt" : "A futuristic city skyline at sunset with flying vehicles and neon lights"
}
],
"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"
}
}