Base URL and authentication
Authorization: Bearer YOUR_API_KEY. Create a key
in the dashboard. See
Authentication.
OpenAPI spec
The spec behind this reference is public, in OpenAPI 3.1 (YAML):/inference/models, are relative to
https://docs.primalabs.ai. Use it to:
- Import the API into Postman or Insomnia. In Postman, choose Import and paste the URL. In Insomnia, choose Import and import from the URL.
-
Generate a client with a tool such as
openapi-generator. For chat, you don’t need one: the OpenAI SDKs work unmodified (see the Quickstart). -
Download it:
/messages and /responses take
the Anthropic and OpenAI Responses formats as-is, so their pages show a working example
rather than the full upstream schema.
The Try it playground
Paste your API key into the playground, edit the example request, and press Send. Your browser sends the request directly toapi.primalabs.ai; it doesn’t go through
a third-party proxy.