Launch preview Service availability and integrations are being verified. View readiness

Messages API

Use the Anthropic Messages format with the correct base URL and Redline credentials.

POST /v1/messages

Direct HTTP requests include /v1/messages. Send the Anthropic API version header and a Redline model alias.

curl
curl "https://api.redline-api.duckdns.org/v1/messages" \
  -H "Authorization: Bearer $REDLINE_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "redline-core",
    "max_tokens": 256,
    "messages": [{"role": "user", "content": "Draft a code review checklist."}]
  }'

Anthropic SDK: omit /v1 from the base URL

The SDK appends its own path. Set base_url to https://api.redline-api.duckdns.org, not https://api.redline-api.duckdns.org/v1. Set ANTHROPIC_AUTH_TOKEN to your Redline key.

Python
# Install: pip install anthropic
import os
from anthropic import Anthropic

client = Anthropic(
    api_key=None,
    auth_token=os.environ["ANTHROPIC_AUTH_TOKEN"],
    base_url="https://api.redline-api.duckdns.org",  # No /v1 here
)
message = client.messages.create(
    model="redline-core",
    max_tokens=256,
    messages=[{"role": "user", "content": "Draft a code review checklist."}],
)
print(message.content)

Models and client compatibility

Using the Anthropic message format does not make these Claude models. They are hosted abliterated models provided by abliteration.ai. See the Claude Code guide for client configuration and verification status.