Get Model

get/v1/models/{model_id}

Path parameters

model_idstring required

Query parameters

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

Output format for public models endpoint.

Output format: 'default' (OpenAI-compatible), 'openrouter', or 'huggingface'

Headers

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

Response

Successful Response

OR
OR
OR

Example response

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

Changes

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

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

      response-body-type-changed

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

      response-required-property-removed

    • removed the optional property created 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 owned_by from the response with the 200 status

      response-optional-property-removed

    • added the new optional query request parameter format

      new-optional-request-parameter

    • added ModelMetadata OpenRouterModel HuggingFaceModel PublicModel 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.