La documentation est disponible en anglais.
Documentation / OpenAI-compatible
List models
GET/openai/v1/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.
curl -sS -H "Authorization: Bearer $TS_KEY" "https://api.tokensaver.fr/openai/v1/models"
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))