Skip to main content
Valkyrie serves models through an OpenAI-compatible API, so you can use the official OpenAI SDKs or any tool that speaks that protocol, just point it at your deployment’s base URL and use a Valkyrie API key.

Endpoint

Or, using an alias:

Authentication

Send your API key in the X-API-Key header. The OpenAI SDKs send an Authorization: Bearer header, which Valkyrie also accepts, set the SDK’s api_key to your Valkyrie key.

Examples

Streaming

Set "stream": true to receive tokens as server-sent events, exactly as with the OpenAI API. The SDKs expose this through their streaming helpers.
The model field should be your deployment slug (or alias). If a deployment is stopped, calls will fail until it is resumed, see Deploy a model for stop/resume and schedules.

Errors

Valkyrie returns standard HTTP status codes. See Errors for the common cases and how to handle them.