← All modelsChat with model
Gemini 3.1 Flash Image
google/gemini-3.1-flash-image·Created Sep 30, 2026Google's frontier multimodal model with native image generation. Generates high-quality images directly from text prompts.
Context
1.05M tokens
Max output
8K tokens
Input price
$0.45 / M tokens
Output price
$2.70 / M tokens + $0.06 per image
Input
text, Image
Output
text, image
Requests (7d)
97
Tokens (7d)
39.1K
Avg latency: 13.19sSuccess rate: 22.7%
API
ProfusAPI is OpenAI-compatible. Use your API key from Keys and set the model to google/gemini-3.1-flash-image.
from openai import OpenAI
client = OpenAI(
base_url="https://profusapi.com/api/v1",
api_key="<PROFUSAPI_API_KEY>",
)
completion = client.chat.completions.create(
model="google/gemini-3.1-flash-image",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)