Skip to main content

API Overview

Openference exposes a stable OpenAI-compatible surface plus direct Anthropic format for Claude. All requests require a valid Authorization: Bearer sk-token-... header (or legacy sk-user-).

Base URL

https://api.openference.com/v1

Core Endpoints

Method & PathFormatDescription
POST /chat/completionsOpenAIChat completions with streaming & tools
POST /messagesAnthropicClaude Messages API
POST /responsesOpenAIResponses API (used by Codex etc.)
POST /embeddingsOpenAIText embeddings
GET /modelsOpenAIList models available to the caller

Format handling

  • If the model route supports the client format natively, we pass through.
  • Otherwise we automatically convert between OpenAI ↔ Anthropic ↔ Gemini.
See Format conversion for details.

Model names

Use the exact model ID returned by GET /v1/models (or shown on the website). Some routes may map an alias to a specific upstream model ID.

Streaming

Add "stream": true (OpenAI) or the equivalent for Anthropic. We forward SSE correctly.

Errors

See Errors.

Rate limits & quotas

See Rate Limits.