Public Models

Retrieve a specific model

Changed on

Retrieve a specific publicly available model by ID (modelVisibility='PUBLIC' only). Use the format parameter to get responses compatible with OpenRouter or HuggingFace APIs.

get/public/v1/models/{model_id}

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Path parameters

model_idstring required

Query parameters

format'default' | 'openrouter' | 'huggingface'

Output format for public models endpoint.

Output format: 'default' (Cerebras schema), 'openrouter', or 'huggingface'

Headers

X-Amz-Cf-Idstring nullable
CF-RAYstring nullable

Response

Successful Response

OR
OR

Example response

{
  "pricing": {
    "completion": "0.0000001",
    "prompt": "0.0000001"
  }
}

Changes

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the new optional query request parameter format

    • info

      added to the response body anyOf list for the response status