Choose how to serve
General inference
Send your first API request.
Dedicated endpoints
Create, monitor, and cancel reserved capacity.
API formats
General inference API:https://api.morphllm.com. One key, two formats:
SDK examples use tabs. Anthropic Messages supports the same open source chat models, token billing, and rate limits. Fast Apply, WarpGrep, and Compact use OpenAI format only.
Authenticate with
Authorization: Bearer YOUR_API_KEY or x-api-key: YOUR_API_KEY.
- Anthropic SDK (Python)
- Anthropic SDK (TypeScript)
- cURL
tool_use / tool_result), system prompts, and conversation history work unchanged. Reasoning returns thinking blocks; requested thinking budgets map to effort tiers: under 8k → low, under 24k → medium, above → high.