Getting started
Quickstart
Any is an OpenAI-compatible LLM API, prepaid per token, with the wallet and prices in USD (top up by VND bank transfer via VietQR). Keep using the
openai SDK you already have — just change base_url and api_key.Make your first request in 4 steps#
Create an account
Sign up on the registration page. If you have a partner referral code, enter it when you sign up (it can’t be changed later). Your wallet is created with a $0 balance.Top up with VietQR
Go to Top up, enter an amount in USD or VND and scan the QR code with your banking app. The transferred VND is converted to USD at the rate locked when the QR code is created. Keep the transfer description (a code likeKOMPAXXXXXX) unchanged so the funds are credited automatically. Details: Top-ups.Create an API key
Go to API keys → Create key. Keys look likesk-kompa-…and are shown only once, so save yours right away. You can restrict the models, spend limit and rpm of each key.Call the API
Send requests to/v1/chat/completionsjust as you would with OpenAI. Pick a model from the pricing table.
curl https://<host>/v1/chat/completions \
-H "Authorization: Bearer sk-kompa-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": "Xin chào!"}]
}'No custom SDK needed
Any library that supports OpenAI (LangChain, LlamaIndex, Vercel AI SDK, …) works: set the base URL to the URL in the example above and the API key to your
sk-kompa-… key.Key concepts#
- Prepaid wallet: each request places a hold for the most it could cost, then is charged only for the tokens actually used. See Billing.
- Prices in USD per 1M tokens, with separate input and output prices. The smallest amount is 0.000001 USD (1 micro-USD).
- Public model names: you call models by their Any name (e.g.
gpt-4o-mini); the platform picks the upstream provider for you. - OpenAI-style errors:
{"error": {"message", "type", "code"}}. See Error codes. - Every response has an
X-Request-Idheader — include it when you contact support.
Already have an account? Open Quickstart in the dashboard to get snippets for the models you’re allowed to use.