gemini-3.6-flash Chat API
API health
- 24h health
- 100%
- 24h average time
- 9.21 s
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
gemini-3.6-flash is the default model of the EveryInfra AI API: requests without a model field use it. The API is compatible with OpenAI Chat Completions, so an existing OpenAI SDK only needs a new base_url and api_key. For a lighter model, use gemini-flash-lite.
Free for accounts that have topped up any amount; calls are not billed. Accounts that have never topped up cannot call it.
Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
model | body | string | No | gemini-3.6-flash | Model name. Without it the default model gemini-3.6-flash is used; GET /api/v1/models lists the models and needs no key. |
messages | body | array | Yes | - | Conversation messages in OpenAI format (role + content). All messages together may hold up to 45,000 characters; longer input returns 422, so split it into several requests. |
stream | body | boolean | No | false | When true, the reply arrives as SSE and ends with data: [DONE]. Default false. |
stream_options | body | object | No | - | Streaming options in OpenAI format; with include_usage set to true the last chunk carries token usage. |
Other OpenAI Chat Completions parameters (temperature, max_tokens, response_format and so on) are passed to the model unchanged.
Code samples
#curl https://api.everyinfra.com/api/v1/chat/completions \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.6-flash",
"messages": [
{
"role": "user",
"content": "Summarize this review in one sentence: ..."
}
]
}'Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "chatcmpl-…", "object": "chat.completion", "created": …, "model": "gemini-3.6-flash", "choices": [ { "index": …, "message": { "role": "assistant", "content": "…" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": …, "completion_tokens": …, "total_tokens": … }}
Rate limits
#Tiers follow the account's total top-ups (credit codes and bonus credit over $1 each count like top-ups; trial credit and amounts of $1 or less do not), across all keys of the account. These are limits, not promised throughput.
- Topped up any amount: 50 requests per minute, up to 5 in flight
- Topped up $100+: 500 requests per minute, up to 50 in flight
- Topped up $500+: 5,000 requests per minute, up to 500 in flight
Errors and billing
#- 401 unauthorized
- The key is missing or invalid.
- 403 ai_topup_required
- The account has never topped up. Top up any amount to start.
- 422 unknown_model / missing_param / input_too_large
- Wrong model name (the error suggests the closest one), messages missing, or input too long. Fix the request and send it again.
- 429 rate_limited
- Over this tier's requests per minute. Wait for Retry-After and try again.
- 503
- The model is temporarily unavailable. Try again later.