# API reference
URL: https://docs.munito.ai/api

Use the endpoint list to inspect a request, copy an example, or try the API with your own key.
Munito AI supports the OpenAI Chat Completions and Responses APIs, the Anthropic Messages API, document OCR, and a
Linux microVM for each caller.

<Cards>
<Card title="Chat completions" href="/reference/api/createChatCompletion" description="Generate text, call tools, and stream a response." tone="blue" icon="terminal" />

<Card title="Messages" href="/reference/api/createMessage" description="Use the Anthropic-compatible Messages API." tone="violet" icon="book" />

<Card title="Responses" href="/reference/api/createResponse" description="Create responses and retrieve stored results." tone="teal" icon="network" />

<Card title="Document OCR" href="/reference/api/createOcr" description="Extract text and structured content from document pages." tone="gold" icon="file" />

<Card title="Sandboxes" href="/reference/api/createSandbox" description="Run code in a Linux microVM, reach its ports, and open SSH to it." tone="violet" icon="cloud" />

<Card title="Decisions" href="/reference/api/createDecision" description="Answer Noul, Choice and Score questions against one state." tone="blue" icon="bot" />
</Cards>

## Base URL and authentication [#base-url-and-authentication]

```text
https://api.munito.ai/inference/v1
https://api.eu.munito.ai/inference/v1
https://api.us.munito.ai/inference/v1
```

The EU and US hosts keep processing in their region. See [Regions](https://docs.munito.ai/regions).
Send your key in `Authorization: Bearer` or `X-API-Key`.
Create a key with the **Inference** permission in the [console](https://console.munito.ai), or follow the [quickstart](https://docs.munito.ai/quickstart).

The [Admin API](https://docs.munito.ai/administration) at `https://api.munito.ai/admin/v1` reads your organization with a [separate key](https://docs.munito.ai/api/admin-authorization).
An AI assistant reads the same data through the [MCP server](https://docs.munito.ai/mcp).

## Download the API contract [#download-the-api-contract]

Use the [OpenAPI schema](/openapi.json) with your tools.
The [full documentation](/llms-full.txt) combines the guides and API schemas for agents.

# Shared API schemas
{
  "securitySchemes": {
    "BearerAuth": {
      "type": "http",
      "scheme": "bearer",
      "description": "Your Munito API key."
    },
    "ApiKeyAuth": {
      "type": "apiKey",
      "in": "header",
      "name": "x-api-key",
      "description": "Your Munito API key."
    }
  }
}