声曲分离 (v1 版本)
接口:POST /suno/generate 归属:音频接口/Suno文生歌 调用地址:Base URL https://api.allyang.cn(OpenAI 兼容前缀 https://api.allyang.cn/v1)+ 上述路径 鉴权:请求头 Authorization: Bearer <你的令牌>;令牌在控制台「令牌管理」创建 说明:下方为本接口契约。路径、字段名与枚举取值与线上接口一致;叙述文字已按本平台口径重写。价格、并发与限流等数值以控制台及实际返回为准,未确认处标注「待补」。
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/suno/generate:
post:
summary: 声曲分离 (v1 版本)
description: "把已生成的音乐做声曲分离,拆出人声与伴奏两条音轨。"
tags:
- 音频接口/Suno文生歌
parameters:
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
default: Bearer {{YOUR_API_KEY}}
requestBody:
content:
application/json:
schema:
type: object
properties:
task:
type: string
description: "任务类型,固定值 gen_stem。"
enum:
- gen_stem
generation_type:
type: string
description: "生成类型,固定值 TEXT。"
enum:
- TEXT
title:
type: string
description: "音乐标题。"
mv:
type: string
description: "模型版本,固定值 chirp-auk。"
enum:
- chirp-auk
prompt:
type: string
description: "提示词,通常为空字符串。"
make_instrumental:
type: boolean
description: "是否输出器乐版本。"
continue_clip_id:
type: string
description: "待分离的原始音乐 clip_id。"
continued_aligned_prompt:
type: 'null'
description: "对齐提示词,通常为 null。"
continue_at:
type: 'null'
description: "续接位置,通常为 null。"
stem_type_id:
type: integer
description: "分离类型 ID,固定值 91。"
stem_type_group_name:
type: string
description: "分离类型组名,固定值 Two。"
enum:
- Two
stem_task:
type: string
description: "分离任务类型,固定值 two。"
enum:
- two
required:
- task
- generation_type
- title
- mv
- continue_clip_id
- stem_type_id
- stem_type_group_name
- stem_task
examples: {}
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
security: []
components:
schemas: {}
securitySchemes: {}
servers: []
security: []