Models

Returns one model, in the same format as the model list.

Returns 404 if the model does not exist or your project cannot use it.

get/api/v1/models/{model}

Request

  • Base URL
    https://api.respan.ai
  • URL
    https://api.respan.ai/api/v1/models/{model}
  • Auth
    • none
    • or HTTP bearer

Path parameters

modelstring required

The model ID, as returned in id. IDs can contain slashes, such as openrouter/openai/gpt-4o.

Response

The model.

idstring required

Model ID. Send it as model in gateway requests.

object'model' required
createdinteger required

Release date as a Unix timestamp, or 0 if unknown.

owned_bystring required

The organization that develops the model.

context_lengthinteger nullable required

Context window in tokens, or null if unknown.

Example response

{
  "id": "gpt-4o-mini",
  "object": "model",
  "created": 1721260800,
  "owned_by": "openai",
  "context_length": 128000,
  "pricing": {
    "input_cost": 0.15,
    "output_cost": 0.6,
    "input_price_unit": "token",
    "output_price_unit": "token"
  }
}

Changes