# Gemini 3.1 Flash Lite

> Google's most cost-efficient Gemini model. Optimized for low latency, high-volume use cases at a fraction of the cost of larger models.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `google/gemini-3.1-flash-lite`
- Live status and providers as JSON, no key needed: https://api.ohmygpt.com/v1/models/google/gemini-3.1-flash-lite
- Released: 2026-05-07
- Context: 1M tokens
- Max output: 66K tokens
- Input: text, image, audio, video, pdf; output: text
- Capability score: 145 (as of 2026-11-10, see https://www.ohmygpt.com/rankings.md)
- Human preference rating (LMArena text): 1416

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $0.225 | per 1M tokens |
| Output | $1.35 | per 1M tokens |
| Cache read | $0.0225 | per 1M tokens |
| Reasoning output | $1.35 | per 1M tokens |
| Audio input | $0.45 | per 1M tokens |
| Web search | $0.0126 | per request |

## Providers

Without a prefix each request goes to the best-priced healthy provider. To pin one, send the model as `<provider>:google/gemini-3.1-flash-lite`.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| Google (Gemini) | `google:google/gemini-3.1-flash-lite` | United States | $0.225 | $1.35 | no |
| Google Vertex AI | `vertex:google/gemini-3.1-flash-lite` | Global | $0.225 | $1.35 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `google/gemini-3.1-flash-lite` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `google/gemini-3.1-flash-lite` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `google/gemini-3.1-flash-lite` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/google/gemini-3.1-flash-lite:generateContent | `google/gemini-3.1-flash-lite` |

## Example

```bash
curl https://api.ohmygpt.com/v1/models/google/gemini-3.1-flash-lite:generateContent \
  -H "x-goog-api-key: $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {
        "role": "user",
        "parts": [
          {
            "text": "Hello"
          }
        ]
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/google/gemini-3.1-flash-lite
