Compose

修改:对 spec 应用一句指令(免费)/ Apply a one-line change to a spec (free)

返回新的 spec(revision + 1,parentSpecId 指向旧的)。Returns a new spec with revision + 1.

post/v1/prompts/revise

Request

  • Base URL: https://api.musicsforyou.com
  • URL: https://api.musicsforyou.com/v1/prompts/revise
  • 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)
    • none

Request body

instructionstring required

一句修改指令 / One-sentence change request

Example request

{
  "spec": {
    "composition": {
      "sections": [
        {
          "label": "Verse 1"
        }
      ]
    }
  },
  "instruction": "副歌更有力"
}

Response

OK

successtrue required

Example response

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

Changes

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