Gemini 3.8 Flash API: pricing and how to call it
Gemini 3.8 Flash has the model ID gemini-3.8-flash. On MYUSAPI it costs $0.30 per 1M input tokens and $1.50 per 1M output tokens, prepaid and charged by usage. The model is never swapped or downgraded, and you are billed by the usage the upstream reports.
Gemini 3.8 Flash API pricing
| Item | Per 1M tokens |
|---|---|
| Input | Official |
| Output | Official |
| Cache read | Official |
USD. The struck figure is Google’s official standard list price; bold is ours, with input and output at 40% of list. Source of the list price
Example: a job that uses 1M input tokens and 200K output tokens costs $0.60 at our rates and $1.50 at list price.
Official rates: Introductory price until 2026-12-31, then $1.50 / $7.50.
Specifications
| Model ID | gemini-3.8-flash |
| Provider | |
| Context window | 1M tokens |
| Max output | 64K tokens |
| Endpoints | Gemini native, Chat Completions, Responses, Anthropic Messages |
| Capabilities | Vision, Agents, Streaming |
A Gemini workhorse balancing speed and cost for everyday coding, agents, and multimodal understanding.
How to call the Gemini 3.8 Flash API
Sign up, add credit and put your key in the MYUSAPI_API_KEY environment variable.
Sign up and get an API keyTested 2026-11-12: the cURL requests on this page answered for gemini-3.8-flash. The Python samples were not run.
Gemini native (cURL)
The address is https://myusapi.com/v1beta/models/gemini-3.8-flash:generateContent. To stream, call :streamGenerateContent?alt=sse instead.
curl https://myusapi.com/v1beta/models/gemini-3.8-flash:generateContent \ -H "x-goog-api-key: $MYUSAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"contents":[{"parts":[{"text":"Hello"}]}]}'
OpenAI SDK (Python, Chat Completions)
A project already on the OpenAI SDK changes only base_url (https://myusapi.com/v1) and the model ID.
import os from openai import OpenAI client = OpenAI( base_url="https://myusapi.com/v1", api_key=os.environ["MYUSAPI_API_KEY"], ) reply = client.chat.completions.create( model="gemini-3.8-flash", messages=[{"role": "user", "content": "Hello"}], ) print(reply.choices[0].message.content)
Chat Completions (cURL)
curl https://myusapi.com/v1/chat/completions \ -H "Authorization: Bearer $MYUSAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "gemini-3.8-flash", "messages": [{"role": "user", "content": "Hello"}]}'
Whether your key can call it now is what GET https://myusapi.com/v1/models returns.
Use Gemini 3.8 Flash in Gemini CLI
Gemini CLI connects over the Gemini-native routes: in the connection guide choose Gemini CLI and gemini-3.8-flash, then copy the generated setup.
Open the connection guideOther Google models
- Gemini 4 Argon API: $0.60 input, $3.00 output per 1M tokens
- Gemini 3.5 Flash-Lite API: $0.12 input, $1.00 output per 1M tokens