Models I can choose
const url = 'https://api.asklucy.eu/v1/models';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.asklucy.eu/v1/models \ --header 'Authorization: Bearer <token>'The models the caller may pick for their conversations. can_choose
is false, with no models, when the organization doesn’t let them
choose any: answers then use Auto. requestable are the models the
organization offers to selected people and groups that the caller
doesn’t have: they can ask for them (POST /me/requests).
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
object
Cheapest tier first.
object
Reads images.
Uses tools (the sandbox, memory, files on your computer).
How long a conversation it can read at once, in tokens.
How fast it uses your limits, from 1 (slowest) to 3.
Models the organization offers to selected people and groups that you don’t have; you can ask for them. Cheapest tier first.
object
Reads images.
Uses tools (the sandbox, memory, files on your computer).
How long a conversation it can read at once, in tokens.
How fast it uses your limits, from 1 (slowest) to 3.
Example
{ "models": [ { "id": "mistral-large-4-0", "label": "Mistral Large", "description": "Most capable" } ], "requestable": [ { "id": "mistral-large-4-0", "label": "Mistral Large", "description": "Most capable", "request": { "status": "pending" } } ]}Missing, expired or invalid token.
RFC 9457 problem details.
object
For quota-exceeded, the window that is used up.
object
Null for a rolling window that hasn’t started.
organization when the organization’s budget is closer to running out than the member’s own limit.
Field-level problems (400 only).
object
JSON pointer into the request body.
Example
{ "type": "https://docs.asklucy.eu/errors/answer-in-progress", "quota": { "window": "five_hours", "limited_by": "personal", "request": { "status": "pending" } }}Headers
Section titled “Headers”Unique per request; quote it to support.
The token is valid but lacks the role this needs.
RFC 9457 problem details.
object
For quota-exceeded, the window that is used up.
object
Null for a rolling window that hasn’t started.
organization when the organization’s budget is closer to running out than the member’s own limit.
Field-level problems (400 only).
object
JSON pointer into the request body.
Example
{ "type": "https://docs.asklucy.eu/errors/answer-in-progress", "quota": { "window": "five_hours", "limited_by": "personal", "request": { "status": "pending" } }}Headers
Section titled “Headers”Unique per request; quote it to support.