Gemini 3.8 Flash is a documented text-output model for multimodal and tool-using applications. Its unit prices alone do not describe its task cost. Google says it can spend more tokens on long, complex work as it reasons, uses tools and checks results. That is conditional provider guidance, not evidence that every prompt produces more tokens or a measured improvement on your workload.
The API contract comes before the quality claim
Google records the release on September 2, 2026 and documents the stable API name gemini-3.8-flash. The separate limits are 1,048,576 tokens of input and 65,536 tokens of output. A large input allowance does not raise the output limit or establish retrieval accuracy across a long document.
| Surface | What the current model card supports |
|---|---|
| Input and output | Text, image, video, audio and PDF input; text output. Image and audio generation and the Live API are not supported for this model. |
| Tools and retrieval | Function calling, code execution, file search, Search and Maps grounding, and URL context. The application remains responsible for permissions, validating arguments and handling failures. |
| Structured output | Supported. Schema validity and correctness of extracted facts remain separate acceptance checks. |
| Computer use | Preview support. A documented feature is not evidence that a specific browser or desktop workflow succeeded. |
| Thinking | Low, medium and high, with medium as the documented default. Minimal is unsupported and returns an error. |
Configure the actual API surface
The current guide uses Google's Interactions API. The Python example below sends the documented REST shape using the standard library. It reads a securely configured GEMINI_API_KEY environment variable, caps output, requests stateless behavior and uses a 30-second socket timeout. Local checks cover syntax and the constructed request; it was not executed against Google and no returned response is claimed.
"""Documented REST request; checked locally, not executed against Google."""
import json
import os
from urllib.request import Request, urlopen
def build_request(api_key, prompt):
payload = {
"model": "gemini-3.8-flash",
"input": prompt,
"store": False,
"generation_config": {
"thinking_level": "medium",
"max_output_tokens": 4096,
},
}
return Request(
"https://generativelanguage.googleapis.com/v1beta/interactions",
data=json.dumps(payload).encode("utf-8"),
headers={"Content-Type": "application/json", "x-goog-api-key": api_key},
method="POST",
)
def main():
request = build_request(
os.environ["GEMINI_API_KEY"],
"Explain why retries need an idempotency key in three sentences.",
)
with urlopen(request, timeout=30) as response:
result = json.load(response)
print(json.dumps(result, indent=2))
if __name__ == "__main__":
main()
The example prints the actual JSON response rather than assuming every outcome is a successful text answer. Inspect its completion state, usage and returned steps before accepting a result. It declares no tools and performs no automatic retries. A socket timeout limits waiting on network operations; a production service also needs an overall deadline and a policy for incomplete results. Setting store=false disables the optional stored-interaction path, not every provider data-retention obligation.
For multi-turn interactions, the migration guide recommends server-side previous_interaction_id. Preserve provider thought signatures and tool-call identity. If retaining GenerateContent instead, follow its specific function-response contract, including the documented call_id and name. Do not copy those fields into an Interactions payload without its own schema.
The stateless example cannot later be continued through a stored interaction ID. For a stateful workflow, follow the provider's storage and retention contract. A previous interaction preserves conversation history; tools, system instructions and generation settings remain scoped to each request and must be specified again. The Interactions overview also distinguishes model capabilities from features still confined to GenerateContent, including Batch and explicit caching.
Replace older thinking_budget configuration with the documented thinking level. Remove deprecated temperature, top_p and top_k, unsupported candidate_count, and prefilled model turns. Google's 3.6 guide distinguishes ignored sampling fields from future-generation rejection, while a last nonempty model turn already triggers a separate validation error. Troubleshooting should identify the rejected field and model rather than asserting that every old parameter always returns the same error.
Price usage, not the model's description
Current recorded global Standard prices per million tokens are $0.75 input and $3.75 output including thinking. Eligible Standard cache reads cost $0.075; explicit cache storage and paid tools are separate. Batch, Flex and Priority have their own pricing and service behavior.
The Standard schedule from January 1, 2027 is $1.50 input and $7.50 output per million. Future estimates apply the recorded schedule to stated usage; they do not guarantee future terms or availability.
For a hypothetical paid Standard request using 50,000 uncached input and 10,000 total billed output tokens, the October 15 token subtotal is $0.075. Holding input fixed and increasing total output to 15,000 makes it $0.09375. These are engine-derived sensitivity cases, not observed token growth. Reasoning already included in output must not be charged twice.
Historical comparisons need current routing context
The launch announcement described 3.7 as an efficiency alternative. Google's current 3.7 card now says its old identifier automatically routes to 3.8, and the current 3.8 guide points to supported 3.6 instead. A new call to 3.7 cannot reproduce an independent old-model control. Keep saved 3.7 runs historical and use explicitly documented current identities for a new evaluation.
The launch's HLE-Verified result and claims about software, finance and legal evaluations are provider evidence under their own conditions. They do not supply a measured error rate for your documents or repository. The restricted Cyber variant described in the announcement has a different access context; its security evaluation is not a benchmark of this general API model and must not be copied into its score columns.
Approve behavior with a bounded comparison
Hold evidence, tool permissions, retry policy and acceptance criteria constant. Compare thinking levels on a held-out set containing genuinely difficult cases and ordinary ones. Count all model calls, tool queries, paid thinking and human repairs. Review whether extra verification actually catches errors or merely creates another loop. Keep invalid outputs and interrupted runs in the results.
Use Labs for supplied-output comparison, the calculator for supported billing assumptions, and the 3.6 reference for a documented alternative. No provider execution, latency measurement or independent benchmark replication was performed for this article.