APIMart
Back to all models

Gemini 3.8 Flash API

GoogleModel ID gemini-3.8-flashText modelReleased September 2, 2026

Use Google Gemini 3.8 Flash to pull the decisions out of a long meeting recording, check a press release against the quarterly report, or clear a deprecation warning across a codebase.

Max input
1,048,576 tokens
Max output
65,536 tokens
Input → output
Text, Image, Video, Audio, File → Text
Knowledge cutoff
March 2026
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Gemini 3.8 Flash API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Gemini 3.8 Flash.

Try Gemini 3.8 Flash with your own material

Decisions from long recordings

Send Gemini 3.8 Flash a meeting or call recording and ask for each decision and action item with its timestamp. Jump to each timestamp to confirm the wording before you send the notes.

Example: What was decided in this meeting?

Material

Recording, 00:12:40
Product lead: “Let’s move the launch to March 3 so support has time to train.”
Recording, 00:31:05
Finance lead: “I’ll send the revised budget by Friday.”

PromptList every decision and action item in the recording, each with its timestamp and owner.

Sample answer · written by hand to show the reasoning

Decision (00:12:40): the launch moves to March 3 so support has time to train; owner, the product lead. Action item (00:31:05): send the revised budget by Friday; owner, the finance lead. Check both timestamps in the recording before sharing the notes.

About the Gemini 3.8 Flash API

  • Google’s most intelligent Flash model

    Built for long-horizon software engineering, autonomous agents and enterprise workflows. Google reports 73.7% on DeepSWE v1.1, close to Claude Opus 5 (74.0%) at Flash prices.

  • Reads video, audio and PDFs

    Inputs cover text, images, video, audio and PDF, with up to 1,048,576 input tokens, so a full recording or a long filing fits in one request.

  • Three thinking levels, medium by default

    Choose low, medium or high to trade depth for speed and cost. Thinking can’t be turned off: the minimal level returns an error.

  • Gemini 3.8 Flash API key and access

    You don’t need a separate Gemini 3.8 Flash API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID gemini-3.8-flash.

Gemini 3.8 Flash official benchmark results

Selected results Google published at launch.

  • DeepSWE v1.1

    73.7%

    Long-horizon software engineering. Up from 65.3% for Gemini 3.7 Flash, ahead of GPT-5.6 Sol (72.7%); Claude Opus 5 scores 74.0%.

  • Terminal-bench 2.1

    89.4%

    Agentic coding in a terminal. Highest in Google’s table, ahead of Claude Opus 5 (89.1%) and GPT-5.6 Sol (88.8%).

  • Vals Finance Agent v2

    61.4%

    Financial analysis tasks. Highest in Google’s table, ahead of Gemini 3.7 Flash (59.0%) and Claude Opus 5 (58.6%).

  • LVBench

    87.8%

    Long video understanding, agentic setting. Ahead of GPT-5.6 Sol (82.1%) and Claude Opus 5 (75.4%).

  • HLE-Verified

    54.9%

    Multidisciplinary expert reasoning. Just ahead of GPT-5.6 Sol (54.5%) and Claude Opus 5 (54.4%).

  • OSWorld-2.0

    59.0%

    Operating a computer, partial score. Up from 50.6% for Gemini 3.7 Flash; Claude Opus 5 leads at 75.4%.

How to call the Gemini 3.8 Flash API

To call Gemini 3.8 Flash, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-3.8-flash",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Gemini 3.8 Flash access details

Model IDgemini-3.8-flash
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Gemini 3.8 Flash API request parameters

Gemini 3.8 Flash uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use gemini-3.8-flash for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Gemini 3.8 Flash API pricing

The Gemini 3.8 Flash API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input6Credits~$0.65.7Credits~$0.575.4Credits~$0.547.5Credits~$0.7520%
Cached input0.6Credits~$0.060.57Credits~$0.0570.54Credits~$0.0540.75Credits~$0.07520%
Output30Credits~$328.5Credits~$2.8527Credits~$2.737.5Credits~$3.7520%

Prices are for reference only. View full pricing

Why call Gemini 3.8 Flash API through APIMart

  • 20% below official pricing

    Gemini 3.8 Flash API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Google's official prices, and cached input costs just $0.06 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Gemini 3.8 Flash, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Gemini 3.8 Flash with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Google model should you choose?

Base prices per 1M tokens (USD). Your Gemini 3.8 Flash API key works for every model in the table; just change the model parameter.

Differences between Google models
ComparisonGemini 3.8 Flash CurrentGemini 4 HydrogenGemini 4 ArgonGemini 4 CarbonGemini 4 Neon
Best forLong-horizon coding, Video, audio & PDF input, Enterprise workflowsEveryday coding, Agentic tasks, Chat & questionsSoftware engineering, Knowledge work, Long video and documentsLong-horizon agents, Software engineering, Scientific reasoningComplex coding, Long-running agents, Analytical reasoning
Input typesText, Image, Video, Audio, FileText, Image, Audio, VideoText, Image, Audio, VideoText, Image, Audio, VideoText, Image, Audio, Video
Input price$0.6$1.2$1.6$1.6$2.4
Output price$3$6$8$8$12

Gemini 3.8 Flash FAQ

How is Gemini 3.8 Flash different from Gemini 3.7 Flash?

Google built Gemini 3.8 Flash on Gemini 3.7 Flash and reports gains across coding and agent tasks, for example 73.7% vs. 65.3% on DeepSWE v1.1 and 59.0% vs. 50.6% on OSWorld-2.0. On October 8, 2026 Google replaced Gemini 3.7 Flash with it, and Gemini API requests to gemini-3.7-flash are now routed to gemini-3.8-flash.

Should I use Gemini 3.8 Flash or Gemini 4 Hydrogen?

Google’s migration guidance points from Gemini 3.8 Flash to Gemini 4 Hydrogen, its newer fast model, but has announced no shutdown date for 3.8 Flash. If your prompts already work well on 3.8 Flash, you can keep it; to compare, change the model parameter to gemini-4-hydrogen with the same APIMart API key and rerun your own tests.

Can I turn off thinking on Gemini 3.8 Flash?

No. Gemini 3.8 Flash supports three thinking levels, low, medium and high, with medium as the default; Google says the minimal level is not supported and returns an error. Use low for simple requests: Google bills thinking tokens as output, so a lower level costs less.

Will the Gemini 3.8 Flash price change in 2027?

Google’s current Gemini 3.8 Flash price is an introductory rate that runs through December 31, 2026; from January 1, 2027, Google’s list price for input, output and cached input doubles. The pricing table on this page always shows the current price on APIMart.

What can Gemini 3.8 Flash read?

Google lists text, images, video, audio and PDF as input and text as output. Google reports 87.8% on LVBench for long video understanding, ahead of the other models in its comparison. It does not generate images or audio.

What is Gemini 3.8 Flash’s knowledge cutoff?

Google’s model card gives a knowledge cutoff of March 2026, and notes that in some areas the model’s knowledge may stop at January 2025, in line with the rest of the Gemini 3 family. For recent events, put the source material in the prompt.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Gemini 3.8 Flash in the text category to start exploring.

Which model ID does the Gemini 3.8 Flash API use?

Set model to gemini-3.8-flash. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of Gemini 3.8 Flash?

On APIMart, Gemini 3.8 Flash accepts up to 1,048,576 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Gemini 3.8 Flash can output up to 65,536 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Gemini 3.8 Flash API cost?

The Gemini 3.8 Flash API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.6 per million input tokens and $3 per million output tokens. Diamond: $0.54 per million input tokens and $2.7 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.