Models & pricingGemini 3.8 Flash

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

ItemPer 1M tokens
InputOfficial$0.75, our price$0.30
OutputOfficial$3.75, our price$1.50
Cache readOfficial$0.075, our price$0.03

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 IDgemini-3.8-flash
ProviderGoogle
Context window1M tokens
Max output64K tokens
EndpointsGemini native, Chat Completions, Responses, Anthropic Messages
CapabilitiesVision, 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 key

Tested 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
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.

Python
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
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 guide

Other Google models

All models and prices