> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prem.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List available models for standard inference

> Get a list of models available for standard (OpenAI-compatible) inference. The response follows the OpenAI models list shape.

## Zero Data Retention catalog

This endpoint returns the models that your API key can use for [ZDR inference](/zdr/overview). Use `GET /rvenc/models` for the confidential catalog.

The response uses the OpenAI models list format. It has `"object": "list"` and an array in `data`. Each entry has the standard `id`, `object`, `created`, and `owned_by` fields, and Prem adds more fields after them.

```bash theme={"system"}
curl "https://gateway.prem.io/openai/models?type=CHAT" \
  -H "Authorization: Bearer $PREM_API_KEY"
```

An OpenAI SDK reads this endpoint with its standard method:

```python theme={"system"}
for model in client.models.list():
    print(model.id)
```

The `regions` field of each entry shows the ZDR regions that give the model. See [Models & Pricing](/models-and-pricing) for the full field reference.


## OpenAPI

````yaml get /openai/models
openapi: 3.1.0
info:
  title: Prem API
  description: Reference documentation for the Prem API.
  version: 1.0.0
  termsOfService: https://prem.io/terms
  contact:
    name: API Support
    url: https://help.prem.io
    email: support@premai.io
servers:
  - url: https://gateway.prem.io
    description: Production API server
security: []
paths:
  /openai/models:
    get:
      tags:
        - Models
      summary: List available models for standard inference
      description: >-
        Get a list of models available for standard (OpenAI-compatible)
        inference. The response follows the OpenAI models list shape.
      operationId: listOpenAiModels
      parameters:
        - name: type
          in: query
          description: Filter models by type
          required: false
          schema:
            type: string
            enum:
              - CHAT
              - AUDIO_TRANSCRIPTION
              - AUDIO_SPEECH
              - IMAGE
      responses:
        '200':
          $ref: '#/components/responses/listOpenAiModelsResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      security:
        - BearerAuth: []
          ApiKeyAuth: []
components:
  responses:
    '401':
      description: Access token is missing or invalid
      content:
        application/json:
          schema:
            allOf:
              - type: object
                properties:
                  status:
                    type: integer
                    enum:
                      - 400
                      - 401
                      - 403
                      - 404
                      - 429
                      - 502
                      - 503
                    description: Status code of the response
                  data:
                    type:
                      - object
                      - 'null'
                    description: Response data containing the requested object
                  error:
                    type:
                      - string
                      - 'null'
                    examples:
                      - Some error message
                    description: Error message of the response, human readable
                  message:
                    type: 'null'
                  env:
                    type: string
                    enum:
                      - development
                      - production
                    description: API environment
                  log:
                    type:
                      - string
                      - object
                      - 'null'
                    examples:
                      - request_id: req_1234567890
                      - Some pertinent log message
                    description: >-
                      Useful informaiton, not always present, to debug the
                      response
                  validator:
                    type:
                      - object
                      - array
                      - 'null'
                    examples:
                      - email: Invalid email address
                        password: Password is required
                    description: >-
                      Validator response object, each key is the field name and
                      value is the error message
                  support_id:
                    type:
                      - string
                      - 'null'
                    format: uuid
                    examples:
                      - support_uuidv7-something-else
                    description: >-
                      Support ID linked to the response, used to identify it
                      when talking with our team
                required:
                  - status
                  - error
                  - message
                  - env
                  - log
                  - support_id
                additionalProperties: false
              - properties:
                  status:
                    type: integer
                    enum:
                      - 401
    '403':
      description: You do not have the required permissions to access this resource
      content:
        application/json:
          schema:
            allOf:
              - type: object
                properties:
                  status:
                    type: integer
                    enum:
                      - 400
                      - 401
                      - 403
                      - 404
                      - 429
                      - 502
                      - 503
                    description: Status code of the response
                  data:
                    type:
                      - object
                      - 'null'
                    description: Response data containing the requested object
                  error:
                    type:
                      - string
                      - 'null'
                    examples:
                      - Some error message
                    description: Error message of the response, human readable
                  message:
                    type: 'null'
                  env:
                    type: string
                    enum:
                      - development
                      - production
                    description: API environment
                  log:
                    type:
                      - string
                      - object
                      - 'null'
                    examples:
                      - request_id: req_1234567890
                      - Some pertinent log message
                    description: >-
                      Useful informaiton, not always present, to debug the
                      response
                  validator:
                    type:
                      - object
                      - array
                      - 'null'
                    examples:
                      - email: Invalid email address
                        password: Password is required
                    description: >-
                      Validator response object, each key is the field name and
                      value is the error message
                  support_id:
                    type:
                      - string
                      - 'null'
                    format: uuid
                    examples:
                      - support_uuidv7-something-else
                    description: >-
                      Support ID linked to the response, used to identify it
                      when talking with our team
                required:
                  - status
                  - error
                  - message
                  - env
                  - log
                  - support_id
                additionalProperties: false
              - properties:
                  status:
                    type: integer
                    enum:
                      - 403
    listOpenAiModelsResponse:
      description: Models list retrieved successfully
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/listOpenAiModelsResponse'
  schemas:
    listOpenAiModelsResponse:
      type: object
      description: >-
        OpenAI-compatible model list. Prem-specific fields are additional
        properties that OpenAI clients ignore.
      properties:
        object:
          type: string
          const: list
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                description: The model ID to send in a chat request.
              object:
                type: string
                const: model
              created:
                type:
                  - integer
                  - 'null'
                description: Unix timestamp of the moment the model was added.
              owned_by:
                type:
                  - string
                  - 'null'
                description: The owner of the model.
              model:
                type: string
              name:
                type: string
              description:
                type: string
              type:
                type: string
              input_modalities:
                type: array
                items:
                  type: string
              price_config:
                type: object
              regions:
                type: array
                description: >-
                  Region codes the model can be served from for standard
                  (OpenAI-compatible) inference.
                items:
                  type: string
              requires_auth:
                type:
                  - integer
                  - 'null'
              usage_mode:
                type: string
              visible_in_dashboard:
                type:
                  - integer
                  - 'null'
              likes_count:
                type:
                  - integer
                  - 'null'
              dislikes_count:
                type:
                  - integer
                  - 'null'
              total_reviews:
                type:
                  - integer
                  - 'null'
              rating_percent:
                type:
                  - number
                  - 'null'
            required:
              - id
              - object
            additionalProperties: true
      required:
        - object
        - data
      examples:
        - object: list
          data:
            - id: 1
              object: model
              created: 1773220462
              owned_by: prem
              model: kimi-k3
              name: Kimi K3
              description: A long-context chat model.
              type: CHAT
              input_modalities:
                - text
              price_config:
                standard:
                  eu:
                    prompt_price_per_k: 1
                    completion_price_per_k: 4
                    reasoning_price_per_k: 2
                    audio_price_per_min: 0
              regions:
                - eu
              requires_auth: 1
              usage_mode: API
              visible_in_dashboard: 1
              likes_count: 0
              dislikes_count: 0
              total_reviews: 0
              rating_percent: 0
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Send your access token as header Authorization: Bearer {accessToken}'
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Your API key that starts with sk_live or sk_test. You can create yours
        at go.prem.io/api-keys.

````