# Gemini 3.7 Flash API

https://getmegabrain.com/models/google/gemini-3.7-flash · prices from the live MegaBrain catalogue

> Gemini 3.7 Flash is a multimodal model from Google for fast agentic workflows, coding, and complex multi-step reasoning. It is designed for tasks that require responsive performance and reliable multi-step...

| | |
|---|---|
| Model ID | `google/gemini-3.7-flash` |
| Provider | Google |
| Context window | 1,048,576 tokens |
| Input tokens | $0.9 per 1M tokens |
| Output tokens | $4.5 per 1M tokens |
| Cache read | $0.09 per 1M tokens |
| Cache write | $0.05 per 1M tokens |
| Accepts | Text, Images, Video, Files, and Audio |
| Produces | Text |
| Max output tokens | 65,536 |

## Call it

```python
from openai import OpenAI

client = OpenAI(base_url="https://getmegabrain.com/api/gateway/v1", api_key="YOUR_MEGABRAIN_KEY")
reply = client.chat.completions.create(
    model="google/gemini-3.7-flash",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)
```

## FAQ

**How much does the Gemini 3.7 Flash API cost?**

$0.9 per 1M input tokens and $4.5 per 1M output tokens, charged from a prepaid US-dollar balance for the tokens actually used. There is no subscription.

**What is the context window of Gemini 3.7 Flash?**

1,048,576 tokens (1M), with up to 65,536 tokens in one reply.

**How do I call Gemini 3.7 Flash through the API?**

Send an OpenAI-compatible request to https://getmegabrain.com/api/gateway/v1/chat/completions with "model": "google/gemini-3.7-flash" and your MegaBrain API key as a Bearer token. The official OpenAI SDKs, LangChain and any client with a base URL setting work; the same key also reaches image and video models.

**What input does Gemini 3.7 Flash accept?**

It accepts Text, Images, Video, Files, and Audio and produces Text.

**Can I try Gemini 3.7 Flash before paying?**

Sign-up is free and open to everyone. Adding a card (nothing is charged) gives $1.00 of credit to try any model; after that every model is charged from a balance you top up by card.
