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

# Gemini 3.7 Flash

> Coding and agentic workhorse, 1M context

<CardGroup cols={1}>
  <Card title="Try Gemini 3.7 Flash in the Workbench" icon="flask" href="https://www.oxen.ai/ai/workbench?model=gemini-3-7-flash">
    Run this model interactively, tune parameters, and compare outputs.
  </Card>
</CardGroup>

**Model ID:** `gemini-3-7-flash`

**gemini-3.7-flash is a Multimodal LLM.** It is Google's workhorse model for coding and agentic tasks, with substantial gains over Gemini 3.6 Flash in software engineering, web development, and dense-document comprehension (65.3% vs 49.0% on DeepSWE v1.1, 43.6% vs 34.4% on FrontierCode 1.1, 34.0% vs 22.0% on GDP.pdf).

Some other noteworthy features of gemini-3.7-flash include configurable thinking levels (low, medium, high; unlike earlier Flash models, minimal is not supported), structured output, tool use, code execution, context caching, search grounding, and support for multimodal inputs like text, images, audio, video, and PDFs. Multimodal gains over 3.6 Flash are uneven: long-video understanding improves modestly (85.4% vs 84.2% on LVBench) and chart reasoning is slightly lower on CharXiv, so document-heavy work benefits more than chart analysis.

It also supports Google's agentic video understanding, an opt-in per-request mode where the model decides which video segments to load, at what speed, and through which modality (frames, audio, or transcript) instead of sampling at a fixed frame rate. Google reports up to 88% fewer tokens, up to 66% lower cost, and up to 7% better accuracy on video analysis, at standard token pricing.

| Metric         | Value     |
| -------------- | --------- |
| Context Length | 1M tokens |
| Multilingual   | Yes       |

## Example request

<Tip>
  Use the [Workbench](https://www.oxen.ai/ai/workbench?model=gemini-3-7-flash) as a request builder: configure parameters for this model in the UI, then open the **API** tab to copy the exact cURL or Python call.
</Tip>

<Tabs>
  <Tab title="Minimal">
    <CodeGroup>
      ```bash cURL theme={null}
      curl -X POST https://hub.oxen.ai/api/ai/chat/completions \
        -H "Content-Type: application/json" \
        -H "Authorization: Bearer $OXEN_API_KEY" \
        -d '{
        "model": "gemini-3-7-flash",
        "messages": [
          {
            "role": "user",
            "content": "Hello, what can you do?"
          }
        ]
      }'
      ```

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

      response = requests.post(
          "https://hub.oxen.ai/api/ai/chat/completions",
          headers={
              "Content-Type": "application/json",
              "Authorization": f"Bearer {os.environ['OXEN_API_KEY']}",
          },
          json={
              "model": "gemini-3-7-flash",
              "messages": [
                  {
                      "role": "user",
                      "content": "Hello, what can you do?"
                  }
              ]
          },
      )
      response.raise_for_status()
      print(response.json())
      ```
    </CodeGroup>
  </Tab>

  <Tab title="Basic parameters">
    <CodeGroup>
      ```bash cURL theme={null}
      curl -X POST https://hub.oxen.ai/api/ai/chat/completions \
        -H "Content-Type: application/json" \
        -H "Authorization: Bearer $OXEN_API_KEY" \
        -d '{
        "model": "gemini-3-7-flash",
        "messages": [
          {
            "role": "user",
            "content": "Hello, what can you do?"
          }
        ],
        "temperature": 0.7,
        "max_tokens": 1024,
        "stream": false
      }'
      ```

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

      response = requests.post(
          "https://hub.oxen.ai/api/ai/chat/completions",
          headers={
              "Content-Type": "application/json",
              "Authorization": f"Bearer {os.environ['OXEN_API_KEY']}",
          },
          json={
              "model": "gemini-3-7-flash",
              "messages": [
                  {
                      "role": "user",
                      "content": "Hello, what can you do?"
                  }
              ],
              "temperature": 0.7,
              "max_tokens": 1024,
              "stream": false
          },
      )
      response.raise_for_status()
      print(response.json())
      ```
    </CodeGroup>
  </Tab>

  <Tab title="All parameters">
    <CodeGroup>
      ```bash cURL theme={null}
      curl -X POST https://hub.oxen.ai/api/ai/chat/completions \
        -H "Content-Type: application/json" \
        -H "Authorization: Bearer $OXEN_API_KEY" \
        -d '{
        "model": "gemini-3-7-flash",
        "messages": [
          {
            "role": "user",
            "content": "Hello, what can you do?"
          }
        ],
        "temperature": 0.7,
        "max_tokens": 1024,
        "stream": false,
        "top_p": 1.0
      }'
      ```

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

      response = requests.post(
          "https://hub.oxen.ai/api/ai/chat/completions",
          headers={
              "Content-Type": "application/json",
              "Authorization": f"Bearer {os.environ['OXEN_API_KEY']}",
          },
          json={
              "model": "gemini-3-7-flash",
              "messages": [
                  {
                      "role": "user",
                      "content": "Hello, what can you do?"
                  }
              ],
              "temperature": 0.7,
              "max_tokens": 1024,
              "stream": false,
              "top_p": 1.0
          },
      )
      response.raise_for_status()
      print(response.json())
      ```
    </CodeGroup>
  </Tab>
</Tabs>

## Fetch model details

The [models endpoint](/inference-api/reference/models/overview) returns the full model object, including its `json_request_schema`.

```bash theme={null}
curl -H "Authorization: Bearer $OXEN_API_KEY" https://hub.oxen.ai/api/ai/models/gemini-3-7-flash
```

## Request parameters

This model follows the standard OpenAI chat completions request body. See the [chat completions reference](../inference-api.mdx) for the full parameter list.
