LLM API

OpenAI-compatible endpoints that serve the models of a project. List models, create chat completions and responses, and answer typed questions.

The LLM API serves the models of a project over HTTP. Its endpoints are compatible with OpenAI's API.

The endpoints are at https://data.spiceai.io. Authorize each request with a Project API key in the X-API-Key header.

EndpointUseReference
GET /v1/modelsList the models of the project.Models
POST /v1/chat/completionsCreate a model response for a chat conversation.Chat Completions
POST /v1/responsesCreate a model response with OpenAI's Responses API format.Responses
POST /v1/decisionsAnswer typed questions about an input, with probabilities.Decisions

Chat completions, responses, and decisions need a model that is configured and deployed in the project.