# google/gemini-3.7-flash API

> google/gemini-3.7-flash is a model that you can call through the ScalingTensor API. Chat models available through the ScalingTensor API.

- Model ID: `google/gemini-3.7-flash`
- Provider: google
- Tasks: Chat
- Price: From $1.50 per 1M input tokens; output, cache and context tiers priced separately

### Token pricing rule

Coefficients are USD per 1M tokens. len is total input context including cache; p is input excluding separately priced cache and modalities; c is output. cr is cache read, cc is cache write, cc1h is one-hour cache write.

```text
tier("base", p * 1.5 + c * 7.5 + cr * 0.15 + cc * 1.5 + cc1h * 1.5)
```

- Web page: https://scalingtensor.com/models/google/gemini-3.7-flash

## How to call it

Authenticate with the `apiKey` request header. Send POST https://restapi.scalingtensor.com/api/chat/completion with model and the example parameters below. A response code of 0 means success; data contains content, tokensIn, tokensOut and costMicros.

```bash
curl --request POST 'https://restapi.scalingtensor.com/api/chat/completion' \
  --header 'apiKey: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 2048,
  "model": "google/gemini-3.7-flash"
}'
```

## Input parameters

Send these parameters directly in the request body alongside model.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `messages` | object[] | Required | — |
| `seed` | integer | Optional | — |
| `stop` | string[] | Optional | — |
| `tools` | array | Optional | — |
| `top_p` | number | Optional | Min: 0 · Max: 1 |
| `stream` | boolean | Optional | Default: false |
| `max_tokens` | integer | Optional | Max: 65536 |
| `temperature` | number | Optional | Min: 0 · Max: 2 · Default: 1 |
| `tool_choice` | string | Optional | — |
| `response_format` | object | Optional | — |
| `messages[].role` | string | Optional | enum: ["system","user","assistant"] |
| `messages[].content` | string | Optional | — |

## FAQ

### How much does the google/gemini-3.7-flash API cost?

google/gemini-3.7-flash costs From $1.50 per 1M input tokens; output, cache and context tiers priced separately on ScalingTensor. There is no subscription; usage is charged to your prepaid wallet.

### How do I call the google/gemini-3.7-flash API?

Send POST /api/chat/completion with "model": "google/gemini-3.7-flash" and a messages array using your apiKey header. Read data.content from the successful response. Usage is reported in tokensIn, tokensOut and costMicros.

### Which parameters does google/gemini-3.7-flash accept?

Required: messages. Optional: seed, stop, tools, top_p, stream, max_tokens, temperature, tool_choice and response_format. The parameter table on this page describes each one.

### Do I need a google account to use google/gemini-3.7-flash?

No. You call google/gemini-3.7-flash with your ScalingTensor API key and pay from your ScalingTensor wallet. The same key works for every other model in the catalog.
