桃源 Generate API

生成与查询 / Generate and poll

GitHub OpenAPI

Operations 4

POST /v1/songs 一步到位:一句话 → 完整歌曲(扣 1 次)/ One-shot: text in, finished song out (1 credit) #
POST /v1/generations 提交生成(扣 1 次)/ Submit a generation (1 credit) #
GET /v1/generations/{id} 查询生成状态(免费)/ Get a generation (free) #
GET /v1/generations/{id}/events SSE 状态流(免费)/ Server-sent events (free) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/musicsforyou-com:musicsforyou-com-generate-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

musicsforyou-com-generate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Taoyuan Music Generate API
  version: 1.0.0
  summary: '桃源:为一个人写一首歌 / Taoyuan: a finished song for one person, in about three minutes.'
  description: '桃源(Taoyuan)音乐生成接口。一句话需求 → 歌词、风格、封面和两版完整歌曲(约 3 分钟)。适合 Agent、脚本和产品集成;同一套接口也以 MCP 形式提供(https://api.musicsforyou.com/mcp)。


    典型流程:`POST /v1/prompts/compile`(免费,看歌词和风格)→ `POST /v1/generations`(扣 1 次)→ 轮询 `GET /v1/generations/{id}` 直到 `finished`。不想分步就用 `POST /v1/songs` 一次完成。


    Taoyuan turns one sentence into a finished song: lyrics, style, cover art and two full candidate tracks in about three minutes. Typical flow: compile (free, preview lyrics and style) → generate (1 credit) → poll until finished. Or call `POST /v1/songs` to do it all in one request.


    **Billing.** Generation and replace-section cost 1 credit each (one credit = one song with two candidates). Compile, revise, lint, get and list are free. Stems: the 2-track vocal/instrumental split is free once per song for non-members and unlimited for members; the 12-stem split is Pro only; neither costs credits. API and MCP calls draw only from prepaid API credits (never the Pro monthly allowance). Failed generations are refunded. New API keys come with 3 free credits.


    **Rate limits.** Generation submissions: 5 per minute per IP. Compile/revise: 30 per hour per account (guests 5 per day per IP). **Errors.** Every failure is `{ success: false, code, error }`; branch on `code`.


    Docs and keys: https://www.musicsforyou.com/developers · Plain-text guide for LLMs: https://www.musicsforyou.com/llms.txt'
  termsOfService: https://www.musicsforyou.com/terms
  contact:
    name: Taoyuan support
    email: 2368082693@qq.com
    url: https://www.musicsforyou.com/developers
servers:
- url: https://api.musicsforyou.com
  description: Production
security:
- ApiKeyBearer: []
- OAuth2:
  - music
tags:


# --- truncated at 32 KB (35 KB total) ---
# Full source: https://artifacts.apis.io/musicsforyou-com/openapi/musicsforyou-com-generate-api-openapi.yml