Edit

只重做一段(扣 1 次)/ Redo one section (1 credit)

只重做 [startS, endS],其余保持不变。区间 ≥10 秒且 ≤ 原曲一半。返回新的 generation(parentId 指向原作品)。

Regenerates only the given range; the rest stays. Returns a new generation whose parentId is the original.

post/v1/generations/{id}/replace-section

Request

  • Base URL: https://api.musicsforyou.com
  • URL: https://api.musicsforyou.com/v1/generations/{id}/replace-section
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://www.musicsforyou.com/oauth/authorize, token URL https://api.musicsforyou.com/oauth/token, scopes: music)

Path parameters

idstring required

原作品 id / source generation id

Request body

clipIdstring required

要改的候选 / Which clip to edit

startSnumber required

起点(秒)/ Start, seconds

endSnumber required

终点(秒)。区间 ≥10 秒且 ≤ 原曲一半 / End, seconds. Range must be ≥10 s and ≤ half the song

sectionLyricsstring

这一段的新歌词;纯音乐留空 / New lyrics for the section; empty for instrumental

fullLyricsstring nullable

替换后的完整歌词 / Full lyrics after the change

stylestring nullable

Response

已受理 / Accepted

successtrue required

Example response

{
  "generation": {
    "spec": {
      "composition": {
        "sections": [
          {
            "label": "Verse 1"
          }
        ]
      }
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.