# KiosAPI ## Docs - [KiosAPI — OpenAI-Compatible Multi-Model AI Gateway](https://kiosapi.mintlify.app/introduction.md): KiosAPI is a unified gateway giving you OpenAI-compatible access to GPT, Claude, Gemini, and more through a single endpoint and a single API key. - [KiosAPI Authentication — API Key and Header Formats](https://kiosapi.mintlify.app/authentication.md): Pass your KiosAPI API key in the correct HTTP header for OpenAI-compatible, Claude native, and Gemini native endpoints — with curl examples. - [KiosAPI API Base URL: Configure Your SDK Endpoints](https://kiosapi.mintlify.app/api-base-url.md): The KiosAPI base URL is https://kiosapi.com/v1/. Learn how to configure it in the OpenAI Python SDK, OpenAI Node.js SDK, and Anthropic SDK. - [KiosAPI Quickstart: Make Your First API Request Now](https://kiosapi.mintlify.app/getting-started/quickstart.md): Send your first request to KiosAPI using the OpenAI SDK in Python or Node.js — set your base URL, add your key, and you're ready to go. - [Use the OpenAI Python and Node.js SDK with KiosAPI](https://kiosapi.mintlify.app/getting-started/openai-sdk.md): Learn to configure the OpenAI Python or Node.js SDK for KiosAPI — swap base URL and API key to access all chat models including Claude and Gemini. - [High-Concurrency Batch Requests with KiosAPI and asyncio](https://kiosapi.mintlify.app/getting-started/concurrency.md): Run thousands of concurrent KiosAPI requests for batch evaluation or dataset generation using Python asyncio and aiohttp for maximum throughput. - [Check Your KiosAPI API Token Spending Quota and Limits](https://kiosapi.mintlify.app/token-management/quota.md): Query the authorized spending limit for your KiosAPI API token via GET /v1/dashboard/billing/subscription, with soft and hard USD limits. - [Query Your KiosAPI Account Balance and Usage Information](https://kiosapi.mintlify.app/token-management/account.md): Retrieve your KiosAPI account details — including account ID, username, balance, and total usage — via GET /v1/dashboard/billing/account. - [List All Available Models on KiosAPI — GET /v1/models](https://kiosapi.mintlify.app/api-reference/models/list-models.md): GET /v1/models — lists all models available to your API key. Supports OpenAI Bearer, Anthropic x-api-key, and Google x-goog-api-key auth formats. - [Get a Single Model by ID — GET /v1/models/{model} API](https://kiosapi.mintlify.app/api-reference/models/list-single-model.md): GET /v1/models/{model} — retrieves details for a specific model by ID. Returns the model's id, object type, created timestamp, and owned_by provider. - [Chat Completions API — POST /v1/chat/completions Guide](https://kiosapi.mintlify.app/api-reference/chat/general.md): POST /v1/chat/completions — create chat completions for any model including GPT, Claude, and Gemini using the OpenAI-compatible request format. - [Vision Image Analysis via Chat Completions — KiosAPI](https://kiosapi.mintlify.app/api-reference/chat/vision.md): Send images to vision-capable models via POST /v1/chat/completions. Supports public image URLs, web links, and inline base64-encoded data URIs. - [Function Calling via Chat Completions Tools — KiosAPI](https://kiosapi.mintlify.app/api-reference/chat/function-calling.md): Pass a tools array to POST /v1/chat/completions to enable function calling. The model returns structured JSON arguments for your functions. - [Using OpenAI o1 and o3 Reasoning Models on KiosAPI](https://kiosapi.mintlify.app/api-reference/chat/o1-o3.md): Use o1-mini, o1-preview, o3, o3-mini via POST /v1/chat/completions. Note: streaming is not supported and only user role messages are accepted. - [gpt-4o-all: File Analysis, Vision, and Web Browsing](https://kiosapi.mintlify.app/api-reference/chat/gpt-4o-all.md): Use gpt-4o-all via POST /v1/chat/completions to analyse files, images, and web pages. Pass a public file URL in your message to trigger file analysis. - [gpt-4-all: File Analysis, Vision, and Web Browsing](https://kiosapi.mintlify.app/api-reference/chat/gpt-4-all.md): Use gpt-4-all via POST /v1/chat/completions to analyse files, images, and web pages. Pass a public file URL in your message to trigger file analysis. - [Legacy OpenAI-Compatible Text Completions Endpoint](https://kiosapi.mintlify.app/api-reference/chat/completions.md): POST /v1/completions provides the legacy OpenAI text completions format. For most use cases, prefer POST /v1/chat/completions instead. - [Claude via OpenAI Format — PDF Analysis and Thinking](https://kiosapi.mintlify.app/api-reference/chat/claude-openai.md): Use Claude models at POST /v1/chat/completions with any OpenAI-compatible SDK. Supports PDF analysis, extended thinking, image inputs, and streaming. - [Claude Native /v1/messages API — Caching and Thinking](https://kiosapi.mintlify.app/api-reference/chat/claude-native.md): Call Claude via POST /v1/messages using the Anthropic SDK and KiosAPI base URL. Supports prompt caching, PDF analysis, extended thinking, and streaming. - [Gemini via OpenAI Format — Files, Search, Thinking](https://kiosapi.mintlify.app/api-reference/chat/gemini-openai.md): Use Gemini models at POST /v1/chat/completions with the OpenAI SDK. Supports PDF, image, audio, video, web search grounding, and thinking budgets. - [Gemini Native /v1beta generateContent — Google Format](https://kiosapi.mintlify.app/api-reference/chat/gemini-native.md): Call Gemini via POST /v1beta/models/{model}:generateContent using x-goog-api-key. Supports generateContent and streamGenerateContent actions. - [Call OpenAI GPTs via API Using gpt-4-gizmo Model Names](https://kiosapi.mintlify.app/api-reference/chat/gpts.md): Call any public OpenAI GPT at POST /v1/chat/completions by using the gpt-4-gizmo-{id} model name. Find GPT IDs from their ChatGPT URLs. - [Create Vector Embeddings from Text — POST /v1/embeddings](https://kiosapi.mintlify.app/api-reference/embeddings/create.md): POST /v1/embeddings generates vector embeddings from text for semantic search, clustering, and recommendations. Supports up to 8192 tokens per input. - [Rerank Documents by Query Relevance — POST /v1/rerank](https://kiosapi.mintlify.app/api-reference/rerank/text-rerank.md): POST /v1/rerank reorders a list of documents by relevance to a query. Returns ranked results with relevance scores. Supports top_n filtering. - [Text Content Moderation API — POST /v1/moderations](https://kiosapi.mintlify.app/api-reference/moderation/text.md): POST /v1/moderations checks text for policy violations across 13 categories including violence, harassment, hate speech, and self-harm. - [Image Content Moderation API — POST /v1/moderations](https://kiosapi.mintlify.app/api-reference/moderation/image.md): POST /v1/moderations with model gi-image-moderation checks images for NSFW content across 5 categories including neutral, sexy, and explicit. - [Configure Claude Code CLI to Use KiosAPI as Backend](https://kiosapi.mintlify.app/tutorials/claude-code.md): Set up Anthropic's Claude Code CLI with KiosAPI as the API backend, routing your terminal coding sessions through KiosAPI's unified gateway. - [Configure OpenAI Codex CLI with the KiosAPI Gateway](https://kiosapi.mintlify.app/tutorials/codex.md): Configure OpenAI's Codex CLI coding agent to use KiosAPI as the backend, connecting it to KiosAPI's unified OpenAI-compatible API gateway. - [Configure Google Gemini CLI to Use KiosAPI Gateway](https://kiosapi.mintlify.app/tutorials/gemini-cli.md): Set up the Google Gemini CLI to use KiosAPI as the backend provider, routing Gemini model requests through KiosAPI's unified API gateway. - [Configure OpenClaw CLI to Use KiosAPI as a Provider](https://kiosapi.mintlify.app/tutorials/openclaw.md): Connect OpenClaw's open-source CLI coding agent to KiosAPI by setting the API base URL and key, enabling any OpenAI-compatible model through KiosAPI. - [Configure OpenCode AI Coding Agent with KiosAPI API](https://kiosapi.mintlify.app/tutorials/opencode.md): Set up the OpenCode terminal AI coding agent to use KiosAPI as its backend, connecting it to KiosAPI's OpenAI-compatible API gateway. - [Connect Trae AI Code Editor to the KiosAPI Gateway](https://kiosapi.mintlify.app/tutorials/trae.md): Configure ByteDance's Trae AI code editor to use KiosAPI as a custom provider, replacing the default backend with KiosAPI's OpenAI-compatible gateway. - [Use CC Switch to Configure KiosAPI for Claude Code](https://kiosapi.mintlify.app/tutorials/cc-switch.md): Use CC Switch to switch Claude Code to use KiosAPI as the API backend, making it easy to toggle between providers from the command line. ## Optional - [Dashboard](https://kiosapi.com) - [Pricing](https://kiosapi.com/pricing) - [GitHub](https://github.com/kiosapi)