List Models
curl --request GET \
--url https://modelslab.com/api/v7/llm/v1/models \
--header 'x-api-key: <api-key>'{
"data": [
{
"id": "<string>",
"created": 123,
"owned_by": "<string>"
}
]
}LLM API
List Models
Retrieve the list of all available LLM models and their capabilities.
GET
/
v1
/
models
List Models
curl --request GET \
--url https://modelslab.com/api/v7/llm/v1/models \
--header 'x-api-key: <api-key>'{
"data": [
{
"id": "<string>",
"created": 123,
"owned_by": "<string>"
}
]
}Request
GET https://modelslab.com/api/v7/llm/v1/models
curl https://modelslab.com/api/v7/llm/v1/models \
-H "x-api-key: $MODELSLAB_API_KEY"
Response
{
"object": "list",
"data": [
{
"id": "Qwen/Qwen2.5-VL-72B-Instruct-together",
"object": "model",
"created": 1712345678,
"owned_by": "Qwen"
},
{
"id": "meta-llama/Llama-3.1-70B-Instruct",
"object": "model",
"created": 1712345678,
"owned_by": "Meta"
}
]
}
Usage with SDKs
- OpenAI SDK
- Anthropic SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_MODELSLAB_API_KEY",
base_url="https://modelslab.com/api/v7/llm",
)
models = client.models.list()
for model in models.data:
print(model.id)
import requests
response = requests.get(
"https://modelslab.com/api/v7/llm/v1/models",
headers={"x-api-key": "YOUR_MODELSLAB_API_KEY"},
)
models = response.json()
for model in models["data"]:
print(model["id"])
You can also browse all available models with details and playground access at modelslab.com/models/category/llmaster.
Was this page helpful?
⌘I

