> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corbits.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic Claude

> Access Claude models through Corbits — pay-per-request with no API key required

## Overview

The Anthropic Claude proxy provides pay-per-request access to Claude models via the Anthropic Messages API. No Anthropic account or API key required.

|                    |                                          |
| ------------------ | ---------------------------------------- |
| **Proxy URL**      | `https://corbits-claude.api.corbits.dev` |
| **Proxy ID**       | `10`                                     |
| **Default price**  | \$0.10 per request                       |
| **Pricing scheme** | Exact                                    |

## Quick start

Install the payment SDK and make a message request:

```javascript theme={null}
import { payer } from "@faremeter/rides";

// Load your Solana keypair
await payer.addLocalWallet(process.env.PAYER_KEYPAIR);

const response = await payer.fetch("https://corbits-claude.api.corbits.dev/v1/messages", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "anthropic-version": "2023-06-01",
  },
  body: JSON.stringify({
    model: "claude-sonnet-4-20250514",
    max_tokens: 1024,
    messages: [{ role: "user", content: "Hello from Corbits!" }],
  }),
});

const data = await response.json();
console.log(data.content[0].text);
```

## Key endpoints

| Endpoint                            | Method | Description                              |
| ----------------------------------- | ------ | ---------------------------------------- |
| `/v1/messages`                      | POST   | Create a message with Claude             |
| `/v1/messages/count_tokens`         | POST   | Count tokens in a message before sending |
| `/v1/messages/batches`              | POST   | Create a batch of message requests       |
| `/v1/messages/batches`              | GET    | List all message batches                 |
| `/v1/messages/batches/{id}`         | GET    | Get batch status                         |
| `/v1/messages/batches/{id}/cancel`  | POST   | Cancel a running batch                   |
| `/v1/messages/batches/{id}/results` | GET    | Stream batch results as JSONL            |

<Note>
  This proxy does not currently have a registered OpenAPI spec in Discovery. The endpoint information above is based on the [Anthropic API reference](https://platform.claude.com/docs/en/api/messages). Use the proxy URL with the standard Anthropic API request format. Batch endpoints have not been verified through this proxy and may not behave as expected for long-running operations.
</Note>

## Discover this merchant

Query the Discovery API to get live details about this proxy:

```bash theme={null}
# Search for this proxy
curl "https://api.corbits.dev/api/v1/search?q=claude"

# Get proxy details
curl "https://api.corbits.dev/api/v1/proxies/10"

# List endpoints (may be empty if no spec is registered)
curl "https://api.corbits.dev/api/v1/proxies/10/endpoints"
```

## Notes

* Requests are proxied to the Anthropic API. Request and response formats match the [Anthropic API reference](https://platform.claude.com/docs/en/api/messages).
* Include the `anthropic-version` header in your requests as required by the Anthropic API.
* Payment is handled at the proxy layer via x402 — the `@faremeter/rides` SDK manages the challenge/response cycle automatically.
