Skip to main content
Core.Today
|
GoogleFastStandard

Gemini 3.1 Flash Lite

Stable release of the ultra-lightweight Gemini 3.1 Flash Lite. The most cost-effective Gemini model at $0.25/$1.50 per million tokens, with cached input (90% discount), audio input, and batch (50% discount) support. Ideal for high-throughput, budget-conscious applications.

465/2,787credits
input / output ยท per 1M tokens
Most cost-effective Gemini model
Stable model ID (no preview suffix)
1,048,576 token context window
65,536 max output tokens
Multimodal input: text, image, audio, video, PDF
Cached input (90% off) and batch (50% off) pricing
Function calling, structured outputs, thinking, search grounding, code execution

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Model Specifications

Context Window
1.0M
tokens
Max Output
66K
tokens
Training Cutoff
January 2025
Compatible SDK
OpenAI, Google AI

Capabilities

Vision
Function Calling
Streaming
JSON Mode
System Prompt

Token Pricing (per 1M tokens)

Token TypeCreditsUSD Equivalent
Input Tokens465$0.31
Output Tokens2,787$1.86
Cached Tokens46$0.03

* 1,500 credits โ‰ˆ $1 (actual charges may vary based on usage)

Quick Start

curl -X POST "https://api.core.today/llm/gemini/v1beta/openai/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "gemini-3.1-flash-lite",
  "messages": [
    {
      "role": "system",
      "content": "Classify the following text as: spam, not_spam. Respond with only the label."
    },
    {
      "role": "user",
      "content": "Congratulations! You have been selected for a special prize. Click here to claim now!"
    }
  ],
  "max_tokens": 50,
  "temperature": 0
}'

Parameters

ParameterTypeRequiredDefaultDescription
messagesarrayYes-Array of message objects (OpenAI format). Supports text, image, audio, video, and PDF inputs.
temperaturefloatNo1Sampling temperature (0-2). Lower values produce more deterministic outputs.
top_pfloatNo0.95Nucleus sampling parameter (0-1).
max_tokensintegerNo-Maximum output tokens. Max: 65,536. Context window (input + output): 1,048,576 tokens.
response_formatobjectNo-Output format constraint. Use `{ type: 'json_object' }` for structured JSON output.
streambooleanNofalseEnable Server-Sent Events streaming.

Examples

Quick Classification

Lightweight text classification with Flash Lite

curl -X POST "https://api.core.today/llm/gemini/v1beta/openai/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "gemini-3.1-flash-lite",
  "messages": [
    {
      "role": "system",
      "content": "Classify the following text as: spam, not_spam. Respond with only the label."
    },
    {
      "role": "user",
      "content": "Congratulations! You have been selected for a special prize. Click here to claim now!"
    }
  ],
  "max_tokens": 50,
  "temperature": 0
}'

Tips & Best Practices

1Most affordable Gemini model at $0.25/$1.50 per M tokens
2Prefer this stable ID over the -preview variant for production workloads
3Use cached input tokens ($0.025/M, 90% off) for repeated context
4Audio input at $0.50/M for voice-based applications
5Batch processing halves cost when latency doesn't matter
6Ideal for high-volume classification and routing tasks

Use Cases

High-volume text processing
Real-time chat applications
Quick classification and routing
Lightweight data extraction
Audio transcription and understanding

Model Info

ProviderGoogle
Version3.1
CategoryLLM
Price1 credits

API Endpoint

POST /llm/gemini/v1beta/openai/chat/completions
Try in ConsoleBack to Docs