Google

Gemini 3.1 Flash Lite Preview

A low-latency, cost-efficient multimodal model for high-volume translation, extraction, lightweight Q&A, and simple agent workflows. It accepts text, images, video, audio, and PDF input, provides about a 1.05M-token context window, and supports function calling, code execution, and structured outputs. Google shut down this Preview version on May 25, 2026, so new workloads should migrate to the stable model.

  • Suy luận
  • Tìm kiếm web
  • Sử dụng công cụ
  • Gọi hàm
  • Đầu ra có cấu trúc
  • Ngữ cảnh dài
  • Thực thi mã

Mô tả chưa có ở ngôn ngữ này nên nội dung tiếng Anh đang được hiển thị.

Dùng trong Consolegemini-3.1-flash-lite-preview

USD

Bảng giá

default
Giá tiêu chuẩn
Đầu vào$0.25/1M tokensGiá hoàn thiện$1.5/1M tokensĐọc cache$0.25/1M tokensGhi cache$0.5/1M tokens

Giá niêm yết bằng USD. Chi phí cuối có thể thay đổi theo nhóm tài khoản và mức sử dụng.

API

Ví dụ mã

import http.client
import json

conn = http.client.HTTPSConnection("api.tokenhot.cn")
payload = json.dumps({
   "contents": [
      {
         "role": "user",
         "parts": [
            {
               "text": "Hello"
            }
         ]
      }
   ]
})
headers = {
   'Authorization': 'Bearer <token>',
   'Content-Type': 'application/json'
}
conn.request("POST", "/v1beta/models/gemini-3.1-flash-lite-preview:generateContent", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

Google

Mô hình liên quan

GeminiGoogleGemini 3 PRO Image Preview

Built for image generation and editing, with stronger multimodal understanding, conversational edits, and rapid visual prototyping than earlier Gemini image capabilities. Compared with GPT Image, Qwen Image, and Seedream, it is useful for combining documents, images, and prompts in one visual workflow.

$0.134/image
GeminiGoogleGemini 3.8 Flash

The flagship Flash model for long-horizon software engineering, autonomous agents, and complex enterprise workflows. It keeps the speed and cost profile of Flash while adding stronger reasoning and tool orchestration. It accepts text, images, video, audio, and PDF input, with about a 1.05M-token context window, search grounding, function calling, code execution, structured outputs, and tunable thinking. Prefer it over Flash-Lite for harder tasks, at higher usage cost.

$0.7874/1M tokens
GeminiGoogleGemini 3.1 Flash Image Preview

Built for image generation and editing, with stronger multimodal understanding, conversational edits, and rapid visual prototyping than earlier Gemini image capabilities. Compared with GPT Image, Qwen Image, and Seedream, it is useful for combining documents, images, and prompts in one visual workflow.

$0.0672/image
GeminiGoogleGemini 2.5 Flash Image

Built for image generation and editing, with stronger multimodal understanding, conversational edits, and rapid visual prototyping than earlier Gemini image capabilities. Compared with GPT Image, Qwen Image, and Seedream, it is useful for combining documents, images, and prompts in one visual workflow.

$0.0585/image

FAQ

Câu hỏi thường gặp

Gemini 3.1 Flash Lite Preview phù hợp nhất với trường hợp nào?

Gemini 3.1 Flash Lite Preview phù hợp với các loại đầu vào, đầu ra và khả năng được liệt kê trên trang. Hãy kiểm thử tải thực tế trước khi dùng cho hệ thống quan trọng.

Gemini 3.1 Flash Lite Preview được tính phí thế nào?

Giá được hiển thị ở phần trên. Chi phí thực tế phụ thuộc vào lưu lượng, nhóm tài khoản và nội dung yêu cầu.

Làm sao gọi Gemini 3.1 Flash Lite Preview?

Dùng ID mô hình phía trên với giao thức API được hỗ trợ. Ví dụ mã sẽ hiển thị khi có dữ liệu sử dụng.

Bắt đầu

Xây dựng với Gemini 3.1 Flash Lite Preview

Dùng trong Console