Anthropic API#
通过官方 Anthropic API 接入,使用合法获取的 API key,按 API 账户计费。所有调用必须遵守 Anthropic 的服务条款与使用政策。
openprogram providers login anthropic
from openprogram.providers.registry import create_runtime
runtime = create_runtime(provider="anthropic", model="claude-sonnet-4-6")
参见认证与 provider 配置。
Last updated · 2026-10-10