API Reference
GET/openai/v1/models

List models

Active chat and embedding models visible to your organisation with resolvable pricing. IDs use provider/model_id.

Requires the same TokenSaver key as completion calls. Use returned id values as model in chat and embeddings requests.

bash
curl -sS -H "Authorization: Bearer $TS_KEY" "https://api.tokensaver.fr/openai/v1/models"
python
from openai import OpenAI
c = OpenAI(api_key="ts_...", base_url="https://api.tokensaver.fr/openai/v1")
print(list(m.id for m in c.models.list().data))

Embedding vs chat

The list may include both kinds; for embeddings you must pick a row with model_kind=embedding in the catalogue (see native GET /api/v1/llm-reference/models?model_kind=embedding if you need to filter outside the OpenAI list).