MAXAPI / TEXT API

Gemini 3 Flash Preview API guide

The short answer · Gemini 3 Flash Preview is listed as google/gemini-3-flash-preview. Use the Gemini-native request format in the example below, then read candidates and usageMetadata from the response. Model access, routing and account limits are separate from the task instructions you put in contents.

Integration review ·

Checked against MaxAPI's public catalogue, gateway implementation and local regression cases. Shared gateway checks are not separate end-to-end tests of every listed model. This is an integration reference, not a live upstream availability or performance report.

Before you integrate

Parameters describe MaxAPI's published configuration. A selected route may impose additional input or access requirements.

Request model ID
google/gemini-3-flash-preview
Output type
Language
Base URL
https://api.maxapi.dev
Generation workflow
Gemini-compatible generateContent

Use contents with role and parts in the Gemini-native request. Read candidates for the answer and usageMetadata for usage. Validate structured responses in your application instead of treating generated text as trusted data.

Model strengths & selection

Interactive reasoning with multimodal context

Gemini 3 Flash Preview is a text-output reasoning model with multimodal understanding and tool-related capabilities documented by Google. It is not an image generator despite the visual inputs in the model family.

Source review ·

Model-specific sources: Google · gemini-3-flash-preview

When to compare this model

Compare it for interactive technical assistance and short feedback loops. Keep the preview ID distinct from the stable Gemini 3.5 Flash entry and measure both using your actual task set.

Know the limits

Preview behavior and availability can change. Tool declarations do not grant permission to execute actions, and this page does not claim all Google tools are exposed by MaxAPI.

Provider capabilities describe the model, not the complete MaxAPI feature set. Use the parameters, input types and routes documented for this MaxAPI entry. Vendor speed or quality descriptions are not service-level guarantees.

How MaxAPI handles this request

Which route wins?

Routing priority is: the API key's configured route_modes list → an explicitly requested route → the model's default route. A non-empty key list takes precedence over route_mode in the request. To test a specific route, check the key configuration first; changing the request alone may not change the route used.

A key cannot grant account permissions

The a, x and pro routes require the corresponding account permission. Listing one on an API key does not grant that permission. An unauthorized gated-route selection returns 403 rather than silently switching to a different pricing tier.

RPM is shared at account level

An account's positive RPM limit covers its API keys together. A key can impose a stricter limit, but a higher key limit does not override the user limit. For example, a user limit of 200 RPM is not 200 RPM for each key. Service-level RPM and concurrency controls also apply; adding keys is not a way to bypass them.

Routes & pricing

Published routes: official-cheap. Specify route_mode in an image/video JSON request; Gemini-native requests use X-MaxAPI-Route-Mode. Restricted routes must be enabled for both the account and API key. A route is an access and billing choice, not a different public model ID.

RoutePublished base priceBilling unit
official-cheap$0.2059input · per 1M tokens
official-cheap$1.2353output · per 1M tokens
official-cheap$0.4118audio_input · per 1M tokens
official-cheap$0.0206cache_read · per 1M tokens

1 credit = US$1. These are catalogue base rates, not a live account quote. Account multipliers and the active billing configuration determine the final charge. Token rates are not a fixed price per image.

Check current pricing

Your first request

Create a MaxAPI API key and set MAXAPI_KEY in your server environment. Keep it out of browser code. The example uses your key's routing configuration unless you explicitly select a route.

  • POST /v1beta/models/gemini-3-flash-preview:generateContent
curl
curl -X POST "https://api.maxapi.dev/v1beta/models/gemini-3-flash-preview:generateContent" \
  -H "Authorization: Bearer $MAXAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      { "role": "user", "parts": [ { "text": "Explain how transformers work in one paragraph." } ] }
    ]
  }'
Full API documentation

Troubleshoot by symptom, not just HTTP status

403

a_route_not_enabled / x_route_not_enabled / pro_route_not_enabled

What it tells you
The selected restricted route is not enabled for the account. It is an access issue, not evidence that the model is offline.
What to do next
Check both the account permission and the API key's route list. Select a route you are entitled to use or request access; do not solve a 403 by increasing retries.
429

rate_limit_exceeded / capacity_exhausted

What it tells you
429 can represent account/key RPM, service-wide capacity or generation capacity. Use Retry-After and available X-RateLimit-* / X-Global-* headers to distinguish them; one status code does not identify one unique cause.
What to do next
Respect Retry-After when present, reduce request rate or active concurrency as appropriate, and use bounded backoff. Do not treat the site's total capacity as your account's personal quota.

What you can build

The use cases and prompts below are our suggested evaluation briefs, not provider benchmarks or tested output samples.

Interactive debugging

Give one error and enough surrounding code; ask for the next discriminating check, not a speculative rewrite.

Visual issue explanation

If your route accepts image input, compare its interpretation against the actual screenshot and explicit UI facts.

Short plan-and-check loops

Have the model propose one next step, validate it in the application, then supply the observed result.

Technician using a meter to inspect an electronic device on a blue work mat
Concept illustrationInteractive diagnosis concept: choose the next safe check from the available evidence.

AI-created concept illustrations · not outputs or benchmarks from this model. Prompts below are starting points, not recipes that reproduce these images.

Creative practice · shared production advice

Design the answer your application actually needs

