# Claude API Access for Applications, Agents, and Automation

[HTML canonical](https://bettertoken.ai/en/claude-api/)

CLAUDE API · APPS AND AUTOMATION

Up to 32% below official prices

Create your own BetterToken API key, top up $5 and save $2, then pay as you go.

- Your own BetterToken API key
- First top-up: add $5 and save $2
- Pay-as-you-go billing. Available payment methods and terms are shown in Workspace.

[Create an API key](https://bettertoken.ai/workspace) [Choose the protocol in Docs](https://docs.bettertoken.ai/en/faq/concepts/openai-compatible-vs-anthropic-compatible)

The full top-up amount is credited. Current payment methods and promotion terms are shown in Workspace.

CHOOSE THE RIGHT PATH

## Claude API, Claude.ai, and Claude Code solve different jobs

This page is for general API access from apps, scripts, and automation.

| Need | Right path | Boundary |
| --- | --- | --- |
| Calls from a product or automation | Claude API through BetterToken | BetterToken API key, not an official Anthropic key |
| Claude web interface | Claude.ai | BetterToken does not sell Claude Pro, Max, or shared accounts |
| Coding agent in the terminal | [Claude Code API](https://bettertoken.ai/en/claude-code-api/) | [Full setup belongs in Docs](https://docs.bettertoken.ai/en/ai-tools/claude-code) |

CAPABILITIES

## What you get

Not an official Anthropic key, but your own BetterToken API key and a compatible path for real workloads.

### Anthropic-compatible API for real workloads

Use it in applications, scripts, automation, agent workflows, and tools with a custom endpoint. Check the protocol and matching Base URL in Docs before connecting a client.

### BetterToken API endpoint

Connect to the BetterToken API endpoint when your environment can reach it. Third-party websites, downloads, sign-in, and updates may have their own requirements.

### Your key and visible usage

Create the key in your own account. Dashboard shows the model, status, input, output, cached tokens, charge, and balance.

### Current documentation and support

Use current guides and the support channel. Never send a full API key, prompt, or sensitive logs.

GET STARTED

## Three steps to your first API call

### Create an account and API key

Open Workspace and issue your own key. Keep it secret: never publish it in a repository, chat, or screenshot.

### Match the protocol and connection settings

Choose the protocol and Base URL in Docs. Select the current model and key group from the pricing page and Workspace setup.

### Send a small test

Check the response, then match the model, status, tokens, and charge in Dashboard before your first top-up. — [Claude API first request guide](https://bettertoken.ai/en/blog/claude-api-russia-key-first-request/)

BILLING AND USAGE

## Pay as you go and see your usage

BetterToken uses pay-as-you-go billing. User-funded paid balance does not automatically reset each month; trial and promotional balances have separate rules.

### Workspace payment

[Open models and pricing](https://bettertoken.ai/en/pricing/)

### Token usage without guesswork

Input, output, and cached tokens are recorded separately when supported by the model. Dashboard is not presented as storage for full prompt and response text.

USE CASES

## Where Claude API fits

### Application development

Add model calls to a backend, internal service, or product feature through an Anthropic-compatible API.

### Automation and scripts

Process documents, classify data, and run repeatable operations while limiting context and response size.

### Agent workflows

Connect the API to agent tools that accept a custom endpoint. The operation of external tools remains outside the API service.

### Content and data

Send results to a spreadsheet, CMS, or report; handle fact-checking, rights, and personal data separately.

### Tools with a custom endpoint

Connect only where the current tool version has a verified path for a custom API key and Base URL.

MODEL CATALOG

## More than Claude

Catalog availability, models, and pricing can change. Check current data on the pricing page and use Docs to choose the matching protocol and Base URL.

BetterToken BetterToken catalog

[Claude Fable 5.2 API →](https://bettertoken.ai/en/claude-fable-5-2-api/) [Open the current catalog](https://bettertoken.ai/en/pricing/) [Compare protocols in Docs](https://docs.bettertoken.ai/en/faq/concepts/openai-compatible-vs-anthropic-compatible)

FAQ

## Claude API questions

Short answers about the key, payment, access, and the boundaries of the BetterToken service.

### Is this an official Anthropic API key?

No. BetterToken provides an Anthropic-compatible API under your own BetterToken account and BetterToken API key. It is a separate service, not an official Anthropic API key.

### Do I receive an account, subscription, or API access?

You receive API access through your own BetterToken account and API key. BetterToken does not sell Claude.ai, Claude Pro, Claude Max, shared accounts, or official Anthropic accounts.

### How does pay-as-you-go billing work?

Pay-as-you-go billing. Available payment methods and terms are shown in Workspace. Your BetterToken balance is consumed by actual model calls according to the selected model rules.

### How does the first top-up offer work?

New users can top up $5 and save $2. The full top-up amount is credited, and current terms are shown in Workspace.

### Where can I see token usage and cost?

BetterToken Dashboard shows balance, model, request time and status, input tokens, output tokens, cached tokens when supported, and the charge for the request.

### Does paid balance reset each month?

User-funded paid balance does not automatically reset each month. Starting, trial, bonus, and promotional balances may have separate validity periods and rules.

### What happens when an upstream route is unavailable?

Smart routing can help only when multiple upstream channels are configured for the relevant model or route and the error matches fallback rules. Not every model has multiple channels, not every error triggers switching, and switching does not guarantee a successful response.

### Can I use this API with Claude Code?

Claude Code has a separate terminal workflow through the BetterToken Anthropic-compatible API. Open the [Claude Code API page](https://bettertoken.ai/en/claude-code-api/) and the [current Docs guide](https://docs.bettertoken.ai/en/ai-tools/claude-code) for the current Base URL, variables, key group, and model selection rules.

## Test Claude API with your own use case

Create an API key, top up $5, save $2, and pay only for measured usage.

[Create an API key](https://bettertoken.ai/workspace) [Choose the protocol in Docs](https://docs.bettertoken.ai/en/faq/concepts/openai-compatible-vs-anthropic-compatible) [Open models and pricing](https://bettertoken.ai/en/pricing/)
