Generate

查询生成状态(免费)/ Get a generation (free)

带 waitSeconds(最多 60)时为长轮询:到达终态或超时后返回。公开作品无需鉴权;自己的作品带 Key 查看。

Pass waitSeconds (max 60) to long-poll: returns as soon as the job finishes or the wait elapses. Public songs need no auth; your own need the key.

get/v1/generations/{id}

Request

  • Base URL: https://api.musicsforyou.com
  • URL: https://api.musicsforyou.com/v1/generations/{id}
  • 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

Path parameters

idstring required

generation id

Query parameters

waitSecondsinteger

长轮询等待秒数 / Long-poll wait, seconds

Response

OK

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.