Anthropic (Claude)
Anthropic Claude models with Extended Thinking, long context, and advanced reasoning.
Overview
Anthropic is an AI safety company focused on building reliable, interpretable, and steerable AI systems. Their Claude models are known for strong reasoning, long context windows, and safety-focused design.
Official Website: https://www.anthropic.com API Documentation: https://docs.anthropic.com
Key Features
- Extended Thinking — Configurable thinking budget for enhanced reasoning
- Long Context — Large context windows for document analysis
- Computer Use — Native ability to interact with computer interfaces
- Vision — Image analysis and understanding
- Agent SDK — Building AI agents with tool use
- MCP Connector — Connect to external data sources
Usage Example
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.yuhuanstudio.com/v1"
)
response = client.chat.completions.create(
model="model-id",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_API_KEY",
baseURL: "https://api.yuhuanstudio.com/v1",
});
const response = await client.chat.completions.create({
model: "model-id",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "Hello!" },
],
});
console.log(response.choices[0].message.content);curl https://api.yuhuanstudio.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "model-id",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
]
}'Extended Thinking
Enable extended reasoning for complex problems:
response = client.chat.completions.create(
model="model-id",
messages=[{"role": "user", "content": "Solve this complex problem"}],
extra_body={
"thinking": {
"type": "enabled",
"budget_tokens": 10000
}
}
)Available Models
Use the Models API to query available models:
curl https://api.yuhuanstudio.com/v1/models?provider=anthropic \
-H "Authorization: Bearer YOUR_API_KEY"Models and pricing are synced automatically from Anthropic. Check the dashboard for current availability and rates.
Official Resources
How is this guide?