# KONG API AI > KONG API AI is an AI gateway: one OpenAI-compatible and Anthropic-compatible API address, one key per person, app or customer, a monthly spending limit on every key, and a cost statement per key. Tokens can be bought through KONG API AI or served by AI accounts the customer already has. Notes for AI assistants: - Prices and the list of models change. Read the live table at https://kongapiai.com/en/docs/models.md before quoting a price or a model name; do not quote them from memory. - The base URL for API calls is https://kongapiai.com/v1. Keys start with gw_live_ or gw_test_. - Every page below has a Markdown version (the links end in .md). The Vietnamese pages are the same content at https://kongapiai.com/docs. - The whole documentation in one file: https://kongapiai.com/llms-full.txt # English ## Get started - [KONG API AI documentation](https://kongapiai.com/en/docs/index.md): KONG API AI is one gateway for every AI request: one API address, one key per person, one limit per key, and a cost statement per key each month. - [Quickstart](https://kongapiai.com/en/docs/quickstart.md): Three steps to call AI through KONG API AI: create an account, create a key, and send your first request with cURL, Python or Node.js. - [Set up your tool](https://kongapiai.com/en/docs/tools.md): How to put a KONG API AI key into Claude Code, Codex, Cursor and any tool that accepts an OpenAI-compatible API. Each tool needs two values. ## Using a key - [You were given a key](https://kongapiai.com/en/docs/got-a-key.md): An admin or your company gave you a KONG API AI key. No account needed: see what the key allows, put it into your tool, and what to do at the limit. - [Limits and routing](https://kongapiai.com/en/docs/limits.md): Monthly limits in USD for each key, member and customer; the three routing modes; and what happens when a limit is reached. ## Developers - [API](https://kongapiai.com/en/docs/api.md): The API addresses of KONG API AI, how to authenticate, its own headers (Idempotency-Key, X-Router-Session, X-GW-Customer) and how to look up a request. - [Usage per customer](https://kongapiai.com/en/docs/customers.md): If your app serves many customers, KONG API AI records usage per customer and lets you set a separate limit for each one. - [Errors](https://kongapiai.com/en/docs/errors.md): The error codes of the KONG API AI API: status, code, what it means and what to do in each case. ## Prices and plans - [Models and prices](https://kongapiai.com/en/docs/models.md): The models sold through KONG API AI and their price per 1 million tokens, read live from the system. With how charging works and the three model levels. - [Plans](https://kongapiai.com/en/docs/plans.md): The four software plans of KONG API AI and the limits of each: AI sources, members and keys. The plan fee is separate from token spend. ## Trust - [Data and security](https://kongapiai.com/en/docs/data-security.md): How KONG API AI stores API keys, AI source credentials and usage data, and how to delete them. - [Use a subscription](https://kongapiai.com/en/docs/subscriptions.md): How to connect a Claude or ChatGPT subscription to KONG API AI, the limits to know first, and your responsibility under the provider's terms. - [Frequently asked questions](https://kongapiai.com/en/docs/faq.md): Short answers to common questions about KONG API AI: keys, limits, token spend, subscriptions, data and compatibility. - [Support](https://kongapiai.com/en/docs/support.md): How to reach KONG API AI support on Zalo, Telegram, WhatsApp or by email, the working hours, and how soon a payment is confirmed. ## Models (live) - No models are published yet. # Tiếng Việt ## Bắt đầu - [Tài liệu KONG API AI](https://kongapiai.com/docs/index.md): KONG API AI là một cổng cho mọi yêu cầu AI: một địa chỉ API, mỗi người một khoá, mỗi khoá một hạn mức, cuối tháng có sao kê theo từng khoá. - [Bắt đầu nhanh](https://kongapiai.com/docs/quickstart.md): Ba bước để gọi AI qua KONG API AI: tạo tài khoản, tạo khoá, gửi yêu cầu đầu tiên bằng cURL, Python hoặc Node.js. - [Cài vào công cụ](https://kongapiai.com/docs/tools.md): Cách đặt khoá KONG API AI vào Claude Code, Codex, Cursor và mọi công cụ nhận API tương thích OpenAI. Mỗi công cụ chỉ cần hai giá trị. ## Dùng khoá - [Bạn được cấp khoá](https://kongapiai.com/docs/got-a-key.md): Bạn nhận một khoá KONG API AI từ quản trị viên hoặc công ty. Không cần tài khoản: xem khoá cho phép gì, cài vào công cụ, và làm gì khi hết hạn mức. - [Hạn mức và cách chọn nguồn](https://kongapiai.com/docs/limits.md): Hạn mức tháng tính bằng USD cho từng khoá, thành viên và khách hàng; ba chế độ chọn nguồn AI; và điều gì xảy ra khi một hạn mức chạm trần. ## Nhà phát triển - [API](https://kongapiai.com/docs/api.md): Các địa chỉ API của KONG API AI, cách xác thực, các header riêng (Idempotency-Key, X-Router-Session, X-GW-Customer) và cách tra cứu một yêu cầu. - [Tính mức dùng theo khách hàng](https://kongapiai.com/docs/customers.md): Nếu ứng dụng của bạn phục vụ nhiều khách hàng, KONG API AI ghi mức dùng theo từng khách hàng và cho đặt hạn mức riêng cho mỗi khách. - [Mã lỗi](https://kongapiai.com/docs/errors.md): Bảng mã lỗi của API KONG API AI: số trạng thái, mã lỗi, ý nghĩa và cách xử lý cho từng trường hợp. ## Giá và gói - [Model và giá](https://kongapiai.com/docs/models.md): Danh sách model đang bán qua KONG API AI và giá mỗi 1 triệu token, lấy trực tiếp từ hệ thống. Kèm cách tính tiền và ba mức model. - [Các gói](https://kongapiai.com/docs/plans.md): Bốn gói phần mềm của KONG API AI và giới hạn của từng gói: số nguồn AI, số thành viên và số khoá. Phí gói tách riêng với tiền token. ## Tin cậy - [Dữ liệu và bảo mật](https://kongapiai.com/docs/data-security.md): KONG API AI lưu khoá API, thông tin đăng nhập nguồn AI và dữ liệu mức dùng như thế nào, và cách xoá chúng. - [Dùng gói thuê bao](https://kongapiai.com/docs/subscriptions.md): Cách nối gói thuê bao Claude hoặc ChatGPT vào KONG API AI, các giới hạn cần biết trước và trách nhiệm của bạn với điều khoản của nhà cung cấp. - [Câu hỏi thường gặp](https://kongapiai.com/docs/faq.md): Trả lời ngắn cho các câu hỏi hay gặp về KONG API AI: khoá, hạn mức, tiền token, gói thuê bao, dữ liệu và tính tương thích. - [Hỗ trợ](https://kongapiai.com/docs/support.md): Cách liên hệ bộ phận hỗ trợ KONG API AI qua Zalo, Telegram, WhatsApp hoặc email, giờ làm việc, và thời gian xác nhận thanh toán.