Skip to main content

Overview

Anthropic’s Claude models are renowned for complex reasoning, careful instruction following, and exceptionally long context windows. Claude is an excellent choice for applications that involve nuanced conversation, long document analysis, and code generation.

Setup

1

Get an API Key

Sign up or log in at console.anthropic.com. Navigate to API Keys and create a new key.
2

Configure in Nadoo

Go to Admin > Model Providers > Anthropic and enter:
FieldRequiredDescription
API KeyYesYour Anthropic API key (starts with sk-ant-)
3

Test Connection

Click Test to verify the key is valid and enable the models you want to use.

Available Models

ModelContext WindowStrengths
claude-3.5-sonnet200K tokensBest balance of intelligence, speed, and cost. Recommended default.
claude-3-opus200K tokensHighest reasoning capability. Best for complex, multi-step tasks.
claude-3-haiku200K tokensFastest and most cost-efficient. Ideal for high-volume, simpler tasks.

Capabilities

Chat Completion

Conversational AI with streaming support and careful instruction following.

Long Context

Process up to 200K tokens — equivalent to roughly 500 pages of text in a single request.

Code Generation

Strong performance on code writing, review, debugging, and explanation tasks.

Streaming

Real-time token-by-token streaming for responsive user interfaces.

When to Use Anthropic

Claude excels at multi-step logical reasoning, mathematical problem-solving, and tasks that require careful analysis of competing considerations.
With a 200K token context window, Claude can ingest entire codebases, legal documents, or research papers without chunking. This makes it ideal for summarization, Q&A over long texts, and document comparison.
Claude produces high-quality code across many languages and is particularly strong at understanding existing codebases, explaining logic, and suggesting improvements.
Claude is designed to be helpful, harmless, and honest. It performs well in applications that require balanced, well-reasoned responses — such as customer-facing support or advisory bots.
Use CaseRecommended ModelReason
General chatbotclaude-3.5-sonnetBest all-around performance and cost balance
Complex analysisclaude-3-opusHighest reasoning capability
High-volume supportclaude-3-haikuFast and cost-efficient
Document Q&Aclaude-3.5-sonnetLong context + strong comprehension
Code assistantclaude-3.5-sonnetStrong code generation and understanding

Environment Variable

When self-hosting, set the API key via environment variable:
ANTHROPIC_API_KEY=sk-ant-your-api-key-here
If both the environment variable and the admin UI configuration are set, the admin UI value takes precedence.

Rate Limits and Pricing

Anthropic applies rate limits based on your account tier and usage level. Nadoo AI handles rate-limit responses gracefully and will surface errors in the chat interface.
Anthropic uses a tiered rate-limit system that increases automatically as your spending grows. Check your current tier at console.anthropic.com.

Troubleshooting

Your API key is invalid or expired. Generate a new key at console.anthropic.com.
You have exceeded your tier’s rate limit. Wait briefly and retry, or check your usage tier for higher limits.
Anthropic’s API is temporarily at capacity. Nadoo AI will automatically retry with exponential backoff.