curl https://api.lumenfall.ai/openai/v1/images/generations \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "imagen-3", "prompt": "A futuristic city skyline at sunset", "n": 1, "size": "1024x1024" }'
Copy
{ "created": 1702345678, "data": [ { "url": "https://storage.lumenfall.ai/generated/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": "imagen-3", "prompt": "A futuristic city skyline at sunset", "n": 1, "size": "1024x1024" }'
Copy
{ "created": 1702345678, "data": [ { "url": "https://storage.lumenfall.ai/generated/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.
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": "imagen-3", "prompt": "A futuristic city skyline at sunset", "n": 1, "size": "1024x1024" }'
Copy
{ "created": 1702345678, "data": [ { "url": "https://storage.lumenfall.ai/generated/abc123.png", "revised_prompt": "A futuristic city skyline at sunset with flying vehicles and neon lights" } ]}