Gemini 3.1 Flash Image (Google AI Studio)
gemini-3.1-flash-image-aistudioGemini 3.1 Flash Image served from Google AI Studio. Billed per image at US$0.067. Call it through /v1/chat/completions with stream set to false; the image is returned in the message content as a base64 data URI.
- Context
- N/A
- Endpoint
Service Status
Status information temporarily unavailable
Apertis cannot confirm the current service state. This is not a report that the model is down.
Pricing
Pay Per RequestQuick Start
Select an endpoint and copy a working example for this model.
from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.apertis.ai/v1") response = client.chat.completions.create( model="gemini-3.1-flash-image-aistudio", messages=[ {"role": "user", "content": "Hello!"} ], max_tokens=1024, temperature=0.7) print(response.choices[0].message.content) # Optional: Enable context compression to reduce token usage# response = client.chat.completions.create(# model="gemini-3.1-flash-image-aistudio",# messages=[{"role": "user", "content": "Hello!"}],# extra_body={"compression": {"enabled": True, "model": "gpt-4.1-mini"}}# )Supported Parameters
API docsmodelpromptsizequalityresponse_formatnstylebackgroundoutput_formatCursor IDE Model IDs
Use these namespaced identifiers in Cursor IDE to avoid conflicts with built-in models.
Compare with Other Models
See how this model compares to others from the same provider.
Gemini 3.1 Flash Lite Image (Google Vertex AI)
Gemini 3.1 Flash Lite Image served from Google Vertex AI. Billed per image at US$0.0336. Call it through /v1/chat/completions with stream set to false; the image is returned in the message content as a base64 data URI.
- Context
- N/A
- Input
- — (Not priced per input token)
- Output
- — (Not priced per output token)
Gemini 3.1 Flash Lite Image (Google AI Studio)
Gemini 3.1 Flash Lite Image served from Google AI Studio. Billed per image at US$0.0336. Call it through /v1/chat/completions with stream set to false; the image is returned in the message content as a base64 data URI.
- Context
- N/A
- Input
- — (Not priced per input token)
- Output
- — (Not priced per output token)
Gemini 3.1 Flash Image (Google Vertex AI)
Gemini 3.1 Flash Image served from Google Vertex AI. Billed per image at US$0.067. Call it through /v1/chat/completions with stream set to false; the image is returned in the message content as a base64 data URI.
- Context
- N/A
- Input
- — (Not priced per input token)
- Output
- — (Not priced per output token)
Gemini 3 Pro Image (Google Vertex AI)
Gemini 3 Pro Image served from Google Vertex AI. Billed per image at US$0.134. Call it through /v1/chat/completions with stream set to false; the image is returned in the message content as a base64 data URI.
- Context
- N/A
- Input
- — (Not priced per input token)
- Output
- — (Not priced per output token)