OpenAI Compatible
Drop-in replacement for /v1/chat/completions.
Works with the OpenAI SDK, LangChain, LlamaIndex, and anything that speaks the OpenAI format.
ai& serves open-weight LLMs from our own infrastructure through OpenAI- and Anthropic-compatible APIs. Point your existing SDK at our base URL — your code runs unchanged against the open-source models we host, with per-token credit billing.
https://api.aiand.comAll API endpoints are served from this base URL. Authentication is required for all requests.
curl https://api.aiand.com/v1/chat/completions \ -H "Authorization: Bearer sk-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "openai/gpt-oss-120b", "messages": [{"role": "user", "content": "Hello!"}] }'from openai import OpenAI
client = OpenAI(base_url="https://api.aiand.com/v1", api_key="sk-...")
response = client.chat.completions.create( model="openai/gpt-oss-120b", messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.aiand.com/v1", apiKey: "sk-...",});
const response = await client.chat.completions.create({ model: "openai/gpt-oss-120b", messages: [{ role: "user", content: "Hello!" }],});console.log(response.choices[0].message.content);OpenAI Compatible
Drop-in replacement for /v1/chat/completions.
Works with the OpenAI SDK, LangChain, LlamaIndex, and anything that speaks the OpenAI format.
Open Source Models
Access open source models through a single API key. Same OpenAI-compatible request format across all models.
Multimodal Inputs
Upload images and video once via the Files API, then reference by file_id in chat completions.
OpenAI-canonical wire shape — vanilla SDK works.
Credit Billing
Pay-per-token with automatic credit deduction. Per-model pricing — you only pay for what you use. Failed requests are not billed.