Skip to main content
All models

Gemini 3.1 Flash Lite Preview

GeminiGemini docs

gemini-3.1-flash-lite-preview

Run Gemini 3.1 Flash Lite Preview in a hosted Python Task with structured output, web search, extended thinking and file inputs.

Google's fastest and most cost-efficient Gemini 3.1 model. Optimized for high-throughput, low-latency applications with strong reasoning across text, images, video, audio, and PDFs.

Deprecated model

This model is deprecated and not recommended for new projects. It retires on May 25, 2026.

What Gemini 3.1 Flash Lite Preview supports in qbash

  • Structured outputReplies as JSON that matches a schema you pass.
  • Web searchSearches the web while it answers.
  • Extended thinkingReasons through a problem before it replies.
  • Image inputReads WEBP, PNG, JPEG and GIF images.
  • Document inputReads PDF, TEXT, DOC, XLS, RTF and 7 more files.
  • Prompt cachingRepeated input is billed at the cached rate.

What is qbash?

qbash is where you build Tasks: Python programs that run a business process on managed infrastructure. Your code runs the steps and calls a model like Gemini 3.1 Flash Lite Preview only at the ones that need judgment, with integrations, memory and files available in the same script.

A developer writes the Task once, and anyone on the team runs it from a form, on a schedule, from a webhook or from chat. Each Task is versioned and every run is logged.

Specifications

Context window
1.05Mtokens
Temperature
0 to 2default 1

Structured output with Gemini 3.1 Flash Lite Preview in a Python Task

qbash.ai.raw calls Gemini 3.1 Flash Lite Preview from a Task. Pass a JSON Schema as output_schema and the reply comes back as a Python dict that matches it, ready to route to a connector.

main.py
ticket = qbash.inputs.get("ticket")

triage = qbash.ai.raw(
f"Summarize this support ticket and rate its urgency:\n\n{ticket}",
model="gemini-3.1-flash-lite-preview",
output_schema={
"type": "object",
"properties": {
"summary": {"type": "string"},
"urgency": {"type": "string", "enum": ["low", "medium", "high"]},
},
"required": ["summary", "urgency"],
},
)

# triage is a dict, e.g. {"summary": "...", "urgency": "high"}
if triage["urgency"] == "high":
qbash.integrations.slack.create_message(
channel="#support",
text=triage["summary"],
)

qbash.output(triage)
Structured output in Tasks

Use Gemini 3.1 Flash Lite Preview with web search

Turn on Web Search in an inline prompt's model bar and Gemini 3.1 Flash Lite Preview searches the web while it answers.

Extended thinking with Gemini 3.1 Flash Lite Preview

Turn on Thinking in the same Settings popover to have Gemini 3.1 Flash Lite Preview reason through a problem before it replies.

Gemini 3.1 Flash Lite Preview pricing

Input$0.25 per 1M tokens
Output$1.50 per 1M tokens
Cached input$0.025 per 1M tokens
Google search$14.00 per 1K searches

Standard rates in USD.

Supported file formats

Images

  • WEBP up to 5 MB
  • PNG up to 5 MB
  • JPEG up to 5 MB
  • GIF up to 5 MB

Documents

  • PDF
  • TEXT
  • DOC
  • XLS
  • RTF
  • DOCX
  • XLSX
  • PPTX
  • PPT
  • ODT
  • ODP
  • ODS

Automate Gemini 3.1 Flash Lite Preview with qbash