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" }'
Copy
{ "created": 1702345678, "data": [ { "url": "https://media.lumenfall.ai/abc123.png", "revised_prompt": "A futuristic city skyline at sunset with flying vehicles and neon lights" } ]}
Images
Generate images
Create images from text prompts
POST
https://api.lumenfall.ai
/
openai
/
v1
/
images
/
generations
Copy
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" }'
Copy
{ "created": 1702345678, "data": [ { "url": "https://media.lumenfall.ai/abc123.png", "revised_prompt": "A futuristic city skyline at sunset with flying vehicles and neon lights" } ]}
Generate images from a text prompt using AI models from various providers.
OpenAI CompatibilityThis 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.
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/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" }'
Copy
{ "created": 1702345678, "data": [ { "url": "https://media.lumenfall.ai/abc123.png", "revised_prompt": "A futuristic city skyline at sunset with flying vehicles and neon lights" } ]}