//
该模型可通过多个入口访问,选择不同入口即可查看对应的价格与代码示例。
按 token 用量计费,价格透明,无订阅或隐藏费用。
复制下方示例,几行代码即可接入该模型。
import anthropic
client = anthropic.Anthropic(
base_url="https://api.apipod.ai",
api_key="<YOUR_API_KEY>",
)
message = client.messages.create(
model="claude-opus-4-7",
max_tokens=1024,
messages=[
{
"role": "user",
"content": "What is the meaning of life?",
}
],
)
print(message.content[0].text)