---
title: Google: Gemini 3.1 Flash Lite Preview | Text Generation | ModelsLab
description: Build with Google: Gemini 3.1 Flash Lite Preview API by Google. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/google/google-gemini-3.1-flash-lite-preview/api.md
canonical: https://modelslab.com/models/google/google-gemini-3.1-flash-lite-preview/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T02:04:09.325986Z
---

Google: Gemini 3.1 Flash Lite Preview
---

 [LLMs.txt](https://modelslab.com/models/open_router/google-gemini-3.1-flash-lite-preview/llms.txt) [.md](https://modelslab.com/models/google/google-gemini-3.1-flash-lite-preview.md)

google-gemini-3.1-flash-lite-preview google Closed Source Model $0.875000 / call

Google: Gemini 3.1 Flash Lite Preview
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Google: Gemini 3.1 Flash Lite Preview

google google-gemini-3.1-flash-lite-preview

Copy model ID

PricingInput $0.25 / 1M tokens

Output $1.50 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[DO](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-OCR-2)[Together AI](https://modelslab.com/models/together_ai)

 [Deepseek OCR 2

Closed Source Model](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-OCR-2)

[QV](https://modelslab.com/models/together_ai/Qwen-Qwen3-VL-8B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3-VL-8B-Instruct

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-VL-8B-Instruct)

[![GPT-5-mini](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/0bda788d-705d-4cbd-9c9d-dcdaa12b9493.webp)](https://modelslab.com/models/openai/gpt-5-mini)[Open Ai](https://modelslab.com/models/openai)

 [GPT-5-mini

Closed Source Model](https://modelslab.com/models/openai/gpt-5-mini)

[IM](https://modelslab.com/models/open_router/inception-mercury-2)[Open Router](https://modelslab.com/models/open_router)

 [Inception: Mercury 2

Closed Source Model](https://modelslab.com/models/open_router/inception-mercury-2)

[OG](https://modelslab.com/models/open_router/openai-gpt-5.2-chat)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-5.2 Chat

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-5.2-chat)

[NN](https://modelslab.com/models/open_router/nvidia-nemotron-nano-12b-v2-vl)[Open Router](https://modelslab.com/models/open_router)

 [NVIDIA: Nemotron Nano 12B 2 VL

Closed Source Model](https://modelslab.com/models/open_router/nvidia-nemotron-nano-12b-v2-vl)

[AC](https://modelslab.com/models/open_router/anthropic-claude-sonnet-4)[Open Router](https://modelslab.com/models/open_router)

 [Anthropic: Claude Sonnet 4

Closed Source Model](https://modelslab.com/models/open_router/anthropic-claude-sonnet-4)

[OG](https://modelslab.com/models/open_router/openai-gpt-4-turbo-preview)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4 Turbo Preview

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4-turbo-preview)

[GG](https://modelslab.com/models/open_router/google-gemma-3n-e4b-it-free)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 3n 4B (free)

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-3n-e4b-it-free)

[MD](https://modelslab.com/models/open_router/mistralai-devstral-small)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Devstral Small 1.1

Closed Source Model](https://modelslab.com/models/open_router/mistralai-devstral-small)

[GG](https://modelslab.com/models/open_router/google-gemma-3-12b-it-free)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 3 12B (free)

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-3-12b-it-free)

[Q2](https://modelslab.com/models/qwen/Qwen-Qwen2.5-Coder-32B-Instruct)[ModelsLab](https://modelslab.com/models/qwen)

 [Qwen 2.5 Coder 32B Instruct

Closed Source Model](https://modelslab.com/models/qwen/Qwen-Qwen2.5-Coder-32B-Instruct)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-vl-235b-a22b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 VL 235B A22B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-vl-235b-a22b-instruct)

[OG](https://modelslab.com/models/open_router/openai-gpt-5-codex)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-5 Codex

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-5-codex)

[BS](https://modelslab.com/models/open_router/bytedance-seed-seed-1.6)[Open Router](https://modelslab.com/models/open_router)

 [ByteDance Seed: Seed 1.6

Closed Source Model](https://modelslab.com/models/open_router/bytedance-seed-seed-1.6)

[QQ](https://modelslab.com/models/open_router/qwen-qwen2.5-vl-72b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen2.5 VL 72B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen2.5-vl-72b-instruct)

[ML](https://modelslab.com/models/together_ai/meta-llama-Meta-Llama-3.1-8B)[Together AI](https://modelslab.com/models/together_ai)

 [Meta Llama 3.1 8B

Closed Source Model](https://modelslab.com/models/together_ai/meta-llama-Meta-Llama-3.1-8B)

[G3](https://modelslab.com/models/together_ai/google-gemma-3-27b-pt)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma 3 27B Pt

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-3-27b-pt)

About Google: Gemini 3.1 Flash Lite Preview
---

Gemini 3.1 Flash Lite Preview is Google's high-efficiency model optimized for high-volume use cases. It outperforms Gemini 2.5 Flash Lite on overall quality and approaches Gemini 2.5 Flash performance across...

### Technical Specifications

Model IDgoogle-gemini-3.1-flash-lite-previewCategoryLLM ModelsTaskText GenerationPrice$0.875000 per million tokensAddedMarch 3, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Google: Gemini 3.1 Flash Lite Preview into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "google-gemini-3.1-flash-lite-preview",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/google/google-gemini-3.1-flash-lite-preview/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Google: Gemini 3.1 Flash Lite Preview API costs $0.875000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about Google: Gemini 3.1 Flash Lite Preview](https://modelslab.com/google-gemini-31-flash-lite-preview) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Google](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Google: Gemini 3.1 Flash Lite Preview FAQ
---

### What is Google: Gemini 3.1 Flash Lite Preview?

Gemini 3.1 Flash Lite Preview is Google's high-efficiency model optimized for high-volume use cases. It outperforms Gemini 2.5 Flash Lite on overall quality and approaches Gemini 2.5 Flash performance across...

### How do I use the Google: Gemini 3.1 Flash Lite Preview API?

You can integrate Google: Gemini 3.1 Flash Lite Preview into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "google-gemini-3.1-flash-lite-preview" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Google: Gemini 3.1 Flash Lite Preview cost?

Google: Gemini 3.1 Flash Lite Preview costs $0.875000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Google: Gemini 3.1 Flash Lite Preview model ID?

The model ID for Google: Gemini 3.1 Flash Lite Preview is "google-gemini-3.1-flash-lite-preview". Use this ID in your API requests to specify this model.

### Does Google: Gemini 3.1 Flash Lite Preview have a free tier?

Yes, ModelsLab offers a free tier that lets you try Google: Gemini 3.1 Flash Lite Preview and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*