Skip to main content
GET
/
v1
/
models
/
{model_id}
import os
from cerebras.cloud.sdk import Cerebras

client = Cerebras(api_key=os.environ.get("CEREBRAS_API_KEY"),)

client.models.list()
client.models.retrieve("llama3.1-8b")
{
  "object": "list",
  "data": [
    {
      "id": "llama3.1-8b",
      "object": "model",
      "created": 1721692800,
      "owned_by": "Meta"
    },
    {
      "id": "llama-3.3-70b",
      "object": "model",
      "created": 1733443200,
      "owned_by": "Meta"
    }
  ]
}

Path Parameters

model_id
string
(Optional) Use this parameter to retrieve key details about a specific model.

List All Models

GET https://api.cerebras.ai/v1/models Lists all currently available models when called without the model_id parameter and provides essential details about each, including the owner and availability.

Retrieve a Model

GET https://api.cerebras.ai/v1/models/{model_id} Fetches a model instance, offering key details about the model, including its owner and permissions. Accepts model IDs as arguments. Available options:
  • llama3.1-8b
  • llama-3.3-70b
  • qwen-3-32b
  • qwen-3-235b-a22b-instruct-2507 (preview)
  • gpt-oss-120b
  • zai-glm-4.6 (preview)
import os
from cerebras.cloud.sdk import Cerebras

client = Cerebras(api_key=os.environ.get("CEREBRAS_API_KEY"),)

client.models.list()
client.models.retrieve("llama3.1-8b")
{
  "object": "list",
  "data": [
    {
      "id": "llama3.1-8b",
      "object": "model",
      "created": 1721692800,
      "owned_by": "Meta"
    },
    {
      "id": "llama-3.3-70b",
      "object": "model",
      "created": 1733443200,
      "owned_by": "Meta"
    }
  ]
}