Models

Returns the models available through the Respan gateway, in the OpenAI model list format.

Without an API key, the response lists every public model. With an API key, it lists the models your project can use.

get/api/v1/models

Request

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

Response

The model list.

object'list' required

Example response

{
  "object": "list",
  "data": [
    {
      "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