TL;DR: Claude API ใช้ได้ 100% Anthropic ตัวเดิม — ทั้ง Sonnet / Opus / Haiku ผ่าน endpoint มาตรฐาน — ngaicode ขาย API Key ในราคา 49-1,300 บาท จ่าย PromptPay ได้ ใช้ได้กับ Claude Code CLI, Cursor, Python, ทุก Anthropic client
3 ลิงก์เดียวที่ต้องจำ:
Claude API คือ API endpoint ของ Anthropic ที่ให้ dev เข้าถึง Claude models (Sonnet / Opus / Haiku) ผ่าน HTTP
ใน SERP ของคีย์เวิร์ด “Claude API” Google แสดง:
“Claude Platform: Sign In” — platform.claude.com (platform.claude.com/)
“Anthropic Academy: Claude API Development Guide” — anthropic.com (anthropic.com/learn/build-with-claude)
“Building with the Claude API - Anthropic Courses” — anthropic.skilljar.com (anthropic.skilljar.com/claude-with-the-anthropic-api)
API endpoint หลัก: https://api.anthropic.com/v1/messages (Anthropic official) หรือ https://api.ccpro.cn/v1/messages (ngaicode)
import anthropic
client = anthropic.Anthropic(api_key="<key>", base_url="<https://api.ccpro.cn>")
message = client.messages.create(
model="claude-sonnet-4.5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello, Claude"}]
)
print(message.content[0].text)
export ANTHROPIC_API_KEY=<key>
export ANTHROPIC_AUTH_TOKEN=<key>
export ANTHROPIC_BASE_URL=https://api.ccpro.cn
claude "Refactor utils.py"
ใส่ codebase ทั้งโปรเจ็กต์ใน prompt ได้ — Claude Sonnet/Opus รองรับ 200K-1M tokens