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

# API overview

> The OpenAI-compatible API for calling your models' live versions from any language or SDK.

Source: https://docs.heurastudios.com/api/overview/

*Available on Pro and Studio plans.*

The Heura Studios API serves every model's live version in OpenAI's Chat Completions format. Existing OpenAI SDKs and tools work by changing the base URL and the key.

```text
https://app.heurastudios.com/v1
```

| Endpoint | What it does |
| --- | --- |
| [`POST /v1/chat/completions`](https://docs.heurastudios.com/api/chat-completions/) | Send a conversation, get the live version's answer, whole or streamed. |
| [`GET /v1/models`](https://docs.heurastudios.com/api/models/) | List the model a key can call. |

*Diagram: An API call: your app posts to /v1/chat/completions with the model's key; Heura Studios checks the key, plan, limits and credits, sends the question with the model's script, rules and matched context to the live version, and returns the answer in OpenAI's format, streamed or whole.*

*One request: your app sends the conversation; the Studio checks the key and limits, then the live version answers with the model's context.*

## Keys and models

Each model has its own [API key](https://docs.heurastudios.com/api/authentication/), and a key calls only its own model. The `model` field in a request is the model's id (its name and a random ending, like `quarry-3f9a1c2b7d`), shown on its api tab. One key per model means a leaked key exposes one model, and rotating it touches nothing else.

## What's compatible

| Feature | Supported |
| --- | --- |
| Chat Completions request and response format | Yes |
| Streaming (server-sent events), with `stream_options.include_usage` | Yes |
| Roles `system`, `developer`, `user`, `assistant` | Yes (`developer` is read as `system`) |
| Text content, as a string or text parts | Yes |
| Images, audio, tools and function calling | Not yet |
| `temperature`, `max_tokens`, `max_completion_tokens` | Accepted and validated; the model's own settings decide sampling and length |

## Start here

- [Authentication](https://docs.heurastudios.com/api/authentication/): Send the model's key as a bearer token.
- [Create a chat completion](https://docs.heurastudios.com/api/chat-completions/): The request, the response and streaming.
- [Errors and limits](https://docs.heurastudios.com/api/errors-and-limits/): Every status, code and rate limit.
- [API endpoint guide](https://docs.heurastudios.com/ship/api-endpoint/): Using the endpoint from your apps.
