Gemini 2.5 Flash

vtrix-gemini-2.5-flash

Google's workhorse model with hybrid reasoning. Excels at coding, math, science with configurable thinking depth. 1M context, native tool use, and multimodal capabilities at an affordable price point.

Authentication

authorization string required

All APIs require authentication via Bearer Token.

Get API Key:

Visit API Key Management Page to get your API Key

Usage:

Add to request header:

Authorization: Bearer YOUR_API_KEY

Parameters

model string required

Model ID to use for the request.

Value: vtrix-gemini-2.5-flash


messages array required

Array of message objects representing the conversation history.

role string required

Message role.

Options: user, assistant, system, developer

content string | array required

Text string or multimodal array.


max_tokens integer

Maximum tokens to generate in the completion.

Range: 1 - 65535


temperature number

Sampling temperature to use.

Default: 1.0

Range: 0.0 - 2.0


top_p number

Nucleus sampling parameter.

Default: 1.0

Range: 0.0 - 1.0


stream boolean

Whether to stream response incrementally.

Default: false

Error Codes

CodeNameDescription
401UnauthorizedAPI key is missing or invalid
403ForbiddenInsufficient balance or permission denied
429Too Many RequestsRate limit exceeded
500Internal Server ErrorAn internal server error occurred