Gemini 3 Flash

    google/gemini-3-flash-preview

    Speed-tier variant in the Gemini 3 line, pairing Pro-grade reasoning with Flash-level latency and cost, built for agent workflows and high-throughput interactive apps.

    编程TranslationFinance
    模态
    输入 / 输出价格
    $0.5 / $3M tokens
    上下文
    1M
    发布时间
    2025-12-17

    价格

    规格0 - 200K> 200K
    输入$0.5/ M tokens$0.5/ M tokens
    输出$3/ M tokens$3/ M tokens
    缓存读$0.05/ M tokens$0.1/ M tokens
    缓存写$0/ M tokens$0/ M tokens

    快速开始

    可直接粘贴运行下方示例代码。Gate.AI API 与 OpenAI 兼容,多数 SDK 只需替换 base URL;切换模型时,只需修改模型 ID。

    1

    Get your API key

    Sign in to the Gate.AI console and create a key under "API Keys". Keep it secure and send it in the Authorization header.

    前往控制台创建密钥
    2

    Make a non-streaming request

    Send a POST request to the Gemini GenerateContent endpoint with text in contents. The endpoint returns a complete JSON response.

    POSThttps://api.gate.ai/v1beta/models/{{model_id}}:generateContent
    curl --location \
    --request POST "https://api.gate.ai/gemini/v1beta/models/gemini-3-flash-preview:generateContent" \
    --header "Authorization: Bearer {API_KEY}" \
    --header "Content-Type: application/json" \
    --data-raw '{"contents":[{"role":"user","parts":[{"text":"hello"}]}]}'
    3

    Make a streaming request

    Call the Gemini StreamGenerateContent endpoint with alt=sse. The server returns generated content using Server-Sent Events.

    POSThttps://api.gate.ai/v1beta/models/{{model_id}}:generateContent
    curl --no-buffer --location \
    --request POST "https://api.gate.ai/gemini/v1beta/models/gemini-3-flash-preview:streamGenerateContent?alt=sse" \
    --header "Authorization: Bearer {API_KEY}" \
    --header "Content-Type: application/json" \
    --data-raw '{"contents":[{"role":"user","parts":[{"text":"hello"}]}]}'

    端点

    基础 URL、请求方法和必需请求头均按当前模型的协议模板渲染。

    POSThttps://api.gate.ai/v1beta/models/{{model_id}}:generateContent
    字段
    值
    Authorization
    认证请求头,使用 Bearer {API_KEY} 格式传递 API Key
    Content-Type
    请求内容类型,固定为 application/json
    model
    Model ID in the URL path; the current model is gemini-3-flash-preview
    contents
    Array of conversation contents sent to the model
    contents[].role
    Message role; use user for user messages
    contents[].parts[].text
    Text content sent to the model
    alt
    Response format parameter for streaming requests; set it to sse

    基础 URL、请求方法和必需请求头均按当前模型的协议模板渲染。

    POSThttps://api.gate.ai/openai/v1/chat/completions
    字段
    值
    Authorization
    认证请求头,使用 Bearer {API_KEY} 格式传递 API Key
    Content-Type
    请求内容类型,固定为 application/json
    model
    Model ID; the current model is gemini-3-flash-preview
    messages
    Ordered array of conversation messages
    stream
    Whether to return the result as an SSE stream

    相关模型

    Gemini 3.8 Flash

    Flash tier in Gemini 3.8 with gains over 3.7 Flash across software engineering, agent workflows, and multi-step reasoning.

    Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)

    The lightest image model in its series, producing images in about four seconds with consistent character rendering and precise edits. Suited for high-throughput pipelines and interactive visual iteration.

    Gemini 3.5 Flash

    Designed for efficient multimodal AI tasks, offering strong coding, reasoning, real-time chat, and agent execution at Flash-tier cost and speed.

    Gemini 3.1 Flash Lite

    A high-efficiency multimodal lite model for low-latency, high-volume workloads like translation, classification, and data extraction, priced at about half of Gemini 3 Flash.

    Gemma-4-31B

    Open-weights dense model with stronger math and coding, plus native function calling for self-hosted agent workflows.

    Nano Banana 2 (Gemini 3.1 Flash Image)

    Mid-tier image generation and editing model in the series, with near-flagship visual quality at higher generation speed. Renders legible text and photorealistic subjects, suited for infographics and marketing visuals.

    Gemini 3.1 Pro

    Google's latest. Strong reasoning with native image and video.

    Nano Banana Pro (Gemini 3 Pro Image)

    Built-in reasoning; complex multi-turn creation; up to 4K; optional web grounding.

    Nano Banana (Gemini 2.5 Flash Image)

    Built for fast generation and conversational editing; low latency and cost; multimodal text-and-image input.

    Gemini 2.5 Flash Lite

    A lightweight reasoning model in the Gemini 2.5 family, optimized for ultra-low latency and cost efficiency, with faster token generation and higher throughput. Thinking is disabled by default but can be enabled via API.