Gemini 3.5 Flash
gemini-3.5-flashUse the Gemini 3.5 Flash API for chat completions. Send conversation messages and add tools on routes that support tool calling. Build an assistant that can answer questions and coordinate application actions. Compare the available provider routes, request examples, and usage prices on OpenAny.
Auto route pricing
Route source: Tencent-Intl
- Input / Output
- Input: $1.350Output: $8.100
- Cache read / write
- Cache read: $0.150Cache write: Price not supplied
- Context / Max output
- 1000K / 65K
- Live routes
- 1
Rates / 1M tokens
Image output: Price not supplied
These are separate usage rates, not a total request price.
On this page
Overview
Use the Gemini 3.5 Flash API for chat completions. Send conversation messages and add tools on routes that support tool calling. Build an assistant that can answer questions and coordinate application actions. Compare the available provider routes, request examples, and usage prices on OpenAny.
Playground
Other parameters (13)
Result preview
Tencent-Intl · 649ms
Response example. Run to see the actual response.
{
"id": "gen-1784710177-qHFudUaHjQeWBzG0JOgZ",
"cost": {
"usd": 0,
"diem": 0.0019576999999999997
},
"model": "gemini-3-5-flash",
"usage": {
"total_tokens": 208,
"prompt_tokens": 1,
"completion_tokens": 207,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"audio_tokens": 0,
"image_tokens": 0,
"reasoning_tokens": 198
}
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?",
"refusal": null,
"reasoning_content": "**Responding to Greetings**\n\nHello there! I'm ready to assist. What can I help you with today?\n\n",
"reasoning_details": [
{
"text": "**Responding to Greetings**\n\nHello there! I'm ready to assist. What can I help you with today?\n\n",
"type": "reasoning.text",
"index": 0,
"format": "google-gemini-v1"
}
]
},
"logprobs": null,
"finish_reason": "stop",
"native_finish_reason": "STOP"
}
],
"created": 1784710177,
"service_tier": "default",
"openmodels_cost": 606,
"venice_parameters": {
"enable_e2ee": true,
"enable_x_search": false,
"disable_thinking": false,
"enable_web_search": "off",
"enable_web_scraping": false,
"enable_web_citations": false,
"web_search_citations": [],
"strip_thinking_response": false,
"include_venice_system_prompt": false,
"include_search_results_in_stream": false,
"return_search_results_as_documents": false
},
"usage_from_consumer": {
"total_tokens": 38,
"prompt_tokens": 5,
"completion_tokens": 33
}
}Agent handoff preview
Providers
| Provider | Pricing | Latency | Uptime | Supply | Route |
|---|---|---|---|---|---|
Live | Input $1.350 / 1M tokens Output $8.100 Cache read $0.150 Cache write — | 649ms | — | Verified |
- Input
- $1.350
- Output
- $8.100
- Cache read
- $0.150
Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.
API
- Base URL
https://api.openany.si/v1- POST
/v1/chat/completions- Authentication
Authorization: Bearer $OPENANY_API_KEY
Request parameters
| Parameter | Type / range | Default value | Required | Description |
|---|---|---|---|---|
messages | array | — | Yes | The conversation messages |
model | string | — | Yes | The model to use |
frequency_penalty | number · -2 ~ 2 | 0 | No | Penalty for repeated tokens |
max_completion_tokens | integer · >= 1 | — | No | Maximum visible completion tokens |
max_tokens | integer · >= 1 | — | No | Maximum completion tokens |
n | integer · 1 ~ 128 | 1 | No | Number of choices to generate |
presence_penalty | number · -2 ~ 2 | 0 | No | Penalty for previously used tokens |
response_format | object | — | No | Format constraint for the response |
route | object | — | No | OpenAny route configuration, including provider and other routing parameters |
route_mode | string | — | No | The mode for routing the request |
seed | integer | — | No | Seed for deterministic sampling |
stop | string | array | — | No | Sequences that stop generation |
stream | boolean | false | No | Whether to stream the response |
temperature | number · 0 ~ 2 | 1 | No | Sampling temperature |
tool_choice | string | object | — | No | Tool selection policy: string modes none, auto, or required, or an object selecting a specific tool |
tools | array | — | No | Tools available to the model |
top_p | number · 0 ~ 1 | 1 | No | Nucleus sampling probability |
Request example
curl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"content": "Hello!",
"role": "user"
}
],
"model": "gemini-3.5-flash",
"route_mode": "balanced",
"frequency_penalty": 0,
"n": 1,
"presence_penalty": 0,
"stream": false,
"temperature": 1,
"top_p": 1
}'Response example
Configured response example · not a live result
{
"id": "gen-1784710177-qHFudUaHjQeWBzG0JOgZ",
"cost": {
"usd": 0,
"diem": 0.0019576999999999997
},
"model": "gemini-3-5-flash",
"usage": {
"total_tokens": 208,
"prompt_tokens": 1,
"completion_tokens": 207,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"audio_tokens": 0,
"image_tokens": 0,
"reasoning_tokens": 198
}
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?",
"refusal": null,
"reasoning_content": "**Responding to Greetings**\n\nHello there! I'm ready to assist. What can I help you with today?\n\n",
"reasoning_details": [
{
"text": "**Responding to Greetings**\n\nHello there! I'm ready to assist. What can I help you with today?\n\n",
"type": "reasoning.text",
"index": 0,
"format": "google-gemini-v1"
}
]
},
"logprobs": null,
"finish_reason": "stop",
"native_finish_reason": "STOP"
}
],
"created": 1784710177,
"service_tier": "default",
"openmodels_cost": 606,
"venice_parameters": {
"enable_e2ee": true,
"enable_x_search": false,
"disable_thinking": false,
"enable_web_search": "off",
"enable_web_scraping": false,
"enable_web_citations": false,
"web_search_citations": [],
"strip_thinking_response": false,
"include_venice_system_prompt": false,
"include_search_results_in_stream": false,
"return_search_results_as_documents": false
},
"usage_from_consumer": {
"total_tokens": 38,
"prompt_tokens": 5,
"completion_tokens": 33
}
}Error handling
400Check the model ID and request fields.429Retry with exponential backoff.5xxRetry only temporary provider failures.JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"model",
"messages"
],
"properties": {
"n": {
"type": "integer",
"default": 1,
"maximum": 128,
"minimum": 1,
"description": "Number of choices to generate"
},
"seed": {
"type": "integer",
"description": "Seed for deterministic sampling"
},
"stop": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"description": "Sequences that stop generation"
},
"model": {
"type": "string",
"description": "The model to use"
},
"route": {
"type": "object",
"description": "OpenAny route configuration, including provider and other routing parameters"
},
"tools": {
"type": "array",
"items": {
"type": "object"
},
"description": "Tools available to the model"
},
"top_p": {
"type": "number",
"default": 1,
"maximum": 1,
"minimum": 0,
"description": "Nucleus sampling probability"
},
"stream": {
"type": "boolean",
"default": false,
"description": "Whether to stream the response"
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "The conversation messages"
},
"max_tokens": {
"type": "integer",
"minimum": 1,
"description": "Maximum completion tokens"
},
"route_mode": {
"type": "string",
"description": "The mode for routing the request"
},
"temperature": {
"type": "number",
"default": 1,
"maximum": 2,
"minimum": 0,
"description": "Sampling temperature"
},
"tool_choice": {
"anyOf": [
{
"enum": [
"none",
"auto",
"required"
],
"type": "string"
},
{
"type": "object"
}
],
"description": "Tool selection policy: string modes none, auto, or required, or an object selecting a specific tool"
},
"response_format": {
"type": "object",
"description": "Format constraint for the response"
},
"presence_penalty": {
"type": "number",
"default": 0,
"maximum": 2,
"minimum": -2,
"description": "Penalty for previously used tokens"
},
"frequency_penalty": {
"type": "number",
"default": 0,
"maximum": 2,
"minimum": -2,
"description": "Penalty for repeated tokens"
},
"max_completion_tokens": {
"type": "integer",
"minimum": 1,
"description": "Maximum visible completion tokens"
}
}
}Examples
Request example
POST /v1/chat/completionscurl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"content": "Hello!",
"role": "user"
}
],
"model": "gemini-3.5-flash",
"route_mode": "balanced",
"frequency_penalty": 0,
"n": 1,
"presence_penalty": 0,
"stream": false,
"temperature": 1,
"top_p": 1
}'