Claude. The AI assistant built for safety, depth, and precision.
https://api.anthropic.com
Anthropic's Messages API provides access to the Claude family of models. Claude Opus 4 for complex reasoning, Claude Sonnet 4 for the best balance of speed and intelligence, and Claude Haiku for fast, lightweight tasks. Claude excels at long-context analysis (up to 200K tokens), structured tool use, and nuanced instruction following.
The API uses a custom header for authentication (x-api-key) and requires a version header. Responses can be streamed via Server-Sent Events. The tool use system allows Claude to call external functions and return structured data.
sk-ant-api03-| Method | Path | Description |
|---|---|---|
| POST | /v1/messages |
Create a message: Claude Opus, Sonnet, Haiku |
| POST | /v1/messages (stream) |
Stream response tokens via SSE |
| GET | /v1/models |
List available Claude models |
| POST | /v1/messages/batches |
Submit a batch of message requests |
| GET | /v1/messages/batches/{id} |
Check batch processing status |
| POST | /v1/messages/count_tokens |
Count tokens before sending a request |
Build assistants with Claude's 200K context window for deep document analysis and conversation.
Generate, review, and refactor code across dozens of languages with high accuracy.
Let Claude call your functions via structured tool use for agentic workflows.
Summarize, extract, and analyze long documents.PDFs, reports, legal contracts.