APIMart
Back to all models

Gemini 3 Flash Preview API

GoogleModel ID gemini-3-flash-previewText modelReleased December 17, 2025

Use Gemini 3 Flash Preview to turn a UI screenshot into a short bug report, pull the totals out of a scanned invoice, or answer support questions at minimal thinking for the fastest replies.

Max input
1,048,576 tokens
Max output
65,536 tokens
Input → output
Text, Image, Video, Audio, File → Text
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Gemini 3 Flash Preview API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Gemini 3 Flash Preview.

Try Gemini 3 Flash Preview with your own material

Screenshots to bug reports

Send Gemini 3 Flash Preview a screenshot of the broken screen and a line on what you expected, and have it write the steps, the expected and the actual result. Check every label it quotes against the image.

Example: What is wrong on this checkout screen?

Material

Screenshot (image)
Checkout page: cart shows 2 items, subtotal $58.00, discount code SAVE10 applied, total $58.00. A green banner says “Code applied: 10% off”.
Note
Expected the 10% discount to reduce the total.

PromptWrite a bug report from the screenshot: steps to reproduce, expected result and actual result. Quote on-screen text exactly.

Sample answer · written by hand to show the reasoning

Steps: add 2 items to the cart (subtotal $58.00), go to checkout, apply code SAVE10. Expected: the total drops by 10% to $52.20. Actual: the banner says “Code applied: 10% off”, but the total stays at $58.00, so the discount is shown as applied without being deducted.

About the Gemini 3 Flash Preview API

  • Google’s fast Gemini 3 model

    Released on December 17, 2025 as the Flash model of the Gemini 3 generation. At launch Google reported 78% on SWE-bench Verified, ahead of Gemini 3 Pro, and 90.4% on GPQA Diamond.

  • Reads images, video, audio and PDF

    A request can mix text with screenshots, scans, recordings and documents, up to 1,048,576 input tokens. The reply is text, up to 65,536 tokens, with structured output and function calling.

  • Four thinking levels, including minimal

    Thinking defaults to high and can be set to medium, low or minimal. Lower levels answer faster and use fewer output tokens on simple requests.

  • Gemini 3 Flash Preview API key and access

    You don’t need a separate Gemini 3 Flash Preview API key: one APIMart key works for every model. Check the price table on this page, then call the Gemini 3 Flash API through an OpenAI Chat Completions-compatible endpoint with the model ID gemini-3-flash-preview.

How to call the Gemini 3 Flash Preview API

To call Gemini 3 Flash Preview, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-3-flash-preview",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Gemini 3 Flash Preview access details

Model IDgemini-3-flash-preview
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Gemini 3 Flash Preview API request parameters

Gemini 3 Flash Preview uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use gemini-3-flash-preview for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Gemini 3 Flash Preview API pricing

The Gemini 3 Flash Preview API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input4Credits~$0.43.8Credits~$0.383.6Credits~$0.365Credits~$0.520%
Cached input0.4Credits~$0.040.38Credits~$0.0380.36Credits~$0.0360.5Credits~$0.0520%
Output24Credits~$2.422.8Credits~$2.2821.6Credits~$2.1630Credits~$320%

Prices are for reference only. View full pricing

Why call Gemini 3 Flash Preview API through APIMart

  • 20% below official pricing

    Gemini 3 Flash Preview API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Google's official prices, and cached input costs just $0.04 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Gemini 3 Flash Preview, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Gemini 3 Flash Preview with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Google model should you choose?

Base prices per 1M tokens (USD). Your Gemini 3 Flash Preview API key works for every model in the table; just change the model parameter.

Differences between Google models
ComparisonGemini 3 Flash Preview CurrentGemini 3.1 Pro PreviewGemini 3.5 Flash-LiteGemini 3.6 FlashGemini 3.8 FlashGemini 4 HydrogenGemini 4 ArgonGemini 4 CarbonGemini 4 Neon
Best forFast multimodal tasks, Agentic coding, Four thinking levelsAgentic coding, Long multimodal inputs, Three thinking levelsHigh-volume tasks, Data extraction, SubagentsAgentic tasks, Chart and screen reading, Long documentsLong-horizon coding, Video, audio & PDF input, Enterprise workflowsEveryday coding, Agentic tasks, Chat & questionsSoftware engineering, Knowledge work, Long video and documentsLong-horizon agents, Software engineering, Scientific reasoningComplex coding, Long-running agents, Analytical reasoning
Input typesText, Image, Video, Audio, FileText, Image, Video, Audio, FileText, Image, Video, Audio, FileText, Image, Video, Audio, FileText, Image, Video, Audio, FileText, Image, Audio, VideoText, Image, Audio, VideoText, Image, Audio, VideoText, Image, Audio, Video
Knowledge cutoff——March 2026March 2026March 2026March 2026March 2026March 2026March 2026
Input price$0.4$1.6$0.24$0.6$0.6$1.2$1.6$1.6$2.4
Output price$2.4$9.6$2$3$3$6$8$8$12

Gemini 3 Flash Preview FAQ

Is Gemini 3 Flash Preview being shut down?

Google has announced no shutdown date for gemini-3-flash-preview and lists gemini-3.6-flash as the recommended replacement. Google’s docs say preview models are deprecated with at least 2 weeks’ notice, so plan a move for workloads you rely on. On APIMart you switch by changing only the model parameter.

Should I move from Gemini 3 Flash Preview to Gemini 3.6 Flash or Gemini 4 Hydrogen?

Google gives two answers. Its deprecations page lists gemini-3.6-flash as the recommended replacement: a stable Flash model that also supports the minimal thinking level. Its model-selection guide maps gemini-3-flash-preview, along with Gemini 3.6 and 3.8 Flash, to gemini-4-hydrogen. Compare them on your own prompts; all use the same APIMart API key, so you only change the model parameter.

How do I lower thinking on Gemini 3 Flash Preview?

Set the thinking level. Gemini 3 Flash Preview supports minimal, low, medium and high, with high as the default. Google bills thinking tokens as output, so a lower level costs less and answers faster on simple requests.

Did Gemini 3 Pro Preview get replaced by Gemini 3 Flash Preview?

No. Google shut down gemini-3-pro-preview on March 9, 2026 and now routes that ID to gemini-3.1-pro-preview. Gemini 3 Flash Preview is the separate, faster Flash model of the same generation; Google reported it ahead of Gemini 3 Pro on SWE-bench Verified at launch.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Gemini 3 Flash Preview in the text category to start exploring.

Which model ID does the Gemini 3 Flash Preview API use?

Set model to gemini-3-flash-preview. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of Gemini 3 Flash Preview?

On APIMart, Gemini 3 Flash Preview accepts up to 1,048,576 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Gemini 3 Flash Preview can output up to 65,536 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Gemini 3 Flash Preview API cost?

The Gemini 3 Flash Preview API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.4 per million input tokens and $2.4 per million output tokens. Diamond: $0.36 per million input tokens and $2.16 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.