Baltor Get started

Endpoints

Melious

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.melious.ai/v1 models.dev, read
Authentication
Authorization: Bearer, with the key in MELIOUS_API_KEY models.dev, read
Structured output
Unknown
Tool calling
15 of 15 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 deepseek-r1-0528 with the model you want.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "melious": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Melious",
      "options": {
        "baseURL": "https://api.melious.ai/v1",
        "apiKey": "{env:MELIOUS_API_KEY}"
      },
      "models": {
        "deepseek-r1-0528": {
          "name": "deepseek-r1-0528"
        }
      }
    }
  }
}
  • 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": {
    "melious": {
      "baseUrl": "https://api.melious.ai/v1",
      "api": "openai-completions",
      "apiKey": "$MELIOUS_API_KEY",
      "models": [
        {
          "id": "deepseek-r1-0528"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Melious 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 Melious 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
DeepSeek-R1 deepseek-r1-05280.696 USD2.78 USD164,000 older than 30 days
DeepSeek V3.2 deepseek-v3.20.348 USD0.580 USD164,000 older than 30 days
DeepSeek V4 Flash 0731 deepseek-v4-flash-07310.116 USD0.290 USD1,000,000 older than 30 days
DeepSeek V4 Pro deepseek-v4-pro1.85 USD3.71 USD1,000,000 older than 30 days
DeepSeek V4 Pro 0813 deepseek-v4-pro-08131.16 USD3.48 USD1,000,000 older than 30 days
DeepSeek V4.1 Flash deepseek-v4.1-flash0.232 USD1.16 USD1,000,000
GLM-5 glm-51.10 USD3.36 USD203,000 older than 30 days
GLM-5.1 glm-5.11.51 USD4.64 USD203,000 older than 30 days
GLM-5.2 glm-5.21.16 USD4.64 USD1,000,000 older than 30 days
GLM-5.3 glm-5.31.16 USD3.48 USD1,000,000 older than 30 days
GLM-5.3-Flash glm-5.3-flash0.116 USD0.464 USD1,000,000
Kimi K2.5 kimi-k2.50.580 USD2.96 USD262,000
Kimi K2.6 kimi-k2.60.811 USD4.06 USD256,000 older than 30 days
Kimi K2.7 Code kimi-k2.7-code0.811 USD3.48 USD262,144 older than 30 days
Kimi K3 kimi-k33.19 USD15.94 USD1,000,000 older than 30 days

Sources of this page