桃源 Catalog API

目录 / Presets and capabilities

GitHub OpenAPI

Operations 2

GET /v1/presets 场景与流派目录(免费,无需鉴权)/ Scenes and genres (free, public) #
GET /v1/capabilities 启用的模型能力表(免费,无需鉴权)/ Enabled model profiles (free, public) #

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-catalog-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-catalog-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Taoyuan Music Catalog 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:
- name: Catalog
  description: 目录 / Presets and capabilities
paths:
  /v1/presets:
    get:
      operationId: list_presets
      tags:
      - Catalog
      summary: 场景与流派目录(免费,无需鉴权)/ Scenes and genres (free, public)
      security: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PresetsResponse'
      x-credit-cost: 0
      x-mcp-tool: list_presets
  /v1/capabilities:
    get:
      operationId: get_capabilities
      tags:
      - Catalog
      summary: 启用的模型能力表(免费,无需鉴权)/ Enabled model profiles (free, public)
      security: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapabilitiesResponse'
      x-credit-cost: 0
components:
  schemas:
    PresetsResponse:
      type: object
      properties:
        success:
          type: boolean
          const: true
        scenes:
          type: array
          items:
            $ref: '#/components/schemas/Preset'
        genres:
          type: array
          items:
            $ref: '#/components/schemas/Preset'
      required:
      - success
      - scenes
      - genres
    CapabilityProfile:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
        model:
          type: string
        mode:
          type: string
        enabledForProduction:
          type: boolean
        limits:
          type: object
          properties:
            style:
              type: integer
            prompt:
              type: integer
            title:
              type: integer
        duration:
          type: object
          properties:
            supported:
              type: boolean
            min:
              type: integer
            max:
              type: integer
        supports:
          type: object
          additionalProperties:
            type: boolean
        verifiedAt:
          type: string
        verification:
          type: string
      required:
      - id
      - provider
      - model
    CapabilitiesResponse:
      type: object
      properties:
        success:
          type: boolean
          const: true
        defaultProfile:
          type: string
        profiles:
          type: array
          items:
            $ref: '#/components/schemas/CapabilityProfile'
      required:
      - success
      - defaultProfile
      - profiles
    Preset:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        aliases:
          type: array
          items:
            type: string
        defaultKind:
          type:
          - string
          - 'null'
          enum:
          - song
          - instrumental
        defaultDuration:
          type:
          - number
          - 'null'
      required:
      - id
      - title
      - aliases
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: ty_live_…
      description: '开发者 API Key,以 `ty_live_` 开头,在 https://www.musicsforyou.com/developers 创建。请求头 `Authorization: Bearer ty_live_…`。


        API keys start with `ty_live_`; create one at https://www.musicsforyou.com/developers. Send as `Authorization: Bearer ty_live_…`.'
    OAuth2:
      type: oauth2
      description: 给 ChatGPT / claude.ai 等连接器用的授权码流程 / Authorization-code flow for connector platforms.
      flows:
        authorizationCode:
          authorizationUrl: https://www.musicsforyou.com/oauth/authorize
          tokenUrl: https://api.musicsforyou.com/oauth/token
          scopes:
            music: 编译、生成、查询作品与额度 / Compile, generate, read tracks and credits
x-taoyuan:
  mcp:
    url: https://api.musicsforyou.com/mcp
    transport: streamable-http
    auth: 'Authorization: Bearer ty_live_…'
  llmsTxt: https://www.musicsforyou.com/llms.txt
  developers: https://www.musicsforyou.com/developers
  openapi:
    v31: https://api.musicsforyou.com/openapi.json
    v30: https://api.musicsforyou.com/openapi-coze.json
  credits:
    generate_music: 1
    create_song: 1
    replace_section: 1
    compile_music_prompt: 0
    revise_generation_prompt: 0
    get_generation: 0
    list_tracks: 0
    list_presets: 0
    get_credit_balance: 0
    separate_stems: 2-track free once per song for non-members, unlimited for members; 12-stem Pro only; no credits
  rateLimits:
    generate: 5 / minute / IP
    compile: 30 / hour / account; guests 5 / day / IP
  packs:
  - id: api-100
    currency: CNY
    price: 300
    credits: 100
  - id: api-10-usd
    currency: USD
    price: 9.9
    credits: 10
  - id: api-50-usd
    currency: USD
    price: 39
    credits: 50
  agentNotes:
  - Show the user the compiled title, lyrics and style before spending a credit.
  - Poll get_generation every 5–10 s; a song usually takes 1–3 minutes. Or use POST /v1/songs with waitSeconds.
  - Always pass idempotencyKey when retrying generate_music.
  - Songs made through the API may be used commercially by the key owner.