Headers
API key for authentication
Example:
"Bearer sk-..."
Body
application/json
Model identifier with optional character and scenario slugs
Example:
"c:kate>m:google/gemini-2.0-flash-001"
Example:
[
{
"role": "user",
"content": "Hello, how are you?"
}
]
Whether to stream the response
Example:
false
Sampling temperature
Example:
1
Maximum tokens to generate
Example:
1000
Response
Successful completion response