content array of your messages. You can use the same OpenAI SDK and endpoint you use for other models; no additional configuration is required to switch to Gemini.
Supported File Types
Request
POSThttps://kiosapi.com/v1/chat/completions
Headers
Request Body
string
required
Gemini model name (e.g.
gemini-2.5-pro).array
required
Array of message objects forming the conversation.
number
Maximum number of tokens to generate in the response.
number
Sampling temperature.
boolean
Set to
true to stream the response using server-sent events.array
Function calling tools, or the special
googleSearch tool for web search.string
Thinking level for reasoning models. One of
high, medium, or low.object
Advanced configuration, including
thinking_config for fine-grained control over the thinking budget.object
Structured output configuration.
Content Types for File Analysis
When passingcontent as an array, each element uses one of the following types:
Dynamic Thinking Models
When a model name ends withthinking-* (e.g. gemini-2.5-flash-thinking-2000), it supports dynamic thinking token limits. The number after thinking- sets the maximum number of tokens the model may use for internal reasoning.
Web Search
You can enable web search in two ways:- Add the
-searchsuffix to the model name (e.g.gemini-2.5-flash-search). - Include the
googleSearchtool in your request body:
Examples
- cURL (Chat)
- cURL (File Analysis)
- Python (Web Search)
- Python (Thinking Budget)