Public Models

Retrieve a specific model

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}

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

Changed in 1 of the 51 revisions of this API.1162

  • 130749c46caf1162See the full diff
    • the response's body type/format changed from object/ to / for status 200

      response-body-type-changed

    • removed the required property architecture from the response with the 200 status

      response-required-property-removed

    • removed the required property capabilities from the response with the 200 status

      response-required-property-removed

    • removed the required property created from the response with the 200 status

      response-required-property-removed

    • removed the required property description from the response with the 200 status

      response-required-property-removed

    • removed the required property id from the response with the 200 status

      response-required-property-removed

    • removed the required property limits from the response with the 200 status

      response-required-property-removed

    • removed the required property name from the response with the 200 status

      response-required-property-removed

    • removed the required property owned_by from the response with the 200 status

      response-required-property-removed

    • removed the required property pricing from the response with the 200 status

      response-required-property-removed

    • removed the required property supported_parameters from the response with the 200 status

      response-required-property-removed

    • removed the optional property datacenter_locations from the response with the 200 status

      response-optional-property-removed

    • removed the optional property deprecated from the response with the 200 status

      response-optional-property-removed

    • removed the optional property hugging_face_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property object from the response with the 200 status

      response-optional-property-removed

    • removed the optional property preview from the response with the 200 status

      response-optional-property-removed

    • removed the optional property quantization from the response with the 200 status

      response-optional-property-removed

    • added the new optional query request parameter format

      new-optional-request-parameter

    • added PublicModel OpenRouterModel HuggingFaceModel to the response body anyOf list for the response status 200

      response-body-any-of-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

Of the 51 revisions, 49 have no diff computed.