API reference
The Standard Compute API follows the OpenAI and Anthropic API formats, so existing SDKs and tools work unchanged.
Base URLs
| Client type | Base URL |
|---|---|
| OpenAI SDKs and OpenAI-compatible tools | https://api.stdcmpt.com/v1 |
| Anthropic SDKs and Claude Code | https://api.stdcmpt.com |
Endpoints
| Method | Path | Description |
|---|---|---|
POST | /v1/chat/completions | OpenAI Chat Completions. Works with most tools. |
POST | /v1/responses | OpenAI Responses API. |
POST | /v1/messages | Anthropic Messages API, for Claude Code and Anthropic SDKs. |
POST | /v1/messages/count_tokens | Estimate input tokens for a Messages request. |
POST | /v1/completions | Legacy text completions. |
GET | /v1/models | List 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.