How should I choose between Flash-Lite and Gemini 2.5 Flash?
Flash-Lite is better suited for high-frequency classification and extraction tasks with clear rules. If the input contains complex exceptions or the answer requires stronger overall judgment, compare it with Flash; for complex analysis, then evaluate Pro. It is recommended to test accuracy, rework volume, and overall usage cost using the same samples.
Is gemini-2.5-flash-lite a preview version?
No, gemini-2.5-flash-lite is the stable version ID for Gemini 2.5 Flash-Lite, and it is also the model ID used by the two entry points on this page. gemini-2.5-flash-lite-preview-09-2025 is a different preview version that has been discontinued by the official provider and cannot be used interchangeably with the stable version. Existing integrations should retain the exact ID and retest prompts and outputs when changing models or versions.
How can I have Flash-Lite analyze images?
In /gemini/chat/completions, set the message content to an array of content blocks, including both text and image_url. Clearly state in the text whether you need descriptions, classifications, or which fields to extract; for standard responses, read message.content in choices, while for streaming responses, concatenate incremental content.
Can Flash-Lite read PDFs?
It natively supports PDF understanding. In AI Chat v2, you can use file_url to submit an accessible PDF link along with text describing the task. Chat Completions image-text content blocks differ from the file entry point, so PDF links should not be submitted directly as images; extraction results still need verification.
Can it output JSON and call functions?
Yes, it natively supports structured output and function calling. Chat Completions can specify the JSON format through response_format and define functions through tools. After receiving a tool call, the application needs to execute the corresponding logic and return the result; correct JSON formatting does not necessarily mean the field content is accurate.