Access DeepSeek, Qwen, and GLM models that rival GPT-4. Drop-in replacement for your existing codebase. No KYC required.
All GPT-4 class. A fraction of the price.
Best for coding & reasoning
Best for Chinese & multilingual
Best for long context tasks
Change 2 lines of code. Everything else stays the same.
import openai\n\nclient = openai.Client(\n # base_url="https://api.openai.com/v1",\n base_url="https://altapi.ai/v1", # 1. Change URL\n # api_key="sk-openai-...",\n api_key="alt_your_key_here" # 2. Change Key\n)\n\nresponse = client.chat.completions.create(\n model="deepseek-chat",\n messages=[{"role": "user", "content": "Hello!"}]\n)
import OpenAI from "openai";\n\nconst client = new OpenAI({\n baseURL: "https://altapi.ai/v1", // 1. Change URL\n apiKey: "alt_your_key_here", // 2. Change Key\n});\n\nconst res = await client.chat.completions.create({\n model: "deepseek-chat",\n messages: [{ role: "user", content: "Hello!" }],\n});\nconsole.log(res.choices[0].message.content);
curl https://altapi.ai/v1/chat/completions \
-H "Authorization: Bearer alt_your_key_here" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-chat","messages":[{"role":"user","content":"Hello!"}]}'Top up with USDT (TRC20). Tokens never expire.