> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prisminference.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAPI specification

> Download the machine-readable contract for Prism inference.

The Prism V0 inference API is described by an OpenAPI 3.1 document:

* [Download `openapi.yaml`](/openapi.yaml)
* Base URL: `https://api.prisminference.com`
* Authentication: `Authorization: Bearer` or `x-api-key`

Use the specification with API explorers, contract validators, and SDK
generators. It includes:

* `POST /v1/chat/completions`
* `GET /v1/models`
* `GET /v1/models/{model}`
* `POST /v1/messages`
* `POST /v1/messages/count_tokens`

The contract models the shared fields used by Prism. OpenAI and Anthropic SDKs
may expose additional compatible fields as their upstream formats evolve.
