https://api.morphllm.com. One API key, two wire formats:
Docs examples use OpenAI-SDK tabs. For any open-source chat model, the Anthropic Messages API works equivalently: same models, same per-token billing, same rate limits. Specialized model APIs (Fast Apply, WarpGrep, Compact, Reflex) are OpenAI-format only.
Auth accepts both conventions:
Authorization: Bearer YOUR_API_KEY or x-api-key: YOUR_API_KEY.
- Anthropic SDK (Python)
- Anthropic SDK (TypeScript)
- cURL
tool_use / tool_result blocks), system prompts, and multi-turn history all work as the Anthropic API documents them. Model reasoning surfaces as thinking content blocks; a thinking request config maps to the models’ reasoning effort tiers (budgets under 8k → low, under 24k → medium, above → high).
This is what makes Claude Code work natively with Morph models: point ANTHROPIC_BASE_URL at https://api.morphllm.com and go.