-
URL:
/v1/chat/completions -
Method:
POST -
Headers:
-
Request:
modelstringOptional Default: Agent’s Configured Model Allowed values:google/gemini-2.5-flash
messagesarray(min length: 1) Required
temperature
numberOptional Range: 0 to 2 Default: 1max_tokens
integerOptional Minimum: 1top_p
numberOptional Range: 0 to 1n
integerOptional Minimum: 1seed
numberOptional Range: 0 to 2^53-1stream
booleanOptionalstop
stringorarray[string]Optionalpresence_penalty
numberOptional Range: -2.0 to 2.0frequency_penalty
numberOptional Range: -2.0 to 2.0logit_bias
objectOptional Key format: Token IDs as string numbers Value range: -100 to 100logprobs
booleanOptionaltop_logprobs
numberOptionaluser
response_formatstringOptionalobjectOptional Specifies the format of the model’s output. Use this to request structured responses.
toolsarrayOptional
A list of tools the model may call
tool_choicestringorobjectOptional
Controls which tool is called
Allowed string values:"none","auto"
Or specify a tool with:
- Sample Request
- Type: Text
- Type: Image (in URL)
- Type: Image (in Base64)
- Type: Docs (PDF)
- Type: Docs
- Supported File Types: -
json,xlsx,xlsm,csv,md,pptx,docx,txt
- Type: JSON Schema Response
- Response:
- Without Tools
- With Tools
- With JSON Schema
- Error
