APIKO
Text Series

Gemini

  • Gemini models, callable through the OpenAI-compatible Chat Completions API.
  • Gemini 4 Carbon API 가격에서 입력, 출력 및 캐시 입력 요금을 확인하세요.
  • Gemini 4 Neon API 가격에서 입력, 출력 및 캐시 입력 요금을 확인하세요.
  • Gemini 4 Neon의 네이티브 엔드포인트 POST /v1/models/gemini-4-neon:generateContent를 호출할 때 generationConfig.thinkingConfig.thinkingLevel에 low, medium, high(기본값), xhigh 중 하나를 지정하면 그대로 전달됩니다. Chat Completions에서는 extra_body.google.thinking_config.thinking_level로 수준을 요청할 수 있습니다. 네 단계가 모두 필요하면 네이티브 엔드포인트를 사용하세요.
  • Base URL https://api.apiko.app/v1. The model list below is what the catalog sells today; GET /v1/models returns the models your key can call.
POST
/
v1
/
chat
/
completions
curl https://api.apiko.app/v1/chat/completions \
  -H "Authorization: Bearer $APIKO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.8-flash",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
{
  "id": "chatcmpl_example",
  "object": "chat.completion",
  "model": "gemini-3.8-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello!"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 2,
    "total_tokens": 14
  }
}

Authorizations

Authorization
stringrequired
Send Authorization: Bearer <API_KEY>. Create keys in Console → API Keys.
Routes
string
  • POST /v1/chat/completions — OpenAI-compatible Chat Completions; JSON by default, SSE with "stream": true

Body

application/json
model
enum<string>required
Public model id. Use it exactly as listed.
Available options: gemini-3.1-pro-preview, gemini-3.5-flash, gemini-3.5-flash-lite, gemini-3.6-flash, gemini-3.7-flash, gemini-3.8-flash, gemini-4-argon, gemini-4-carbon, gemini-4-neon
Example:"gemini-3.8-flash"
messages
object[]required
Conversation messages in the Chat Completions format.
stream
booleandefault:false
Set to true for Server-Sent Events. On Chat Completions, add "stream_options": {"include_usage": true} to receive token usage in the final event.
other fields
object
Tools, response formats, temperature and reasoning controls follow the upstream API of the route you call.
For Gemini 4 Neon, use the thinking setting for your endpoint described above. For other Gemini models, Chat Completions accepts reasoning_effort (for example low); its effect depends on the model.
Do not rely on max_tokens or max_completion_tokens to cap thinking or cost on Gemini models: thinking tokens can be generated and billed beyond the limit, and a response can even finish normally past it. What was billed is in usage.completion_tokens.

Response

200 - application/json
JSON response
object
Chat Completions returns choices[0].message.content and usage.
model in the response may be a versioned upstream name rather than the id you sent; log and reconcile by the id you sent.
SSE response
text/event-stream
For Chat Completions streams, read events until data: [DONE] and append choices[0].delta.content from each event whose choices is non-empty. With include_usage, usage arrives in a separate final event after the one with finish_reason, and that event has an empty choices.