---
title: "Get Model"
method: GET
path: "/v1/models/{model}"
tags: ["Models"]
---

# Get Model

`GET /v1/models/{model}`

Get a model by name and provide basic information.

## Path parameters

- `model` string, required — The name of the model to get.

## Response `200`

Successful Response

- Model
  - `object` 'model' — Type of the object.
  - `id` string, required — The model identifier, which can be referenced in the API endpoints.
  - `type` 'automatic-speech-recognition' | 'image-text-to-text' | 'image-to-text' | 'text-classification' | 'text-embeddings-inference' | 'text-generation'
  - `aliases` string[] — Aliases of the model. It will be used to identify the model by users.
  - `created` integer, required — Time of creation, as Unix timestamp.
  - `owned_by` string, required — The organization that owns the model.
  - `max_context_length` integer, nullable — Maximum amount of tokens a context could contains. Makes sure it is the same for all models.
  - `costs` ModelCosts
    - `prompt_tokens` number — Cost of a million prompt tokens (decrease user budget)
    - `completion_tokens` number — Cost of a million completion tokens (decrease user budget)

## Other responses

- `401` — Invalid authentication scheme.<br>Invalid API key.
- `403` — Your account has expired. Please contact support to renew your account.
- `404` — Model {name} not found.
- `422` — Validation Error

---

[API](https://skmtc.net/betagouv/apis/opengatellm.md) · [All operations](https://skmtc.net/betagouv/apis/opengatellm/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/betagouv/opengatellm/versions/f2624a610e5a/schema)
