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

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

model = client.models.retrieve("llama3.1-8b")

print(model)
{
  "id": "llama3.1-8b",
  "object": "model",
  "created": 1721692800,
  "owned_by": "Meta"
}
Fetches a model instance, offering key details about the model, including its owner and permissions.

Path Parameters

model_id
string
required
The ID of the model to retrieve.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)

Response

id
string
The model identifier.
object
string
The object type, which is always model.
created
integer
The Unix timestamp (in seconds) of when the model was created.
owned_by
string
The organization that owns the model.
import os
from cerebras.cloud.sdk import Cerebras

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

model = client.models.retrieve("llama3.1-8b")

print(model)
{
  "id": "llama3.1-8b",
  "object": "model",
  "created": 1721692800,
  "owned_by": "Meta"
}