Skip to main content
Google

Gemini 3.7 Flash API

Google

Gemini 3.7 Flash is part of the Gemini model familyView all Gemini models

Google latest Flash model for agentic coding, web dev, and document work, with a 1M-token context window at around 340 tokens per second.

google/gemini-3.7-flash

Documentation

Conversation

Start a conversation

Google latest Flash model for agentic coding, web dev, and document work, with a 1M-token context window at around 340 tokens per second.

Enter to send · Shift+Enter for a new line

UnificAlly doesn't store your LLM prompts and replies. We only keep token usage information for billing purposes.

Uses POST /v1/chat/completions with your UnificAlly API key. Supports system and user prompts, tools, streaming, and thinking when available.

Updated

What is the Gemini 3.7 Flash API?

The Gemini 3.7 Flash API is live on UnificAlly as google/gemini-3.7-flash, from $0.225/1M tokens of input and $1.125/1M tokens of output. Gemini 3.7 Flash is Google's previous Flash model, released August 13, 2026, three weeks after Gemini 3.6 Flash and superseded by Gemini 3.8 Flash on September 2, 2026. On October 8, 2026 Google deprecated it: Gemini 3.7 Flash is no longer selectable in Google AI Studio, and Google's own API routes gemini-3.7-flash requests to Gemini 3.8 Flash. It is the default fast model of the lineup: multimodal input across text, image, audio, video, and PDF, a 1M-token context window, 64k output tokens, and output speed around 340 tokens per second. It runs on UnificAlly as google/gemini-3.7-flash. Thinking is tunable in three levels (low, medium, high), and the knowledge cutoff reaches March 2026 for code, SDKs, and technical domains.

Gemini 3.7 Flash API specs

Model IDgoogle/gemini-3.7-flash
EndpointPOST https://direct-api.unifically.com/v1/chat/completions
Other formatsPOST /v1/responses and POST /v1/messages
Request typesChat, streaming, tool calls, video input
OutputText
Video inputA video_url content part with a public https link, on Chat Completions only
Video formatsmp4, mov, webm, mkv, avi, mpeg, 3gp, flv, wmv
Input rate$0.225/1M tokens
Output rate$1.125/1M tokens
Cache read rate$0.0225/1M tokens

The Gemini 3.7 Flash API bills per token, with no subscription. The Gemini 3.7 Flash pricing guide covers the rates in full.

How to use the Gemini 3.7 Flash API

  1. Create an API key on the API keys page.
  2. Send a POST request to /v1/chat/completions on https://direct-api.unifically.com with the model ID and a messages array.
  3. Read the reply from choices[0].message.content in the same response.
curl -X POST https://direct-api.unifically.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "google/gemini-3.7-flash",
    "messages": [
      { "role": "user", "content": "Summarize the attached contract and list every obligation with a deadline." }
    ]
  }'

The response comes back synchronously with the completion and the token usage:

{
  "id": "3f8e2a1c-7b4d-4e9a-9c2f-5d1e8b7a6c40",
  "object": "chat.completion",
  "created": 1710000000,
  "model": "google/gemini-3.7-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "The contract sets out five obligations with deadlines..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 28,
    "completion_tokens": 64,
    "total_tokens": 92,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    }
  }
}

Set "stream": true to receive tokens as they generate. The stream is sent as server-sent events and ends with data: [DONE]. Send requests to direct-api.unifically.com so long replies are not cut short by a proxy timeout.

Gemini 3.7 Flash API parameters

ParameterTypeDefaultWhat it does
modelstringrequiredModel identifier, google/gemini-3.7-flash
messagesarrayrequiredNon-empty array of message objects with role and content (a string or an array of content parts). Roles: system, developer, user, assistant, tool, function
streambooleanfalseIf true, the response is streamed using server-sent events
stream_optionsobjectnoneSet { "include_usage": true } to get a final chunk with token usage. Only used when stream is true
temperaturenumbernoneSampling temperature between 0 and 2. Higher values produce more random output
max_tokensintegernoneMaximum number of tokens to generate in the completion
max_completion_tokensintegernoneAccepted as an alias for max_tokens
reasoning_effortstringnoneHow much the model reasons before answering
top_pnumbernoneNucleus sampling parameter. Alternative to temperature
stopstring or arraynoneUp to four sequences where the model stops generating further tokens
toolsarraynoneList of tools the model may call. Each tool needs a type and a function definition
tool_choicestring or objectnoneControls which tool, if any, is called: none, auto, required, or a specific tool
response_formatobjectnoneSet { "type": "json_object" } to enable JSON mode when the model supports it

The Gemini 3.7 Flash API documentation has the full reference, including the Responses and Messages formats.

What's new in Gemini 3.7 Flash

More intelligence at Flash speed

Artificial Analysis scores it 56 on the Intelligence Index at high thinking, one point behind GPT 5.6 Terra Max, while outputting around 340 tokens per second at every thinking level. Even the medium setting scores 53, one point above Gemini 3.6 Flash at high.

The best long-context recall in the Flash line

97.0% on GDM-MRCR v2 at 128k tokens, ahead of GPT 5.6 Terra at 93.5% and Claude Sonnet 5 at 81.5%, and 62.5% on the 1M pointwise variant. Long documents stay retrievable deep into the window.

Coding that edges out bigger names

On FrontierCode 1.1 Main it scores 43.6%, just ahead of Claude Sonnet 5 at 42.7% and GPT 5.6 Terra at 41.3%, and far above Gemini 3.6 Flash at 34.4%. On the WebDev Arena board its preliminary 1588 Elo is 50 points up on its predecessor.

