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

# List music models

> Lists the music generation models available through the API, with the credits each one charges
per minute of music. Requires a valid `X-API-KEY` header.



## OpenAPI

````yaml GET /music/models
openapi: 3.1.0
info:
  title: Wondercraft Public API
  version: 0.0.1
servers:
  - url: https://api.wondercraft.ai/v1
    description: Base Wondercraft API
security: []
paths:
  /music/models:
    get:
      tags:
        - Music
      summary: List music models
      description: >-
        Lists the music generation models available through the API, with the
        credits each one charges

        per minute of music. Requires a valid `X-API-KEY` header.
      operationId: list_music_models_music_models_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMusicModelsResponse'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ListMusicModelsResponse:
      properties:
        models:
          items:
            $ref: '#/components/schemas/ApiMusicModel'
          type: array
          title: Models
          description: Music models available through the API
      type: object
      required:
        - models
      title: ListMusicModelsResponse
    ApiMusicModel:
      properties:
        id:
          type: string
          title: Id
          description: Model ID to pass as `model_id` when generating
        title:
          type: string
          title: Title
          description: Display name of the model
        description:
          type: string
          title: Description
          description: What the model is good at
        credits_per_minute:
          type: number
          title: Credits Per Minute
          description: Credits charged per minute of generated music
        supports_lyrics:
          type: boolean
          title: Supports Lyrics
          description: Whether the model can sing lyrics described in the prompt
        fixed_duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Fixed Duration Seconds
          description: >-
            Set when the model always renders this length; send no
            `duration_seconds` for it
        is_default:
          type: boolean
          title: Is Default
          description: Whether this model is used when the request sends no `model_id`
      type: object
      required:
        - id
        - title
        - description
        - credits_per_minute
        - supports_lyrics
        - is_default
      title: ApiMusicModel
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY

````

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