Noirdoc documentation

From the first request to error handling: guides, reference and concepts for the Noirdoc gateway.

Noirdoc is a gateway with OpenAI- and Anthropic-compatible endpoints at https://api.noirdoc.de/v1. You authenticate with your organisation’s API key. You don’t need a provider account to use the gateway’s models.

The gateway picks a provider for each model and, on request, inspects inputs with Noirdoc Shield for secrets, personal data and prompt injections before the request reaches the model. Responses to model requests name the provider that answered them in the X-Noirdoc-Provider header.

Develop

Send requests and handle errors

Step-by-step guides with curl, Python and TypeScript, and a reference for every endpoint.

Concepts

Understand what the gateway does

How Noirdoc Shield protects inputs, the gateway selects providers and charges requests to your organisation’s credit.

Endpoints

The gateway accepts requests in the format of the OpenAI and the Anthropic API. What Noirdoc adds or changes at an endpoint is described on its reference page.

EndpointFormatReference
POST /v1/chat/completionsOpenAIChat Completions
POST /v1/responsesOpenAIResponses
POST /v1/messagesAnthropicMessages
POST /v1/embeddingsOpenAIEmbeddings
POST /v1/rerankRerank formatRerank
POST /v1/audio/transcriptions, POST /v1/audio/speechOpenAIAudio
POST /v1/images/generationsOpenAIImages
/v1/filesOpenAI, AnthropicFiles & Skills
/v1/skillsAnthropicFiles & Skills
POST /v1/shield/inspect, /v1/shield/policyNoirdocNoirdoc Shield, Inspected fields
GET /v1/modelsOpenAIModels & pricing
GET /v1/pricesNoirdoc, without a keyModels & pricing
/v1/tagsNoirdoc (Preview)Request tags (Preview)