# Claude API

CreateWithAI Hub page: https://createwithaihub.com/apis-sdks/claude-api
Latest version of this file: https://createwithaihub.com/apis-sdks/claude-api.md

- Type: API / SDK · Category: APIs & SDKs
- Publisher: Anthropic
- Pricing: Paid
- Runs on: API (cloud)

Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.

The Claude API is Anthropic's RESTful API at api.anthropic.com for calling Claude models and running Claude Managed Agents. It includes the Messages API plus batch processing, token counting, files, models and skills endpoints. Anthropic maintains official client SDKs in seven languages that handle authentication, retries, streaming and typed responses.

Useful for: Adding Claude to a backend or agent, processing large volumes of requests with batches, or building agents on managed cloud sandboxes.

## Key features

- Messages API for conversations, tool use and vision
- Message Batches API at 50% lower cost for asynchronous jobs
- Files, Token Counting, Models and Skills APIs
- Managed Agents (beta): agents, sessions, environments
- Official SDKs: Python, TypeScript, C#, Go, Java, PHP, Ruby
- Also available via Amazon Bedrock, Google Cloud and Microsoft Foundry

## Connection

- Modality: Text, Image
- SDK language: Python, TypeScript / JS, Go, Java, C#, Ruby

## Before you start

- Claude Console account
- API key

## Install steps from the official documentation

Python SDK:

```
pip install anthropic
```

TypeScript SDK:

```
npm install @anthropic-ai/sdk
```

## Limitations

- Usage is billed per token; new users get free credits for testing only
- Rate limits and monthly spend caps depend on the organization's usage tier (Start tier: $500/month)
- Available only in supported countries and regions

## Official links

- Website: https://platform.claude.com
- Source repository: https://github.com/anthropics/anthropic-sdk-python
- Documentation: https://platform.claude.com/docs/en/api/overview
- Source: https://platform.claude.com/docs/en/api/overview (Base URL, available APIs, authentication, cloud platforms, rate limits)
- Source: https://platform.claude.com/docs/en/cli-sdks-libraries/overview (SDK languages and package names)
- Source: https://github.com/anthropics/anthropic-sdk-python (pip install anthropic; Python 3.10+; Apache-2.0)
- Source: https://github.com/anthropics/anthropic-sdk-typescript (npm install @anthropic-ai/sdk; Node.js 20+; Apache-2.0)
- Source: https://platform.claude.com/docs/en/about-claude/pricing (Per-token model prices, Batch API 50% discount, new users receive free credits to test the API)
- Source: https://platform.claude.com/docs/en/api/rate-limits (Usage tiers Start/Build/Scale with monthly spend caps $500/$1,000/$200,000)
- Source: https://platform.claude.com/docs/en/about-claude/api-credits-for-subscribers (Max, Ultra and Team plans include monthly API credits; Free and Pro not eligible)
