Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://ai.liara.ir/api/{workspaceID}/v1/models \ --header 'Authorization: <api-key>'
{ "data": [ { "id": "<string>", "name": "<string>", "description": "<string>", "context_length": 123, "architecture": { "input_modalities": [ "<string>" ], "output_modalities": [ "<string>" ] }, "pricing": { "prompt": "<string>", "completion": "<string>" }, "top_provider": { "context_length": 123, "max_completion_tokens": 123 }, "supported_parameters": [ "<string>" ] } ] }
Lists all AI models available for inference in an OpenAI-compatible format.
Enter the API key with the Bearer: prefix, e.g. "Bearer "
Bearer:
The workspace ID
^[a-f0-9]{24}$
List of models
list
Show child attributes