POSTTry it

API health

24h health
100%
24h average time
9.21 s
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Healthy

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

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
modelbodystringNogemini-3.6-flashModel name. Without it the default model gemini-3.6-flash is used; GET /api/v1/models lists the models and needs no key.
messagesbodyarrayYes-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.
streambodybooleanNofalseWhen true, the reply arrives as SSE and ends with data: [DONE]. Default false.
stream_optionsbodyobjectNo-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

#
bash
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

#
Example structure, not a live call: choices[0].message.content is the model's reply and usage is the token count. The format is the same as OpenAI's.
json
{  "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.

Errors

Our own visit stats are always on. Google Analytics loads only if you choose “Allow analytics”. Privacy policy