AINet API docs

AINet API docs explain how to use one AINet base URL with OpenAI-compatible and Anthropic-compatible clients. The docs cover authentication, quickstart calls, supported endpoints, and SDK examples for Python, Node, Codex, and Claude Code workflows.

Quickstart

Create an AINet API key, set the OpenAI or Anthropic base URL to the AINet gateway, and send the same request shape your existing SDK already uses. The gateway authenticates the AINet key and forwards only supported provider endpoints.

Supported OpenAI endpoints

AINet supports selected OpenAI routes including chat completions, responses, models, embeddings, image generations, image edits, and moderations. Non-allowlisted paths return a gateway policy error before reaching OpenAI.

Supported Anthropic endpoints

AINet supports Anthropic messages, token counting, and model listing through Anthropic-compatible routes. Provider beta values and stateful file surfaces are filtered according to the gateway policy.

Last updated: 2026-06-02