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

# 音乐翻唱

> 对源音乐进行 Cover 编辑，生成新的音乐版本



## OpenAPI

````yaml openapi/cn/flowmuisc.json POST /flowmusic/v1/cover
openapi: 3.1.0
info:
  title: Flowmusic API DOCS
  version: 1.0.0
  description: TTAPI Flowmusic API 接口服务，目前集成了市场上最为领先的音乐大模型。
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /flowmusic/v1/cover:
    post:
      description: 对源音乐进行 Cover 编辑，生成新的音乐版本
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CoverRequest'
      responses:
        '200':
          $ref: '#/components/responses/SuccessResponse'
        '400':
          $ref: '#/components/responses/400Response'
        '401':
          $ref: '#/components/responses/401Response'
      security:
        - CustomApiKey: []
components:
  schemas:
    CoverRequest:
      type: object
      properties:
        clip_id:
          type: string
          description: 源音乐 clip_id。
          example: abc123-def456
        model:
          type: string
          description: 音乐模型名称；为空时默认使用 Lyria 3 Pro。
          default: Lyria 3 Pro
        instruction:
          type: string
          description: Cover 编辑指令。
          example: 将这首歌曲改为爵士风格
        strength:
          type: number
          description: Cover 强度，范围 0 到 1。
          default: 0.5
          minimum: 0
          maximum: 1
        title:
          type: string
          description: Cover 后音乐标题。
        seed:
          type: string
          description: 随机种子；用于复现或控制生成结果。
        hook_url:
          type: string
          description: 任务完成后的业务回调地址；为空时不推送回调。
      required:
        - clip_id
        - instruction
        - strength
      example:
        clip_id: string
        model: string
        instruction: string
        strength: 0
        title: string
        seed: string
        hook_url: string
  responses:
    SuccessResponse:
      description: 请求成功
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: SUCCESS
              message:
                type: string
                example: success
              data:
                type: object
                example:
                  jobId: jobId
            required:
              - status
              - message
              - data
    400Response:
      description: 参数错误
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: '"prompt" cannot be empty.'
              data:
                type: object
            required:
              - status
              - message
    401Response:
      description: 授权失败
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: Wrong TT-API-KEY or email is not activated.
            required:
              - status
              - message
  securitySchemes:
    CustomApiKey:
      type: apiKey
      in: header
      name: TT-API-KEY
      description: >-
        请前往 <a href='https://dashboard.ttapi.io' target='_blank'>TTAPI 控制台</a>
        获取 API 密钥。

````