Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

18.0 KB
Raw Blame
{
  "components": {
    "schemas": {
      "File": {
        "properties": {
          "content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The mime type of the file.",
            "examples": [
              "image/png"
            ],
            "title": "Content Type"
          },
          "file_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name of the file. It will be auto-generated if not provided.",
            "examples": [
              "z9RV14K95DvU.png"
            ],
            "title": "File Name"
          },
          "file_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The size of the file in bytes.",
            "examples": [
              4404019
            ],
            "title": "File Size"
          },
          "url": {
            "description": "The URL where the file can be downloaded from.",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "title": "File",
        "type": "object",
        "x-fal-order-properties": [
          "url",
          "content_type",
          "file_name",
          "file_size"
        ]
      },
      "MusicAudioReference": {
        "description": "An audio clip whose style conditions a ``music_v2`` / ``music_v2.5`` chunk.\n\nElevenLabs conditions on a *song id*, which only exists after the clip has\nbeen uploaded to them, so the app uploads on the caller's behalf and caches\nthe resulting id (see ``ElevenLabsTTS._resolve_audio_reference``).",
        "properties": {
          "audio_url": {
            "description": "URL of the audio clip to use as the style reference.",
            "examples": [
              "https://storage.googleapis.com/falserverless/example_outputs/elevenlabs/music_generated.mp3"
            ],
            "title": "Audio Url",
            "type": "string"
          },
          "end_ms": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Offset into the clip where the referenced window ends, in milliseconds. Defaults to 30000ms after start_ms, or the end of the clip if it is shorter. The window must be at most 30000ms long.",
            "title": "End Ms"
          },
          "start_ms": {
            "default": 0,
            "description": "Offset into the clip where the referenced window starts, in milliseconds.",
            "minimum": 0,
            "title": "Start Ms",
            "type": "integer"
          },
          "strength": {
            "anyOf": [
              {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "xhigh"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How strongly the model follows the reference. Low lets it deviate and be more creative, high keeps it close to the reference.",
            "title": "Strength"
          }
        },
        "required": [
          "audio_url"
        ],
        "title": "MusicAudioReference",
        "type": "object",
        "x-fal-order-properties": [
          "audio_url",
          "start_ms",
          "end_ms",
          "strength"
        ]
      },
      "MusicGenerationChunk": {
        "description": "One generation chunk of a ``music_v2`` / ``music_v2.5`` composition plan.\n\nThe v2 models replaced v1's ``sections`` (``MusicPrompt``) with ``chunks``\n(``CompositionPlan``); the two shapes are not interchangeable -- sending a\nv1 section plan to a v2 model (or vice versa) is rejected by ElevenLabs.",
        "properties": {
          "audio_reference": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MusicAudioReference"
              },
              {
                "type": "null"
              }
            ],
            "description": "An audio clip whose style conditions this chunk. The reference on the first chunk matters most: it influences every later chunk, so condition from the first chunk to style the whole song."
          },
          "context_adherence": {
            "anyOf": [
              {
                "enum": [
                  "low",
                  "medium",
                  "high"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How closely this chunk follows the context of its surrounding chunks. Low adherence lets the model deviate and be more creative, high adherence keeps it consistent with the surrounding context.",
            "title": "Context Adherence"
          },
          "duration_ms": {
            "description": "The duration of the chunk in milliseconds. Must be between 3000ms and 120000ms.",
            "maximum": 120000,
            "minimum": 3000,
            "title": "Duration Ms",
            "type": "integer"
          },
          "negative_styles": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The styles and musical directions that should not be present in this chunk. Leaving this empty is a good default; only set it to explicitly avoid a particular style or direction.",
            "title": "Negative Styles"
          },
          "positive_styles": {
            "description": "The styles and musical directions that should be present in this chunk. Use English for best results. The styles of the first chunk matter most as they set the overall tone and genre; later chunks can add nuance, progression or change direction.",
            "examples": [
              [
                "synthwave",
                "analog drum machine",
                "great production quality"
              ]
            ],
            "items": {
              "type": "string"
            },
            "title": "Positive Styles",
            "type": "array"
          },
          "text": {
            "description": "The text to generate for this chunk. Can start with an optional section name in square brackets, e.g. [Verse 1], followed by lyric lines, plus inline directions in curly braces, e.g. {scratching}. Section names must be between 1 and 100 characters. At most 30 lines are allowed, each at most 200 characters.",
            "examples": [
              "[Verse 1]\nNeon rain on empty streets\nI keep walking to the beat"
            ],
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "text",
          "duration_ms",
          "positive_styles"
        ],
        "title": "MusicGenerationChunk",
        "type": "object",
        "x-fal-order-properties": [
          "text",
          "duration_ms",
          "positive_styles",
          "negative_styles",
          "context_adherence",
          "audio_reference"
        ]
      },
      "MusicV25Input": {
        "description": "Request format for the ElevenLabs Music v2 / v2.5 API.",
        "properties": {
          "composition_plan": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MusicV2CompositionPlan"
              },
              {
                "type": "null"
              }
            ],
            "description": "The chunk-based composition plan for the music"
          },
          "force_instrumental": {
            "default": false,
            "description": "If true, guarantees that the generated song will be instrumental. If false, the song may or may not be instrumental depending on the prompt. Can only be used with prompt.",
            "title": "Force Instrumental",
            "type": "boolean"
          },
          "music_length_ms": {
            "anyOf": [
              {
                "maximum": 600000,
                "minimum": 3000,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The length of the song to generate in milliseconds. Used only in conjunction with prompt. Must be between 3000ms and 600000ms. Optional - if not provided, the model will choose a length based on the prompt.",
            "title": "Music Length Ms"
          },
          "output_format": {
            "default": "mp3_48000_192",
            "description": "Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.",
            "enum": [
              "mp3_22050_32",
              "mp3_24000_48",
              "mp3_44100_32",
              "mp3_44100_64",
              "mp3_44100_96",
              "mp3_44100_128",
              "mp3_44100_192",
              "mp3_48000_128",
              "mp3_48000_192",
              "mp3_48000_240",
              "mp3_48000_320",
              "pcm_8000",
              "pcm_16000",
              "pcm_22050",
              "pcm_24000",
              "pcm_32000",
              "pcm_44100",
              "pcm_48000",
              "ulaw_8000",
              "alaw_8000",
              "opus_48000_32",
              "opus_48000_64",
              "opus_48000_96",
              "opus_48000_128",
              "opus_48000_192"
            ],
            "title": "Output Format",
            "type": "string"
          },
          "prompt": {
            "anyOf": [
              {
                "maxLength": 4100,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The text prompt describing the music to generate",
            "examples": [
              "Mysterious original soundtrack, themes of jungle, rainforest, nature, woodwinds, busy rhythmic tribal percussion."
            ],
            "title": "Prompt"
          },
          "seed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Random seed to initialize the music generation process. Can only be used with composition_plan. The same seed with the same parameters gives more consistent results, but exact reproducibility is not guaranteed.",
            "title": "Seed"
          }
        },
        "title": "MusicV2Request",
        "type": "object",
        "x-fal-order-properties": [
          "prompt",
          "composition_plan",
          "music_length_ms",
          "force_instrumental",
          "seed",
          "output_format"
        ]
      },
      "MusicV25Output": {
        "properties": {
          "audio": {
            "$ref": "#/components/schemas/File",
            "description": "The generated music audio file in MP3 format",
            "examples": [
              {
                "content_type": "audio/mpeg",
                "file_name": "music_generated.mp3",
                "url": "https://storage.googleapis.com/falserverless/example_outputs/elevenlabs/music_generated.mp3"
              }
            ]
          }
        },
        "required": [
          "audio"
        ],
        "title": "MusicOutput",
        "type": "object",
        "x-fal-order-properties": [
          "audio"
        ]
      },
      "MusicV2CompositionPlan": {
        "properties": {
          "chunks": {
            "description": "The chunks that make up the generation, in order. At most 30 chunks, totalling between 3000ms and 600000ms.",
            "items": {
              "$ref": "#/components/schemas/MusicGenerationChunk"
            },
            "maxItems": 30,
            "minItems": 1,
            "title": "Chunks",
            "type": "array"
          }
        },
        "required": [
          "chunks"
        ],
        "title": "MusicV2CompositionPlan",
        "type": "object",
        "x-fal-order-properties": [
          "chunks"
        ]
      },
      "QueueStatus": {
        "properties": {
          "cancel_url": {
            "description": "The cancel url.",
            "type": "string"
          },
          "logs": {
            "additionalProperties": true,
            "description": "The logs.",
            "type": "object"
          },
          "metrics": {
            "additionalProperties": true,
            "description": "The metrics.",
            "type": "object"
          },
          "queue_position": {
            "description": "The queue position.",
            "type": "integer"
          },
          "request_id": {
            "description": "The request id.",
            "type": "string"
          },
          "response_url": {
            "description": "The response url.",
            "type": "string"
          },
          "status": {
            "enum": [
              "IN_QUEUE",
              "IN_PROGRESS",
              "COMPLETED"
            ],
            "type": "string"
          },
          "status_url": {
            "description": "The status url.",
            "type": "string"
          }
        },
        "required": [
          "status",
          "request_id"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "description": "Fal Key",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "The OpenAPI schema for the elevenlabs/music/v2.5 queue.",
    "title": "Queue OpenAPI for elevenlabs/music/v2.5",
    "version": "1.0.0",
    "x-fal-metadata": {
      "about": "ElevenLabs Music v2.5.\n\nGenerates a song from a text prompt or a chunk-based composition plan\nwith the ``music_v2_5`` model -- ElevenLabs' most capable music model,\nbuilding on v2 with improved audio quality and prompt adherence.",
      "category": "text-to-audio",
      "documentationUrl": "https://fal.ai/models/elevenlabs/music/v2.5/api",
      "endpointId": "elevenlabs/music/v2.5",
      "playgroundUrl": "https://fal.ai/models/elevenlabs/music/v2.5",
      "thumbnailUrl": "https://v3b.fal.media/files/b/0aaa6adb/-Z3Ays503mRIC-atq70g8.jpg"
    }
  },
  "openapi": "3.1.0",
  "paths": {
    "/elevenlabs/music/v2.5": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MusicV25Input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueStatus"
                }
              }
            },
            "description": "The request status."
          }
        }
      }
    },
    "/elevenlabs/music/v2.5/requests/{request_id}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "description": "Request ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MusicV25Output"
                }
              }
            },
            "description": "Result of the request."
          }
        }
      }
    },
    "/elevenlabs/music/v2.5/requests/{request_id}/cancel": {
      "put": {
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "description": "Request ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "success": {
                      "description": "Whether the request was cancelled successfully.",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "The request was cancelled."
          }
        }
      }
    },
    "/elevenlabs/music/v2.5/requests/{request_id}/status": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "description": "Request ID",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "logs",
            "required": false,
            "schema": {
              "description": "Whether to include logs (`1`) in the response or not (`0`).",
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueStatus"
                }
              }
            },
            "description": "The request status."
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://queue.fal.run"
    }
  ]
}