Gemini 3.8 Flash
Fast multimodal reasoning for coding and agents.
Gemini 3.8 Flash is Google's fast multimodal model, pairing reasoning and tool use with a million-token context — built for coding and agentic work that has to keep up.
- Agentic work
- Coding
- Multimodal
Model details
- Context window
- 1.0M tokens
- Max output
- 66K tokens
- Input
- Text, images, audio, documents
- Output
- Text
- Capabilities
- Reasoning, Vision, Tool calling, Streaming, JSON output
- Interfaces
- OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses
Pricing
Prices use the units shown below. No gateway fees. Usage, size and model options may affect the total.
| Metric | Price |
|---|---|
| / 1M input tokens | $0.75 |
| / 1M output tokens | $3.75 |
| / 1M cached input tokens | $0.075 |
| / 1M cache write tokens (5 min) | $0.08333 |
| / web search | $0.014 |
Why teams pick it
- Fast multimodal reasoning for coding and agents
- 1M-token context with vision, audio, and document input
- Reasoning effort, tool calling, and JSON output included
Call Gemini 3.8 Flash
Gemini 3.8 Flash answers on any of the APIs below — pick the one your code already speaks and just swap in your Cloakray key.
/v1/chat/completionsOpenAI-style Chat Completions · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/chat/completions \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.8-flash",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'/v1/messagesAnthropic-style Messages · @anthropic-ai/sdk SDK or plain HTTP
curl https://api.cloakray.com/v1/messages \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.8-flash",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'/v1/responsesOpenAI-style Responses · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/responses \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.8-flash",
"input": "Hello"
}'Conversation compaction is also available at POST /v1/responses/compact.