gemini-1.5-flash
Model Overview
How to Make a Call
API Schema
Creates a chat completion using a language model, allowing interactive conversation by predicting the next response based on the given chat history. This is useful for AI-driven dialogue systems and virtual assistants.
Authorizations
AuthorizationstringRequired
Bearer key
Body
modelundefined · enumRequiredPossible values:
frequency_penaltynumber · min: -2 · max: 2 · nullableOptional
max_tokensnumber · min: 1OptionalDefault:
512presence_penaltynumber · min: -2 · max: 2 · nullableOptional
streambooleanOptionalDefault:
falsetop_pnumber · min: 0.1 · max: 1Optional
temperaturenumber · max: 2Optional
stopany ofOptional
stringOptional
string[]Optional
any · nullableOptional
tool_choiceany ofOptional
string · enumOptionalPossible values:
Responses
201Success
post
/v1/chat/completions201Success
No content
Code Example (Python)
Last updated