Q1What endpoint should I use?
Point the OpenAI SDK base_url to https://api.anima.ai/v1 and authenticate with your Anima sk-app-xxx key. The /v1/chat/completions endpoint maps Anthropic Messages format transparently — no code change needed in the application layer.
Q2Which model alias should I pass?
Use model="chat-claude-opus-4-7" in the request body. Anima resolves the alias to Anthropic Claude Opus 4.7 (1M context build) and falls back to claude-opus-4-6 if the primary channel is degraded.
Q3Is streaming (SSE) supported?
Yes — pass stream=true exactly like with OpenAI. Anima translates the Anthropic event stream (message_start / content_block_delta / message_stop) into OpenAI delta chunks, so any chat UI built for ChatGPT works unchanged.
Q4Does tool calling work?
Yes. The OpenAI tools array is mapped to Anthropic tool_use blocks. Multi-turn tool conversations are normalized so your code sees standard OpenAI tool_call_id / role=tool messages on the way back.
Q5How is it billed?
Claude Opus 4.7 input is roughly $5 per million tokens and output is roughly $25 per million. Anima converts USD upstream cost to your sale price using the strategy on your app (cost_passthrough / markup / fixed / package). Bills are itemized per call.
Q6Where do I get my sk key?
Sign in to the Anima dashboard at /dashboard, open API Keys, and click New Key. The full sk is shown once — store it in a secret manager immediately. Anima only persists the SHA-256 hash.
All answers
howto
How to call Claude Opus 4.7 via OpenAI SDK
Use Anima as an OpenAI-compatible gateway to call Anthropic Claude Opus 4.7 with the standard openai Python / Node SDK — no code rewrite, full streaming + tool support.
By Anima Team· 6/15/2026· locale: en
All answers© 2026 Orux AI