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

# List models

> Every model you can call, with the JSON Schema of its `input` and its prices. Needs no API key; rate limited per IP address.



## OpenAPI

````yaml /openapi.json get /models
openapi: 3.1.0
info:
  title: Codzen API
  version: 1.0.0
  description: >-
    Generate video and images with every Codzen model through one asynchronous
    API.
servers:
  - url: https://codzen.ai/api/v1
security:
  - apiKey: []
paths:
  /models:
    get:
      summary: List models
      description: >-
        Every model you can call, with the JSON Schema of its `input` and its
        prices. Needs no API key; rate limited per IP address.
      operationId: listModels
      responses:
        '200':
          description: Every model.
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelList'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security: []
components:
  headers:
    RequestId:
      description: ID of the request; quote it when contacting support.
      schema:
        type: string
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 0
  schemas:
    ModelList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
      required:
        - data
      additionalProperties: false
      description: Every model you can call.
    Model:
      type: object
      properties:
        slug:
          type: string
          description: The `model` to submit.
        output_type:
          type: string
          enum:
            - video
            - image
            - audio
            - 3d
          description: Kind of media it generates.
        input:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
          description: JSON Schema (draft 2020-12) of the model's `input`.
        prices:
          type: array
          items:
            type: object
            properties:
              unit:
                type: string
                description: Billing unit, such as `output_second`.
              unit_price:
                type: string
                pattern: ^-?\d+(\.\d+)?$
                description: Price of one unit, in USD.
              conditions:
                type: object
                propertyNames:
                  type: string
                additionalProperties:
                  type:
                    - string
                    - boolean
                description: >-
                  Input values this price applies to, such as `{ "resolution":
                  "1080p" }`; `{}` always applies.
            required:
              - unit
              - unit_price
              - conditions
            additionalProperties: false
            description: One price of the model.
          description: Current prices of the model.
      required:
        - slug
        - output_type
        - input
        - prices
      additionalProperties: false
      description: One model you can call.
    HttpError:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
        request_id:
          type: string
          description: ID of the request, also in the `x-request-id` header.
      required:
        - error
        - request_id
      additionalProperties: false
      description: Body of every error response.
    Error:
      type: object
      properties:
        type:
          type: string
          enum:
            - invalid_request_error
            - authentication_error
            - billing_error
            - permission_error
            - not_found_error
            - rate_limit_error
            - upstream_error
            - api_error
          description: Broad category of the error.
        code:
          type: string
          enum:
            - invalid_request
            - content_rejected
            - invalid_api_key
            - insufficient_balance
            - api_key_disabled
            - account_suspended
            - model_not_found
            - generation_not_found
            - rate_limited
            - concurrency_limit
            - model_unavailable
            - upstream_failed
            - timeout
            - internal_error
          description: Stable error code; branch on this, not on `message`.
        message:
          type: string
          description: Human-readable explanation; it may change at any time.
        param:
          description: The request field the error is about, such as `input.seed`.
          type: string
        stage:
          description: >-
            For `content_rejected`: whether the input or the output was
            rejected.
          type: string
          enum:
            - input
            - output
        retryable:
          type: boolean
          description: Whether sending the same request again may succeed.
      required:
        - type
        - code
        - message
        - retryable
      additionalProperties: false
      description: What went wrong.
  responses:
    TooManyRequests:
      description: >-
        Too many requests or concurrent generations (`rate_limit_error`). Retry
        after the `Retry-After` header.
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/HttpError'
    InternalServerError:
      description: Something went wrong on our side (`api_error`). Retry later.
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/HttpError'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        Your API key (`cz_…`), created in the console. Use it only on your
        server.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.