b. black.ai
DEVELOPER GUIDE

Connect any client.

One black.ai key works with OpenAI-compatible apps, Anthropic-compatible tools and Responses clients, with streaming and tool calling on every model. Create a key in your console, then use these settings:

SettingValue
Base URL (OpenAI-compatible)https://www.ewrt23r23r23as.com/v1
Base URL (Anthropic SDKs, Claude Code)https://www.ewrt23r23r23as.com — they add /v1 themselves
API keyYour black_… key, as Authorization: Bearer or x-api-key
ModelAn exact id from Models, prefix included, e.g. anthropic/claude-opus-5.5

First request

curl https://www.ewrt23r23r23as.com/v1/chat/completions \
  -H 'Authorization: Bearer YOUR_BLACK_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model": "zhipu/glm-5.3-flash", "messages": [{"role": "user", "content": "Hello"}]}'

Endpoints

EndpointProtocolUsed by
POST /v1/chat/completionsOpenAI Chat CompletionsMost apps, editors and agents
POST /v1/messagesAnthropic MessagesClaude Code, Anthropic SDKs
POST /v1/messages/count_tokensToken estimate (free)Claude Code
POST /v1/responsesOpenAI ResponsesCodex CLI
GET /v1/modelsCatalogue and pricesModel pickers

Every model is available on all three generation endpoints, with stream: true, tool calling and multi-turn history. Requests are forwarded with only the adjustments listed under Compatibility; anything else a model cannot accept comes back as a 400 that states the reason.

Client setup

Coding agents

Claude Code

Claude Code uses the Anthropic protocol. Give it the origin without /v1, and set its background model too, since its default is not in the catalogue:

export ANTHROPIC_BASE_URL=https://www.ewrt23r23r23as.com
export ANTHROPIC_AUTH_TOKEN=YOUR_BLACK_API_KEY
export ANTHROPIC_MODEL=anthropic/claude-opus-5.5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=zhipu/glm-5.3-flash
claude

Switch models with full ids, e.g. /model openai/gpt-6-sol.

Codex CLI

Codex uses the Responses protocol. Add a provider to ~/.codex/config.toml:

model = "openai/gpt-6-sol"
model_provider = "blackai"

[model_providers.blackai]
name = "black.ai"
base_url = "https://www.ewrt23r23r23as.com/v1"
env_key = "BLACK_API_KEY"
wire_api = "responses"
export BLACK_API_KEY=YOUR_BLACK_API_KEY
codex
omp (oh-my-pi)

Define the provider in ~/.omp/agent/models.yml. apiKey names the environment variable that holds your key:

providers:
  blackai:
    baseUrl: https://www.ewrt23r23r23as.com/v1
    api: openai-completions
    apiKey: BLACK_API_KEY
    models:
      - id: zhipu/glm-5.3-derisked
        name: GLM 5.3 De-risked
        contextWindow: 1000000
        maxTokens: 32768
      - id: zhipu/glm-5.3
        name: GLM 5.3
        contextWindow: 1000000
        maxTokens: 32768
      - id: zhipu/glm-5.3-flash
        name: GLM 5.3 Flash
        contextWindow: 1000000
        maxTokens: 32768
      - id: anthropic/claude-opus-5.5
        name: Claude Opus 5.5
        contextWindow: 1000000
        maxTokens: 32768
      - id: anthropic/claude-opus-5
        name: Claude Opus 5
        contextWindow: 1000000
        maxTokens: 32768
      - id: anthropic/claude-opus-4.8
        name: Claude Opus 4.8
        contextWindow: 1000000
        maxTokens: 32768
      - id: anthropic/claude-fable-5
        name: Claude Fable 5
        contextWindow: 1000000
        maxTokens: 32768
      - id: anthropic/claude-fable-5.1
        name: Claude Fable 5.1
        contextWindow: 1000000
        maxTokens: 32768
      - id: openai/gpt-6-astra
        name: GPT 6 Astra
        contextWindow: 1100000
        maxTokens: 32768
      - id: openai/gpt-6-luna
        name: GPT 6 Luna
        contextWindow: 1100000
        maxTokens: 32768
      - id: openai/gpt-6-sol
        name: GPT 6 Sol
        contextWindow: 1100000
        maxTokens: 32768
      - id: openai/gpt-5.6-sol
        name: GPT 5.6 Sol
        contextWindow: 1100000
        maxTokens: 32768
      - id: openai/gpt-5.6-luna
        name: GPT 5.6 Luna
        contextWindow: 1100000
        maxTokens: 32768

Choose a model with omp setup, or in ~/.omp/agent/config.yml, and confirm the list with omp models blackai:

modelRoles:
  default: blackai/anthropic/claude-opus-5.5
export BLACK_API_KEY=YOUR_BLACK_API_KEY
omp

api: anthropic-messages and api: openai-responses work with the same baseUrl.

OpenCode

Add a provider to opencode.json, then pick it with /models:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "blackai": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "black.ai",
      "options": {
        "baseURL": "https://www.ewrt23r23r23as.com/v1",
        "apiKey": "{env:BLACK_API_KEY}"
      },
      "models": {
        "anthropic/claude-opus-5.5": { "name": "Claude Opus 5.5" },
        "openai/gpt-6-sol": { "name": "GPT 6 Sol" }
      }
    }
  }
}
Aider
export OPENAI_API_BASE=https://www.ewrt23r23r23as.com/v1
export OPENAI_API_KEY=YOUR_BLACK_API_KEY
aider --model openai/anthropic/claude-opus-5.5

