API endpoint

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

Updated 2026-10-21
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/rerankRank documents for a query with an assigned model
SupportedPOST/audio/transcriptionsTranscribe an audio file sent as multipart form data
SupportedPOST/audio/speechGenerate speech as a binary audio stream
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.

Decision models are not OpenAI- or Anthropic-compatible and are served outside /v1; see Decision API.

Rerank requests use model, query, and documents, with optional top_n and return_documents. Responses contain results with document indexes and relevance scores. Use an explicitly assigned model ID. A hidden model does not appear in /models, even for an authorized key. Rerank does not stream.

Transcription requests use multipart/form-data with model and file fields. Speech requests use JSON with model, input, and voice. Successful speech responses stream audio bytes and preserve Content-Type. Both audio paths use your Tokener.ai API key. Model-specific formats and limits still apply.

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.ai/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.