⚡ NEW: Flux Klein 9B — Faster inference, stunning quality · Try Now
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>"
}
]
}Retrieve the list of all available LLM models and their capabilities.
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>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
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"
{
"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"
}
]
}
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"])
Was this page helpful?