Before calling Gemini 3 Flash Preview, define what a useful response looks like in your product. A support assistant needs an answer grounded in supplied context; an extraction job needs a stable set of fields; a drafting tool needs text that preserves the facts while changing tone. These are different tasks, so give each its own instructions, examples and acceptance rules rather than using one generic prompt everywhere.

Treat model output as a draft or prediction, not a permission to act. Parse structured text, reject unexpected fields and distinguish absent facts from inferred ones. If a response can trigger a message, database write or transaction, let your application validate the proposed action separately. Keep representative examples of both correct answers and difficult failures to measure improvements when prompts or models change.

Disconnected router, cable and multimeter on a blue work mat
Concept illustrationStart diagnosis with observable evidence and safe, reversible checks.

Prompt examples worth adapting

A good prompt is a small creative brief. Replace the subject and constraints with your actual requirements; keep size, route and quality in the API parameters rather than relying on prose alone.

01 / Find the next debugging check

Example prompt
Given the error, code and observed behavior below, propose exactly one low-risk diagnostic check that best distinguishes the two most plausible causes. Return hypotheses, next_check and expected_observations. Explain briefly using supplied evidence. Do not claim to have run the check or modify code. Context: [insert].

What to review · Check that the proposed diagnostic is grounded, safe and actually distinguishes the hypotheses.

Technician inspects an unplugged network connector over a blue mat.
Concept illustrationConcept for the next bounded diagnostic check.

From a good answer to a reliable feature

  1. Define the acceptance criteria

    Choose representative inputs and describe what makes the output usable. Include difficult cases, not only ideal examples. Fix the request parameters while comparing results.

  2. Keep execution separate from presentation

    Store request identifiers and preserve the response before transforming it for your interface. Validate errors and incomplete results explicitly. A user-interface timeout should not silently trigger duplicate work.

  3. Measure usable output, not just successful calls

    Log the model, route, input characteristics, actual usage and review outcome. Include manual correction and repeated attempts when estimating the cost of delivering a usable result.

Technician closes an inspection notebook beside a disconnected device.
Concept illustrationRecord observations before deciding on the next action.

From a test to production

  1. Test the route you will actually use

    Keep model, route and parameters fixed during your first comparison. Test your own typical inputs as well as large or unusual files. Published model capabilities do not guarantee that every upstream channel accepts every edge case.

  2. Separate limits from generation errors

    On 429, reduce request rate or concurrency and back off before retrying. On invalid-input errors, fix the input first. Preserve request and task IDs for troubleshooting; do not log API keys or sensitive reference files in public logs.

  3. Track usable results and actual spend

    Use your account's usage and billing records to verify the final result and charge. A successful HTTP response can be a task receipt rather than the final output. For published work, check generated text, visual details and rights to supplied reference material.

Verified integration cases

Checked against MaxAPI's public catalogue, gateway implementation and local regression cases. Shared gateway checks are not separate end-to-end tests of every listed model. This is an integration reference, not a live upstream availability or performance report.

Multiple keys share the user limit

Local regression · passed
Test setup
Use two keys owned by the same account against an in-memory limiter with a small user quota.
Observed result
Requests across the keys consume the same user quota; subsequent requests are limited. A larger key quota does not override the user quota, and a smaller key quota remains effective.

Frequently asked questions

When should I choose this model?

Compare it for interactive technical assistance and short feedback loops. Keep the preview ID distinct from the stable Gemini 3.5 Flash entry and measure both using your actual task set.

What limitations are specific to this entry?

Preview behavior and availability can change. Tool declarations do not grant permission to execute actions, and this page does not claim all Google tools are exposed by MaxAPI.

Why does changing route_mode not change my route?

Routing priority is: the API key's configured route_modes list → an explicitly requested route → the model's default route. A non-empty key list takes precedence over route_mode in the request. To test a specific route, check the key configuration first; changing the request alone may not change the route used.

Does each API key get the user's full RPM limit?

An account's positive RPM limit covers its API keys together. A key can impose a stricter limit, but a higher key limit does not override the user limit. For example, a user limit of 200 RPM is not 200 RPM for each key. Service-level RPM and concurrency controls also apply; adding keys is not a way to bypass them.

Do these local regression cases prove live model performance?

Local tests use simulated requests, responses and test storage; they do not call paid model channels. They verify request handling, not model image quality, live success rates, latency or end-to-end support for the maximum reference count. The concept illustrations elsewhere on this page are not these test outputs.

Which model ID should I send for Gemini 3 Flash Preview?

Use google/gemini-3-flash-preview. Use the exact endpoint format in the example; the Gemini-native URL uses the short model name.

Does a listed price apply to every account and route?

1 credit = US$1. These are catalogue base rates, not a live account quote. Account multipliers and the active billing configuration determine the final charge. Token rates are not a fixed price per image.

Are failed requests charged?

MaxAPI's published rule is that failed requests are not charged. A request may temporarily reserve balance while it runs; check the final task outcome and billing records rather than treating a temporary balance change as the final charge.

Why is a route unavailable for my API key?

Route availability depends on the model, account permission and the API key's allowed routes. A published price is not an access grant. Check the account and key configuration before changing route_mode.

What should I check before processing the result?

Use contents with role and parts in the Gemini-native request. Read candidates for the answer and usageMetadata for usage. Validate structured responses in your application instead of treating generated text as trusted data.

Should I immediately retry a failed or timed-out request?

First identify whether the response is a rate limit, invalid input or a still-running task. If you already have a task ID, query its status before submitting another generation. Apply bounded retries with backoff only to retryable errors.