API endpoint

Tokener.ai model API base URL and supported OpenAI- and Anthropic-compatible paths.

Updated 2026-08-22
Edit on GitHub

Supported model API surfaces (relative to the base URL below):

StatusMethodPathUse for
SupportedGET/modelsList discoverable model ids available to your key
SupportedGET/models?client_version=…Codex remote model picker
SupportedGET/models/userClaude Code gateway model picker
SupportedPOST/chat/completionsChat and reasoning models (primary)
SupportedPOST/embeddingsEmbedding models
SupportedPOST/messagesAnthropic Messages API shape, including agent clients such as Claude Code
SupportedPOST/responsesOpenAI Responses API, including agent clients such as Codex

Streaming works on chat-style paths (stream: true). Which models exist, their pricing, and availability are live on the Models catalog — not duplicated here.

Base URL

https://api.tokener.ai/v1

All model traffic uses this base URL. It exposes OpenAI-compatible endpoints and an Anthropic-compatible /messages endpoint. The website and console never proxy LLM calls. Send your Tokener.ai API key as the Bearer token, or as x-api-key for /messages.

TypeScript
import OpenAI from "openai";
 
const client = new OpenAI({
  apiKey: process.env.TOKENER_API_KEY,
  baseURL: "https://api.tokener.dev/v1",
});

Create a key in API keys before calling these paths.

Agent clients

Coding agents run directly against these paths. See the setup guides for Codex (/responses) and Claude Code (/messages).

Every response — success or error — carries x-request-id and request-id headers; include them when contacting support. There is no browser CORS support: call these paths from your backend, not directly from a browser. See Errors for error response shapes and the full error code table.