Skip to main content
Every request to KiosAPI requires an API key passed in the HTTP headers. The header format you use depends on which endpoint you’re calling — OpenAI-compatible endpoints, Claude native, and Gemini native each follow their own convention.

API Key

Your KiosAPI API key follows this format:
Treat your key as a secret. Never expose it in client-side code, commit it to version control, or write it to logs. Load it at runtime using environment variables or a secrets manager.

OpenAI Format (Bearer Header)

Use this header when calling the OpenAI-compatible endpoints (/v1/chat/completions or /v1/responses):
This is the most common format. OpenAI SDK libraries send this header automatically when you set api_key on the client — you don’t need to add it manually.

Claude Native Format (x-api-key + anthropic-version)

Use these headers when calling the Claude native endpoint (/v1/messages):
The anthropic-version header is mandatory for the Claude native endpoint. Omitting it returns a 400 Bad Request error.

Gemini Native Format (x-goog-api-key)

Use this header when calling the Gemini native endpoint (/v1beta/models/{model}:generateContent):

Getting Your API Key

1

Log into kiosapi.com

Go to kiosapi.com and sign in to your account.
2

Navigate to Dashboard > Token Management

Open the Dashboard and select Token Management from the menu.
3

Create or copy your token

Create a new token or copy an existing one to use in your requests.
Your API key carries full access to your KiosAPI account. Never share it publicly, commit it to version control, or embed it in client-side applications. Use environment variables or a secrets manager to load it at runtime.
KiosAPI keys are not interchangeable with keys from OpenAI, Anthropic, or Google. Always use a KiosAPI key (sk-kilo-...) with kiosapi.com, and never send it to api.openai.com, api.anthropic.com, or googleapis.com — it will be rejected. Likewise, third-party provider keys will not work with kiosapi.com. Mixing up base URLs and keys is the most common cause of 401 Unauthorized errors.