D

DeepInfra Anthropic-compatible Messages API

REST discovered

Details
URL
https://api.deepinfra.com/anthropic
Docs
https://docs.deepinfra.com/integrations/anthropic
Authentication
DeepInfra API key bearer discovered Get token ↗
Authorization: Bearer <credential> /x-api-key: <credential>

Go to the DeepInfra API keys dashboard and create an API key. Use it as a bearer token in the Authorization header: Authorization: Bearer $DEEPINFRA_TOKEN.

DeepInfra scoped JWT jwt discovered Get key ↗
Authorization: Bearer <credential> /x-api-key: <credential>

First create or use a parent API key from the DeepInfra API keys dashboard. Then create a scoped JWT by calling POST https://api.deepinfra.com/v1/scoped-jwt with your API key in Authorization: Bearer ..., as shown in Authentication. The returned token is prefixed like jwt:... and is then used in the same bearer Authorization header as a normal API key.