List models
List the models available through the Meta Model API.
GET /models
List the available models.
Parameters
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
client | string | No | Optional client-specific model catalog view. |
Response
HTTP 200 — OK
Content Type: application/json
pythonimport osfrom openai import OpenAIclient = OpenAI(base_url="https://api.meta.ai/v1",api_key=os.environ["MODEL_API_KEY"],)response = client.models.list()print(response.model_dump_json(indent=2))
pythonimport jsonimport osimport requestsresponse = requests.get("https://api.meta.ai/v1/models",headers={"Authorization": f"Bearer {os.environ['MODEL_API_KEY']}"},)response.raise_for_status()print(json.dumps(response.json(), indent=2))
shellcurl -X GET "https://api.meta.ai/v1/models" \-H "Authorization: Bearer $MODEL_API_KEY"
For a catalog of available models, capabilities, and context windows, see the Models page.