
gemini-3.1-flash-image-preview
Cheaper. More stable. One-stop API aggregation.
Gemini 3.1 Flash Image (1K) generates images quickly for product mockups, thumbnails, and creative drafts.
On LumeAPI the recommended path is OpenAI-compatible image or chat calls with model id `gemini-3.1-flash-image-preview`.
Portal price is $0.05 per image versus ~$0.0735 official reference.
For 2K output, switch to the dedicated 2K model id.
Async · 1K resolution · aspect-ratio size · image_urls for img2img · 2K: gemini-3.1-flash-image-preview-2k ($0.08) · chat/completions supported
POST/v1/images/generations
Base URL: https://api.lumeapi.site/v1
Auth: Authorization: Bearer <your-lumeapi-key>
Open the integration notes for this model, or the modality guide for request fields and polling.
curl https://api.lumeapi.site/v1/images/generations \
-H "Authorization: Bearer $LUMEAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-image-preview",
"prompt": "A golden hour city skyline",
"size": "16:9"
}'