Gemini 3.6 Flash API
Use model: "gemini-3.6-flash" to call Gemini 3.6 Flash. The examples below send a synchronous request using OpenAI Chat Completions.
These are integration examples, not recorded model outputs. Keep the key in your server environment as BEATAPI_API_KEY; replace <BEATAPI_API_KEY> in the cURL example with your own key. Do not put the key in browser code.
Send a request
POST https://api.beatapi.io/v1/chat/completions
Install openai in your server project.
max_tokens: 2048 is the budget for thinking and the visible answer in this request, not a maximum model limit. Inspect actual completion usage and handle a truncated answer instead of treating an HTTP 200 as acceptance.
cURL
Read and validate the result
Read the answer from choices[0].message.content, then inspect the actual finish_reason and usage. The example accepts stop; a truncated answer or a tool request needs separate application handling. Validate the returned label against your allowed labels before using it to route a ticket.
An HTTP 200 alone does not prove that the answer satisfies your task. Validate the content in your application. These text requests return directly; do not poll /v1/tasks for them.
Check GET /v1/models for the model IDs available to your account. This minimal example does not claim support for additional reasoning, sampling, cache-control or hosted-tool settings.

