G
gemini-3.1-flash-image-preview
32k ContextTextPopular
Google's gemini-3.1-flash-image-preview - compact and efficient with extremely cost-effective pricing. Google's advanced AI research.
Capability Radar
Compare with Claude 3
About gemini-3.1-flash-image-preview
"Cutting-edge multimodal capabilities"
gemini-3.1-flash-image-preview is Google's extremely cost-effective model featuring focused context window (32K). Cutting-edge multimodal capabilities, this model delivers industry-leading context windows.
⚡ Key Strengths
- Cutting-edge multimodal capabilities
- Exceptional cost-effectiveness for high-volume use
- Optimized for low-latency responses
- OpenAI SDK compatible
- Production-ready reliability
🎯 Best Use Cases
- Real-time chatbots and customer support
- High-volume content moderation
- Quick classification and tagging
- High-volume API processing
- Cost-sensitive production applications
Interactive Playground
Parameters Setup
0.7
Controls randomness: Lowering results in less random completions.
Return data chunks as they arrive
request.js
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.okrouter.com/v1",
apiKey: process.env.OKROUTER_API_KEY,
});
const completion = await client.chat.completions.create({
model: "gemini-3.1-flash-image-preview",
messages: [{ role: "user", content: "Hello world!" }],
temperature: 0.7,
stream: true,
});