Image model API
Gemini 2.5 Flash API
Google's latest image generation model in Gemini 2.5. Its specifically designed for fast, conversational, and multi-turn creative workflows. Gemini 2.5 Flash Image is a multimodal model that natively understands and generates images. This allows for a seamless, unified workflow for creating and editing visuals.
- Model id
gemini-25-flash- Takes
- Text (required)
- Makes
- Image
- Endpoint
POST /api/v1/images/generations- Made by
- Mode
- Synchronous
Call Gemini 2.5 Flash
Base URL
https://payload.rentprompts.com/api/v1. Replace the placeholder with your key.Model gemini-25-flash
POST /api/v1/images/generations
curl https://payload.rentprompts.com/api/v1/images/generations \
-H "Authorization: Bearer rp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-25-flash",
"prompt": "A lighthouse at dusk, watercolor",
"n": 1
}'Replace rp_live_YOUR_KEY with your key, ideally via the RENTPROMPTS_API_KEY environment variable. Keys are shown only once, so they are never filled in here. Get your API key →
What a typical call costs
Worked out from Gemini 2.5 Flash's published price (4.39 J / image). You pay only for successful results, from your Joule balance.
- 1 image4.39 Joules
- 4 images17.56 Joules
Send requests to POST /api/v1/images/generations. Gemini 2.5 Flash answers synchronously: the result comes back in the response to the same request.
Settings
Optional parameters this model accepts (pass them in settings on /v1/run, or as top-level fields where OpenAI defines them).