Google model on Crazyrouter
All Google models →

Gemini 3.1 Flash-Lite API pricing and integration

Use gemini-3.1-flash-lite on Crazyrouter. Compare live token and cache rates with request examples for the supported endpoints.

Use this model via API

This model is available through the paid API. Create an account, add funds and create an API key. The $2 Playground credit is for supported text models only, not API calls.

Sign up for API access
OpenAI compatibleGemini native
Get API KeyView live pricing

Paste the model ID, live price, base URL and a working request straight into your coding agent.

Google
gemini-3.1-flash-lite
Input / 1M tokens$0.138
Output / 1M tokens$0.825
Cached input / 1M tokens$0.014
Model ID
gemini-3.1-flash-lite
Provider
Google
Endpoint
/v1/chat/completions
Task
chat
Release date
2026-03-18

What is Gemini 3.1 Flash-Lite?

Gemini 3.1 Flash-Lite is the lighter Flash option in the Gemini 3.1 family. Crazyrouter exposes the public ID gemini-3.1-flash-lite through both supported API formats; do not append a preview suffix from another provider. Compare its discounted input, output and cache-read prices when budgeting repeated short requests. API requests must use gemini-3.1-flash-lite. The examples cover /v1/chat/completions and /v1beta/models/{model}:generateContent.

Drop-in OpenAI compatibility

Works with the OpenAI SDKs, LangChain, Cursor, Cline and any tool that accepts a custom base URL.

Streaming and tool use

Streaming, tools and structured output depend on the model and upstream channel. Check the required feature on your channel before production use.

Live usage pricing

The rates come from Crazyrouter's billing table; discounts vary by model.

One account for every model

Compare against Claude, GPT, Gemini, DeepSeek and more without juggling vendor accounts.

Gemini 3.1 Flash-Lite API quickstart

Point your OpenAI SDK at https://api.crazyrouter.com/v1 and set the model to gemini-3.1-flash-lite. If your client speaks Gemini natively, use the second example instead.

cURL
curl https://api.crazyrouter.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CRAZYROUTER_API_KEY" \
  -d '{
    "model": "gemini-3.1-flash-lite",
    "messages": [{"role": "user", "content": "Explain the tradeoffs of this architecture decision."}],
    "stream": true
  }'
Show OpenAI-compatible migration example
cURL
curl "https://api.crazyrouter.com/v1beta/models/gemini-3.1-flash-lite:generateContent" \
  -H "Content-Type: application/json" \
  -H "x-goog-api-key: $CRAZYROUTER_API_KEY" \
  -d '{
    "contents": [{"parts": [{"text": "Explain the tradeoffs of this architecture decision."}]}]
  }'

Estimated workload costs

Chatbot · per month
$36
100k conversations × 800 input / 300 output tokens
Documents · per 1k documents
$2.34
8k input / 1.5k output tokens each
Coding · per developer / month
$0.61
2M input / 400k output tokens

Best use cases

Coding assistants and agent loops with tool calls
Long-document analysis, summarisation and extraction
Customer-facing chat with streaming responses
Evaluation and A/B tests across model vendors
Batch classification, tagging and structured extraction
Technical writing, design docs and code review

Works with developer tools

OpenAI SDKs

Set base_url to https://api.crazyrouter.com/v1 and model to gemini-3.1-flash-lite.

Cursor, Cline, Continue

Add Crazyrouter as a custom OpenAI-compatible provider and pick the model from the list.

LangChain / LlamaIndex

Use the OpenAI chat model class with the Crazyrouter base URL.

Gemini 3.1 Flash-Lite FAQ

What base URL do I use for Gemini 3.1 Flash-Lite?

https://api.crazyrouter.com/v1. Chat completions go to /v1/chat/completions; native Gemini requests use their usual path.

How is usage billed?

Per token, at the input/output rates shown on this page. Your balance is debited per request; there is no subscription.

Does it support streaming and function calling?

Support varies by model and upstream channel. The request example is a starting point; verify streaming, tools and structured output separately before production use.

Can I switch to another model later?

Change the model string. The same key works for every model in the Crazyrouter catalogue.

Where do I see the current price?

The pricing page lists live rates for every model, including group discounts if you are logged in.

Guides and comparisons

Podcast

AI Dev Tools: The Crazyrouter Podcast

Short episodes for developers on AI APIs, gateways, cost control and coding tools.

Latest episodes

  • EP196 · Oct 29, 2026 · 6:53

    AI API Security Posture — Turn Controls Into Continuous Evidence

    A practical guide to AI API security posture: inventory exposure, verify controls continuously, protect keys and data, constrain tools, and turn security assumptions into evidence that operators can act on.

  • EP195 · Oct 28, 2026 · 7:21

    AI API Policy Drift — Detect When Production Rules Stop Matching Intent

    A practical guide to policy drift in AI APIs: version routing and safety rules, detect stale enforcement, compare intended and observed behavior, and restore control before small gaps become incidents.

Episodes with written show notes →