Full multimodal input

Text, image, audio, video, and PDF go in; text comes out. One model covers transcription-adjacent work, chart reading, video Q&A, and document extraction.

What Gemini 3.7 Flash is best for

  • High-volume agent steps

    Around 340 tok/s output keeps multi-step chains moving without queue buildup.

  • Web dev and UI generation

    Preliminary 1588 Elo on WebDev Arena, 50 points above Gemini 3.6 Flash.

  • Long document work

    97% recall at 128k tokens; contracts, codebases, and research packs stay addressable.

  • Video and audio understanding

    Native video, audio, and PDF input without a separate transcription step.

  • Cost-tiered reasoning

    Drop to low thinking for cheap fast calls, raise to high for hard problems.

  • Document extraction pipelines

    Strong PDF handling and structured output for claims, tables, and fields.

Gemini 3.7 Flash use cases

Use Gemini 3.7 Flash for agent fleets where each step needs decent reasoning but latency budgets are tight: support triage, research summarization, and workflow automation. It fits web-dev copilots that scaffold and revise UIs across many quick turns. Feed it hour-long meeting recordings or lecture video and get structured notes back in one call. And with 1M tokens of context plus 97% retrieval at 128k, it handles whole-repo questions and long contract review without aggressive chunking.

Gemini 3.7 Flash limitations

Output is text only, and thinking tokens are billed as output tokens even though only summaries are returned.

Most headline agentic numbers (FrontierCode, DeepSWE, GDM-MRCR) come from Google's own evaluation run; the independent picture is thinner, and GPT 5.6 Terra stays ahead on DeepSWE v1.1 (69.6% against 65.3%) and Terminal-Bench 2.1 (87.4% against 85.8%) in the same table.

Its Arena text score (1490 Elo, rank #9) is marked preliminary, and the minimal thinking level from earlier Flash models is gone, so the cheapest classification-style calls now carry some thinking cost.

Gemini 3.7 Flash vs Gemini 3.6 Flash

The upgrade is real across the board: FrontierCode 1.1 rises from 34.4% to 43.6%, DeepSWE v1.1 from 48.6% to 65.3%, 128k MRCR from 91.8% to 97.0%, and WebDev Arena from 1538 to 1588 Elo. Speed goes up too, roughly 340 tokens per second against 234 for the older model. Unless a pipeline depends on regression-tested Gemini 3.6 Flash behavior, new work belongs on 3.7 Flash.

When to use Gemini 3.7 Flash

Use Gemini 3.7 Flash as the default fast model for agents, web dev, and multimodal document work when you want near-frontier answers at Flash latency. Step up to a frontier model when the task is deep single-shot reasoning; step down to a smaller model only for pure classification and routing.

Video input with Gemini 3.7 Flash

Pass a video the same way you pass an image: a public https link in a video_url content part next to your text. The model watches the clip (frames and audio track) and answers about it. Keep the file under 20 MB when you send it inline as a data:video/mp4;base64 URI; linked files can be larger.

curl -X POST https://direct-api.unifically.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "google/gemini-3.7-flash",
    "messages": [
      { "role": "user", "content": [
        { "type": "text", "text": "Describe what happens in this clip and flag anything unsafe." },
        { "type": "video_url", "video_url": { "url": "https://example.com/clip.mp4" } }
      ] }
    ]
  }'

The video is billed as input tokens at the input rate on the pricing page: about 70 tokens per second of video at the default resolution, plus about 25 tokens per second for its audio track, so a 10-second clip adds roughly 950 input tokens. The usage block of the response shows the total so you can check what a clip cost.

FAQs

People also ask about Gemini 3.7 Flash

google/gemini-3.7-flash, called through the OpenAI-compatible POST /v1/chat/completions endpoint with your UnificAlly API key.

Keys come from the API keys page of a UnificAlly account and travel in the Authorization: Bearer <key> header. Point any OpenAI-compatible client at https://direct-api.unifically.com/v1/chat/completions with google/gemini-3.7-flash as the model; spend is deducted per token from a prepaid balance.

A chat completion with model: google/gemini-3.7-flash and a messages array is the whole call; add reasoning_effort to pick a thinking level (low, medium or high, with medium as the default). The reply is synchronous, read from choices[0].message.content, and setting "stream": true streams it as server-sent events instead.

Text, image, audio, video, and PDF input, with text output up to 64k tokens per response. The context window is 1M tokens.

Yes, across Google's evaluation suite. FrontierCode 1.1 rises from 34.4% to 43.6%, DeepSWE v1.1 from 48.6% to 65.3%, GDM-MRCR v2 at 128k from 91.8% to 97.0%, and its Artificial Analysis Intelligence Index is 56 against 52.

Artificial Analysis measures around 340 output tokens per second at every thinking level, which is faster than most frontier models. Time to first token stays under a second at low thinking.

Three, low, medium, and high, with medium as the default. Higher levels reason longer before answering; thinking tokens are billed as output tokens.

No. As of August 2026 the Pro line is still at Gemini 3.1, and Google has said the next Pro release is delayed. Gemini 3.8 Flash, released September 2, 2026, is now the newest Gemini model overall.

97.0% on GDM-MRCR v2 at 128k tokens and 62.5% on the 1M pointwise variant, the best long-context retrieval scores in the Flash line.

Gemini 3.7 Flash guides and comparisons

Review pricing, limits, and tested outputs before running this model.