Skip to main content
The Channeling API is a drop-in replacement for the Anthropic Messages API. Use your existing Anthropic SDK or HTTP calls, but authenticate with Chucky JWT tokens instead of Anthropic API keys.

Endpoint


Authentication

Replace the Anthropic API key with your Chucky JWT token in the x-api-key header:

Creating Tokens

Tokens are created server-side with your HMAC secret:
See Authentication for full token creation guide.

Supported Endpoints

Request Format

The request body follows the Anthropic Messages API format exactly:

Response Format

Responses match the Anthropic API format:

Streaming

Enable streaming by setting "stream": true:
Streaming uses Server-Sent Events (SSE) matching the Anthropic format.

Multi-Provider Support

The Channeling API supports multiple AI providers through model routing:

Anthropic (Default)

OpenAI

Requires OpenAI API key configured in your project settings.

OpenRouter

Use the or: prefix for explicit routing, or any unknown model name:
Requires OpenRouter API key configured in your project settings.
See Models & Providers for full provider documentation.

Using with Anthropic SDKs

TypeScript/JavaScript

Python


Budget Enforcement

The Channeling API enforces budgets embedded in JWT tokens:
  • AI Budget: Limits total AI spend per user
  • Compute Budget: Not applicable (no sandbox execution)
When budget is exceeded, requests return a 429 error:

Cost Tracking

Every request is tracked against the user’s budget. Costs are calculated based on:
  1. Model used
  2. Input/output tokens
  3. Custom pricing (if configured)
View usage in the dashboard.

Use Cases

Direct API Access

Use HTTP calls without the Chucky SDK:

Existing Anthropic Integrations

Point existing Anthropic SDK code to Chucky by changing the base URL:

Third-Party Tools

Any tool that supports custom Anthropic endpoints can use Channeling:
  • VS Code extensions
  • CLI tools
  • Automation platforms

Error Handling


Next Steps

Authentication

Create JWT tokens with budgets

Models & Providers

Configure multi-provider support

Billing

Understand costs and pricing

Dashboard

View usage and manage projects