> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini 3.7 Flash

> Use Google Gemini 3.7 Flash through the native Gemini API for coding, agentic workflows, web development, and multimodal reasoning.

Gemini 3.7 Flash is a generally available Gemini model for coding, agentic workflows, web development, and multimodal reasoning. AnyFast exposes it through the native Gemini `generateContent` API with the stable model ID `gemini-3.7-flash`.

## Key capabilities

* **1M token context** - Up to 1,048,576 input tokens and 65,536 output tokens
* **Multimodal input** - Text, image, video, audio, and PDF input; text output
* **Coding and agents** - Improved software engineering, issue resolution, multi-step execution, and fewer failed agent loops
* **Web development** - Improved design adherence when generating interfaces from design references or auditing implementations against them
* **Tools** - Function calling, code execution, File Search, Google Search, Google Maps, URL context, structured output, and Computer Use (Preview)
* **Thinking levels** - `low`, `medium`, and `high`; the default is `medium`
* **Caching and batch processing** - Supports context caching, Batch API, Flex inference, and Priority inference upstream

## Model specifications

| Property               | Value                              |
| ---------------------- | ---------------------------------- |
| Model ID               | `gemini-3.7-flash`                 |
| Release stage          | Generally available (GA)           |
| Inputs                 | Text, image, video, audio, and PDF |
| Output                 | Text                               |
| Input token limit      | 1,048,576                          |
| Output token limit     | 65,536                             |
| Default thinking level | `medium`                           |

## Quick example

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://www.anyfast.ai/v1beta/models/gemini-3.7-flash:generateContent?key=YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "contents": [
        {
          "role": "user",
          "parts": [{ "text": "Review this retry design and identify possible race conditions." }]
        }
      ],
      "generationConfig": {
        "thinkingConfig": {
          "thinkingLevel": "medium"
        },
        "maxOutputTokens": 2048
      }
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://www.anyfast.ai/v1beta/models/gemini-3.7-flash:generateContent",
      params={"key": "YOUR_API_KEY"},
      json={
          "contents": [{
              "role": "user",
              "parts": [{"text": "Review this retry design and identify possible race conditions."}],
          }],
          "generationConfig": {
              "thinkingConfig": {"thinkingLevel": "medium"},
              "maxOutputTokens": 2048,
          },
      },
  )
  response.raise_for_status()
  print(response.json()["candidates"][0]["content"]["parts"][0]["text"])
  ```
</CodeGroup>

## Thinking levels

Choose a thinking level based on latency and task difficulty:

| Level    | Recommended use                                                            |
| -------- | -------------------------------------------------------------------------- |
| `low`    | Latency-sensitive chat, drafting, incident response, and quick analysis    |
| `medium` | Default; coding and agentic tasks that need balanced latency and reasoning |
| `high`   | Difficult coding, mathematics, tool use, and complex reasoning             |

<Warning>
  `minimal` is not supported by Gemini 3.7 Flash and returns an error.
</Warning>

## Conversation requirements

Requests must not end with a non-empty `model` role turn. End the conversation with a non-empty `user` turn; otherwise the API returns HTTP 400.

## Parameters

| Parameter                                       | Type    | Required | Description                                               |
| ----------------------------------------------- | ------- | -------- | --------------------------------------------------------- |
| `key`                                           | string  | Yes      | API key in the query string                               |
| `contents`                                      | array   | Yes      | Conversation turns containing text or multimodal parts    |
| `systemInstruction`                             | object  | No       | System instruction with a `parts` array                   |
| `generationConfig.thinkingConfig.thinkingLevel` | string  | No       | `low`, `medium` (default), or `high`                      |
| `generationConfig.maxOutputTokens`              | integer | No       | Maximum output tokens, up to 65,536                       |
| `generationConfig.responseMimeType`             | string  | No       | Output MIME type, such as `application/json`              |
| `generationConfig.responseSchema`               | object  | No       | JSON schema used with structured output                   |
| `tools`                                         | array   | No       | Function declarations and supported built-in Gemini tools |

<Card title="API Reference" icon="code" href="/api-reference/model-api/google/gemini-3.7-flash">
  View the interactive API reference for Gemini 3.7 Flash.
</Card>

## Official references

* [Gemini 3.7 Flash model page](https://ai.google.dev/gemini-api/docs/models/gemini-3.7-flash)
* [Latest Gemini model guide](https://ai.google.dev/gemini-api/docs/latest-model)
* [Gemini API release notes](https://ai.google.dev/gemini-api/docs/changelog#08-13-2026)

<script src="/public/feedback.js" />
