Baltor Get started

Endpoints

AnyAPI

A hosted service with its own key and prices. This page lists the addresses it answers, the facts its documentation states, and the setup of each harness.

Addresses and facts

  • OpenAI Chat Completions: https://api.anyapi.ai/v1 models.dev, read
Authentication
Authorization: Bearer, with the key in ANYAPI_API_KEY models.dev, read
Structured output
Unknown
Tool calling
28 of 30 listed models The share of this provider's models that models.dev records with tool calling. models.dev, read
Rate limits
Unknown
Prices
Unknown
Data retention
Unknown
Documentation
Read the page models.dev, read
Output limits Baltor recorded
Unknown

Harness setup

Replace anthropic/claude-haiku-4-5 with the model you want.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "anyapi": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "AnyAPI",
      "options": {
        "baseURL": "https://api.anyapi.ai/v1",
        "apiKey": "{env:ANYAPI_API_KEY}"
      },
      "models": {
        "anthropic/claude-haiku-4-5": {
          "name": "anthropic/claude-haiku-4-5"
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "anyapi": {
      "baseUrl": "https://api.anyapi.ai/v1",
      "api": "openai-completions",
      "apiKey": "$ANYAPI_API_KEY",
      "models": [
        {
          "id": "anthropic/claude-haiku-4-5"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and AnyAPI documents no Responses address. A gateway that offers one can sit in between.

  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Claude Code sends Anthropic Messages requests, and AnyAPI documents no such address. A gateway that translates to that API can sit in between.

  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Models it lists

Prices in US dollars per million tokens, input and output, as models.dev, read records them.

ModelInputOutputContextAs of
Claude Haiku 4.5 (latest) anthropic/claude-haiku-4-5UnknownUnknown200,000
Claude Opus 4.6 anthropic/claude-opus-4-6UnknownUnknown1,000,000
Claude Opus 4.7 anthropic/claude-opus-4-7UnknownUnknown1,000,000
Claude Sonnet 4.5 (latest) anthropic/claude-sonnet-4-5UnknownUnknown200,000
Claude Sonnet 4.6 anthropic/claude-sonnet-4-6UnknownUnknown1,000,000
Command R+ cohere/command-r-plus-08-2024UnknownUnknown128,000
DeepSeek Chat deepseek/deepseek-chatUnknownUnknown1,000,000
DeepSeek Reasoner deepseek/deepseek-r1UnknownUnknown1,000,000
DeepSeek V4 Flash deepseek/deepseek-v4-flashUnknownUnknown1,000,000
DeepSeek V4 Pro deepseek/deepseek-v4-proUnknownUnknown1,000,000
Gemini 2.5 Flash google/gemini-2.5-flashUnknownUnknown1,048,576
Gemini 2.5 Flash-Lite google/gemini-2.5-flash-liteUnknownUnknown1,048,576
Gemini 2.5 Pro google/gemini-2.5-proUnknownUnknown1,048,576
Gemini 3 Flash Preview google/gemini-3-flash-previewUnknownUnknown1,048,576
Gemini 3 Pro Preview google/gemini-3-pro-previewUnknownUnknown1,048,576
Devstral 2 mistralai/devstral-2512UnknownUnknown262,144
Mistral Large 3 mistralai/mistral-large-2512UnknownUnknown262,144
GPT-4.1 openai/gpt-4.1UnknownUnknown1,047,576
GPT-4.1 mini openai/gpt-4.1-miniUnknownUnknown1,047,576
GPT-5 openai/gpt-5UnknownUnknown400,000
GPT-5 Mini openai/gpt-5-miniUnknownUnknown400,000
GPT-5.1 openai/gpt-5.1UnknownUnknown400,000
GPT-5.2 openai/gpt-5.2UnknownUnknown400,000
GPT-5.4 openai/gpt-5.4UnknownUnknown1,050,000
o3 openai/o3UnknownUnknown200,000
o3-mini openai/o3-miniUnknownUnknown200,000
o4-mini openai/o4-miniUnknownUnknown200,000
Sonar Pro perplexity/sonar-proUnknownUnknown200,000
Sonar Reasoning Pro perplexity/sonar-reasoning-proUnknownUnknown128,000
Grok 4.3 xai/grok-4.3UnknownUnknown1,000,000

Sources of this page