Endpoints
- →POST https://api.unlimitedai.sh/v1/chat/completions
- →POST https://api.unlimitedai.sh/v1/responses
- →POST https://api.unlimitedai.sh/v1/messages
- →GET https://api.unlimitedai.sh/v1/models
Examples
cURL
curl https://api.unlimitedai.sh/v1/chat/completions -H 'Authorization: Bearer sk-xx' -H 'Content-Type: application/json' -d '{"model":"z-ai/glm-5.3","messages":[{"role":"user","content":"hello"}]}'Python
from openai import OpenAI
c = OpenAI(base_url="https://api.unlimitedai.sh/v1", api_key="sk-xx")
print(c.chat.completions.create(model="anthropic/claude-sonnet-5", messages=[{"role":"user","content":"hello"}]).choices[0].message.content)Node.js
import OpenAI from "openai";
const c = new OpenAI({ baseURL: "https://api.unlimitedai.sh/v1", apiKey: "sk-xx" });
console.log((await c.chat.completions.create({ model: "qwen/qwen3.8-max", messages: [{ role: "user", content: "hello" }] })).choices[0].message.content);Streaming and tools
Streaming (stream: true), function/tool calling and system prompts work the same way as with the original providers.