Skip to main content
Gemini 3.8 Flash is Google’s generally available Flash model for long-horizon software engineering, autonomous agents, and complex multimodal workflows. Use the stable model ID gemini-3.8-flash with POST /v1beta/models/gemini-3.8-flash:generateContent.

Model specifications

Choose a workflow

Send text in contents[].parts[].text. Use generationConfig.thinkingConfig.thinkingLevel to trade latency for reasoning depth.The final conversation turn must be a non-empty user turn. Do not prefill a response by ending the request with a model turn.

Request examples

cURL

Generation controls

Conversation and response handling

  • Use user and model roles for conversation history.
  • Preserve complete model turns and every thoughtSignature in multi-step function workflows.
  • Check candidates[].finishReason before consuming the output.
  • Read token counts from usageMetadata, including thoughtsTokenCount for reasoning usage.
  • Search and Maps responses can include groundingMetadata with queries, sources, and supporting segments.
  • Code execution can return executableCode and codeExecutionResult parts.

API Reference

View request fields, capability examples, and response schemas for Gemini 3.8 Flash.

Official references