Skip to main content

API reference

The Standard Compute API follows the OpenAI and Anthropic API formats, so existing SDKs and tools work unchanged.

Base URLs​

Client typeBase URL
OpenAI SDKs and OpenAI-compatible toolshttps://api.stdcmpt.com/v1
Anthropic SDKs and Claude Codehttps://api.stdcmpt.com

Endpoints​

MethodPathDescription
POST/v1/chat/completionsOpenAI Chat Completions. Works with most tools.
POST/v1/responsesOpenAI Responses API.
POST/v1/messagesAnthropic Messages API, for Claude Code and Anthropic SDKs.
POST/v1/messages/count_tokensEstimate input tokens for a Messages request.
POST/v1/completionsLegacy text completions.
GET/v1/modelsList available models.

Embeddings, image generation and audio endpoints are not available.

Authentication​

Send your API key as a bearer token on every request. See Authentication.

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Models​

Every endpoint accepts standardcompute for smart routing, or an exact model ID. See Models and routing.

Errors​

Errors use the standard format for each API: OpenAI-style on the OpenAI endpoints and Anthropic-style on Messages. See Errors.