Google · Gemini
Gemini 3.8 Flash API
The newest release of the Gemini Flash line, tuned for speed and cost.
Gemini 3.8 Flash is made by Google. On PixCode it is billed at the upstream official list price with zero markup: $0.75 input and $3.75 output per million tokens, with a 1M context window.
It speaks the OpenAI protocol only (/v1/chat/completions), so it cannot be plugged into Claude Code directly; use it in opencode, Cline, Roo Code or any OpenAI SDK.
Explicit prompt caching is supported: cache reads at $0.075, cache writes at $0.0417 (5 min) or $0.50 (1 hour).
1M
Context window
$0.75
Input / 1M tokens
$3.75
Output / 1M tokens
OpenAI only
Protocols
Rates
USD per million tokens, read live from the gateway — the same data your charges come from.
| Item | Standard |
|---|---|
| Cache read | $0.075 |
| Input | $0.75 |
| Output | $3.75 |
| Cache write (5 min) | $0.0417 |
| Cache write (1 hour) | $0.50 |
Which tools can use it
It depends on the protocol. Claude Code only speaks Anthropic; Roo Code, Kilo Code and Goose use OpenAI; opencode, Cline, Zed and Factory Droid can be configured either way.
- Claude CodeNot supported
- opencodeOpenAI endpoint
- ClineOpenAI endpoint
- Roo CodeOpenAI endpoint
- Kilo CodeOpenAI endpoint
- Factory DroidOpenAI endpoint
- ZedOpenAI endpoint
- GooseOpenAI endpoint
Setup
Replace sk-px-... with the API key from your dashboard. Other tools are covered in the docs.
{
"provider": {
"pixcode": {
"npm": "@ai-sdk/openai-compatible",
"name": "PixCode",
"options": {
"baseURL": "https://api.pixcode.ai/v1",
"apiKey": "sk-px-..."
},
"models": {
"gemini-3.8-flash": { "name": "Gemini 3.8 Flash" }
}
}
},
"model": "pixcode/gemini-3.8-flash"
}curl https://api.pixcode.ai/v1/chat/completions \
-H "Authorization: Bearer sk-px-..." \
-H "Content-Type: application/json" \
-d '{"model": "gemini-3.8-flash", "messages": [{"role": "user", "content": "Hello"}]}'Across the family
Every Gemini model on PixCode, in USD per million tokens.
| Model | Context | Input | Output |
|---|---|---|---|
| gemini-3.1-pro-preview | 1M | $2.00 | $12.00 |
| gemini-4-argon | 1M | $2.00 | $10.00 |
| gemini-3.5-flash | 1M | $1.50 | $9.00 |
| gemini-3.8-flashthis page | 1M | $0.75 | $3.75 |
| gemini-3.8-flash-dst | 1M | $0.75 | $3.75 |
| gemini-3.7-flash | 1M | $0.75 | $3.75 |
| gemini-3.6-flash | 1M | $0.75 | $3.75 |
| gemini-3.5-flash-lite | 1M | $0.30 | $2.50 |
One base URL, 60 models.
A monthly Pass converts 1:1 into crystals, billed at the upstream official list price with zero markup. Purchased crystals never expire.