The leading openai/ selects Aider’s OpenAI-compatible transport; the rest is the exact catalogue id.

Hermes Agent, OpenClaw and other OpenAI-compatible agents

Add a custom Chat Completions provider with three values:

Base URL   https://www.ewrt23r23r23as.com/v1
API key    YOUR_BLACK_API_KEY
Model      anthropic/claude-opus-5.5   (any exact id from /v1/models)

Editors

Cursor

Settings → Models: paste your key into OpenAI API Key, enable Override OpenAI Base URL and set it to https://www.ewrt23r23r23as.com/v1, then add a custom model with an exact id such as anthropic/claude-opus-5.5. Cursor’s own features, such as Tab completion, keep using Cursor’s models.

Cline

Settings → API Provider: OpenAI Compatible. Base URL https://www.ewrt23r23r23as.com/v1, your key, and Model ID anthropic/claude-opus-5.5.

Continue

In config.yaml:

models:
  - name: Claude Opus 5.5
    provider: openai
    model: anthropic/claude-opus-5.5
    apiBase: https://www.ewrt23r23r23as.com/v1
    apiKey: YOUR_BLACK_API_KEY
    roles: [chat, edit, apply]
Zed

In settings.json, then enter your key for the black.ai provider in the Agent Panel settings:

"language_models": {
  "openai_compatible": {
    "black.ai": {
      "api_url": "https://www.ewrt23r23r23as.com/v1",
      "available_models": [
        {
          "name": "anthropic/claude-opus-5.5",
          "display_name": "Claude Opus 5.5",
          "max_tokens": 1000000,
          "capabilities": { "tools": true, "images": false, "parallel_tool_calls": false, "prompt_cache_key": false }
        }
      ]
    }
  }
}

Chat apps

Open WebUI

Admin Panel → Settings → Connections → OpenAI API: add https://www.ewrt23r23r23as.com/v1 with your key. Models load automatically from /v1/models.

LibreChat

In librechat.yaml:

endpoints:
  custom:
    - name: "black.ai"
      apiKey: "${BLACK_API_KEY}"
      baseURL: "https://www.ewrt23r23r23as.com/v1"
      models:
        default: ["anthropic/claude-opus-5.5", "zhipu/glm-5.3-flash"]
        fetch: true
      titleConvo: true
      titleModel: "zhipu/glm-5.3-flash"
LobeChat / LobeHub

Settings → AI Service Provider → OpenAI: set your key and the API proxy address https://www.ewrt23r23r23as.com/v1, then add model ids such as anthropic/claude-opus-5.5 to the model list.

Cherry Studio

Settings → Model Provider → Add, type OpenAI. API Host https://www.ewrt23r23r23as.com (Cherry Studio adds /v1/chat/completions itself) and your key, then Manage → add models by exact id, keeping the prefix: anthropic/claude-opus-5.5.

AnythingLLM

LLM Preference → Generic OpenAI. Base URL https://www.ewrt23r23r23as.com/v1, your key, Chat Model Name anthropic/claude-opus-5.5, context window 1000000. Keep AnythingLLM’s built-in embedder for documents; this API serves chat only.

SDKs

OpenAI SDK (Python, Node)
from openai import OpenAI

client = OpenAI(base_url="https://www.ewrt23r23r23as.com/v1", api_key="YOUR_BLACK_API_KEY")
reply = client.chat.completions.create(
    model="anthropic/claude-opus-5.5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)

In Node, pass the same baseURL and apiKey to new OpenAI(). client.responses.create() works too.

Anthropic SDK (Python, TypeScript)

Use the origin without /v1; the SDK adds it:

import anthropic

client = anthropic.Anthropic(base_url="https://www.ewrt23r23r23as.com", api_key="YOUR_BLACK_API_KEY")
message = client.messages.create(
    model="anthropic/claude-opus-5.5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)

Compatibility

Wallet billing

Each request reserves the model’s full input and output context price, then releases the unused portion as soon as usage is reported — for a streamed response, when the stream ends. Only reported tokens are charged; cached input is charged at the standard input rate. The hold for GLM 5.3 De-risked is $4.50. Token counting is free. Closing a stream early does not stop generation, and the full response is charged. Every response carries an x-request-id header; quote it when asking about a charge.

Errors and limits

A model’s own validation errors are returned with their status and reason. Otherwise: 400 unknown model; 401 invalid key; 402 insufficient funds for the hold; 429 rate limited (each account may make 300 requests per minute; the response carries Retry-After, which the OpenAI and Anthropic SDKs follow automatically); 503 temporarily unavailable, with no charge. A 502 means the outcome is uncertain and the hold is kept until it is reviewed, so never retry an uncertain request automatically.

Access and privacy

The site uses one essential session cookie. There are no browser scripts, external fonts, or analytics trackers. Login codes and API keys are stored as hashes. API prompt and response content is not persisted, and streamed responses are relayed as they arrive without being stored. Chat conversations are stored for recovery: temporary chats expire after 24 hours; normal chats remain until deleted. Account, request, and billing metadata are retained for usage and cost accounting. Failed requests are logged for 30 days as metadata only — time, account, endpoint, model, status, error reason, client app, and the request’s outline (field names, message roles and counts) — never their content.

Tor hides your network address from this service when using its onion address. It does not change the privacy policies of services used to process a request. Service policies still apply.