> ## 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.6 Flash

> Use Google Gemini 3.6 Flash through the native Gemini API for coding, agentic execution, and multimodal reasoning.

Gemini 3.6 Flash is Google's production Flash model for code generation, agentic execution, and spatial and multimodal reasoning. AnyFast exposes it through the native Gemini `generateContent` API.

## 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
* **Agentic execution** - Fewer reasoning steps, turns, and tool calls for multi-step workflows
* **Coding** - Improved production code generation, instruction following, and diagnostic behavior
* **Spatial reasoning** - Improved chart interpretation, visual blueprint conversion, and complex layout reasoning
* **Tools** - Function calling, code execution, File Search, Google Search, Google Maps, URL context, structured output, and Computer Use (Preview)
* **Thinking** - `medium` by default; use `high` for deeper reasoning

## Quick example

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://www.anyfast.ai/v1beta/models/gemini-3.6-flash:generateContent?key=YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "contents": [
        {
          "role": "user",
          "parts": [{ "text": "Design a reliable retry strategy for a distributed job worker." }]
        }
      ],
      "generationConfig": {
        "thinkingConfig": {
          "thinkingLevel": "medium"
        },
        "maxOutputTokens": 2048
      }
    }'
  ```

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

  response = requests.post(
      "https://www.anyfast.ai/v1beta/models/gemini-3.6-flash:generateContent",
      params={"key": "YOUR_API_KEY"},
      json={
          "contents": [{
              "role": "user",
              "parts": [{"text": "Design a reliable retry strategy for a distributed job worker."}],
          }],
          "generationConfig": {
              "thinkingConfig": {"thinkingLevel": "medium"},
              "maxOutputTokens": 2048,
          },
      },
  )
  response.raise_for_status()
  print(response.json()["candidates"][0]["content"]["parts"][0]["text"])
  ```
</CodeGroup>

## API changes

<Warning>
  Do not send `temperature`, `topP`, or `topK`. Google has deprecated these sampling parameters for Gemini 3.6 Flash and Gemini 3.5 Flash-Lite. Also remove `candidateCount` and legacy `thinkingBudget` configurations.
</Warning>

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       | `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                |

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

## Official references

* [Gemini 3.6 Flash model card](https://ai.google.dev/gemini-api/docs/models/gemini-3.6-flash)
* [Latest Gemini models and migration guidance](https://ai.google.dev/gemini-api/docs/latest-model)

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