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.
| Endpoint | Use | Reference |
|---|---|---|
GET /v1/models | List the models of the project. | Models |
POST /v1/chat/completions | Create a model response for a chat conversation. | Chat Completions |
POST /v1/responses | Create a model response with OpenAI's Responses API format. | Responses |
POST /v1/decisions | Answer typed questions about an input, with probabilities. | Decisions |
Chat completions, responses, and decisions need a model that is configured and deployed in the project.