Model capabilities
- High-resolution output: Native generation at 0.5K, 1K, 2K, and 4K.
- Advanced text rendering: Generate clear, stylized text for infographics, menus, diagrams, and marketing materials.
- Grounding with Google Search: Verify facts and generate images based on real-time data such as weather maps, stock quotes, and recent events. Image search is supported.
- Thinking mode: The model analyzes complex prompts and generates intermediate “thinking images” to refine the composition before producing the final image. These intermediate images are visible only in the backend and are not billed. You can configure the reasoning level.
- Multiple reference images: Combine up to 14 reference images into one final image.
- Additional aspect ratios: Four new ratios (1:4, 4:1, 1:8, and 8:1) give you more composition options.
Model parameters
- Model ID:
gemini-3.1-flash-image - Pricing: Check the model details page for current prices.
- Endpoint:
https://geekai.co/api/v1/chat/completions - Parameters: See the Chat API reference.
- Authentication: Get an API key.
Pricing
Gemini 3.1 Flash Image generates images at 0.5K, 1K, 2K, and 4K. Prices vary by resolution:
Relative to the 1K base price, 2K costs 1.5 times as much, 4K approximately 2.3 times as much, and 0.5K 0.7 times as much.
When using a GeekAI discounted proxy channel, multiply the listed price by the channel’s discount factor. For example, the default high-availability channel has a factor of
0.5. An image with size set to 1K costs 0.5 x 0.5 = 0.25 CNY. Applying the same calculation, 2K costs 0.375 CNY, 0.5K costs 0.175 CNY, and 4K costs 0.575 CNY.
Image generation
Generate an image from a descriptive prompt:Image editing
Combine an image with a text prompt to edit it, change the composition, or transform its style:Multi-turn image editing
Keep generating and editing images in the same conversation. Multi-turn chat is the best way to refine an image. Start by generating an infographic about photosynthesis:Combine multiple images
Gemini 3.1 Flash Image can combine up to 14 reference images, including:- Up to 10 images of objects to reproduce with high fidelity in the final image.
- Up to 4 images of people to maintain character consistency.
Ground images with Google Search
Use the Google Search tool to generate images based on real-time information, such as weather forecasts, stock charts, or recent events.Use
enable_search to enable the model’s built-in search tool (Google Search for Gemini). Use image to configure output resolution (image_size) and aspect ratio (aspect_ratio). These are currently the only two supported configuration options.Generate high-resolution 4K images
Gemini 3.1 Flash Image generates 1K images by default and also supports 0.5K, 2K, and 4K output. To generate higher-resolution assets, specifyimage_size in image:
Set
background to true to run long tasks in the background, such as high-resolution image generation. The chat endpoint returns a id that uniquely identifies the request. Poll https://geekai.co/api/v1/chat/{id} for the latest status and retrieve the final image when the conversation completes.