音频、超分与擦除

30 秒跑通语音合成(TTS/克隆)、音乐生成、音频分轨、视频配音与多语种翻译、语音识别(ASR),以及图像/视频超分增强、去字幕、去水印与隐私打码

本页覆盖全部 12 个音频/音乐/翻译/ASR 模型与 10 个超分增强/视频擦除模型。除语音识别(POST /v1/audio/transcriptions)外,其余能力均推荐通过统一异步接口 POST /v1/media/tasks 提交(立即返回 HTTP 202 与 task_ref,通过 GET /v1/media/tasks/{task_ref} 轮询或配置 Webhook 回调 取结果)。

需要传本地图片、视频、音频或字幕文件时,先经 素材上传与云存储转存(POST /v1/media/uploads)上传至广州 COS 获取 HTTPS 链接。


1. 选模型查参数与示例(全 22 个在售型号)

点选任意型号,直接查看只属于该型号的四列参数表与 cURL / Python / Node.js 可运行代码(搜索框支持搜 克隆、翻译、分轨、超分、ocr_extract、mosaic):

MiniMax Speech 2.8 Turbo

高并发低延迟语音合成,支持 14 种预置音色与 9 种情绪标签。

POST /v1/media/tasks兼容:POST /v1/audio/speech
14 预置音色9 种情绪最长 10,000 字MP3

请求参数

推荐 POST /v1/media/tasks 异步提交(options 传参);兼容 POST /v1/audio/speech 同步流式返回。

参数名类型可选值与默认说明
input.prompt必填
string≤10,000 字符待合成的台词文本
options.voice必填
string14 种预置音色 · 默认 male-qn-qingse如 male-qn-qingse、female-shaonv、female-yujie、presenter_male、audiobook_female_1
options.speed
number0.5–2.0 · 默认 1.0语速倍率
options.pitch
number-12–12 · 默认 0音调半音偏移
options.volume
number0.1–10 · 默认 1.0音量增益
options.emotion
stringhappy / sad / angry / fearful / disgusted / surprised / calm / fluent / whisper语气情绪(不支持 instructions)
curl --fail-with-body https://beeftv.cn/v1/media/tasks \
  -H "Authorization: Bearer $BEEFTV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "task_ref": "minimax-speech-2-8-turbo-01",
  "media_type": "audio",
  "model": "minimax-speech-2.8-turbo",
  "operation": "synthesize",
  "input": {
    "prompt": "今夜雨落云海,木窗煮茶,一盏青瓷映出会游的星光。"
  },
  "options": {
    "voice": "female-yujie",
    "speed": 1,
    "pitch": 0,
    "volume": 1,
    "emotion": "calm"
  }
}'

# 轮询结果(status 为 completed 后取 outputs[].url)
curl --fail-with-body "https://beeftv.cn/v1/media/tasks/minimax-speech-2-8-turbo-01" \
  -H "Authorization: Bearer $BEEFTV_API_KEY"

2. 按场景直抄示例(Markdown)

2.1 语音合成与音色克隆(media_type: "audio", operation: "synthesize")

minimax-speech-2.8-turbo / minimax-speech-2.8-hd 支持 14 种预置音色(voice 必填)与 9 种情绪(emotion),单次最长 10,000 字:

curl --fail-with-body https://beeftv.cn/v1/media/tasks \
  -H "Authorization: Bearer $BEEFTV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "task_ref": "tts-minimax-01",
    "media_type": "audio",
    "model": "minimax-speech-2.8-turbo",
    "operation": "synthesize",
    "input": { "prompt": "今夜雨落云海,木窗煮茶,一盏青瓷映出会游的星光。" },
    "options": { "voice": "female-yujie", "speed": 1.0, "pitch": 0, "volume": 1.0, "emotion": "calm" }
  }'

2.2 音乐生成、音频分轨、视频配音与视频翻译

curl --fail-with-body https://beeftv.cn/v1/media/tasks \
  -H "Authorization: Bearer $BEEFTV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "task_ref": "music-v3-01",
    "media_type": "audio",
    "model": "minimax-music-v3.0",
    "operation": "generate",
    "input": { "prompt": "治愈系城市流行,木吉他与轻鼓点,温暖女声,96 BPM" },
    "options": {
      "lyrics": "[Verse]\n雨滴敲打木窗檐,灯影落在青瓷边\n[Chorus]\n慢慢煮一壶星光,把夜色都照亮",
      "is_instrumental": false,
      "lyrics_optimizer": false
    }
  }'

2.3 语音识别与字幕转写(POST /v1/audio/transcriptions)

同步上传本地音频(hy-asr-3.0-preview,支持 .mp3/.wav/.ogg/.oga/.opus/.pcm;当前不支持 language 参数;response_format 为 text/srt/vtt 时返回 text/plain):

curl --fail-with-body https://beeftv.cn/v1/audio/transcriptions \
  -H "Authorization: Bearer $BEEFTV_API_KEY" \
  -F "model=hy-asr-3.0-preview" \
  -F "file=@narration.mp3" \
  -F "response_format=json"

2.4 图像与视频超分增强(media_type: "upscale")

支持腾讯云视频增强/老片修复(tencent-video-enhance-* / tencent-video-restore)、自部署视频超分 flashvsr-plus-beeftv 与自部署图片超分 seedvr2-beeftv:

可用型号:tencent-video-enhance-seedance2(AI 视频)、tencent-video-enhance-real(实拍)、tencent-video-enhance-anime(动漫短剧)、tencent-video-restore(老片修复):

curl --fail-with-body https://beeftv.cn/v1/media/tasks \
  -H "Authorization: Bearer $BEEFTV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "task_ref": "upscale-tencent-01",
    "media_type": "upscale",
    "model": "tencent-video-enhance-seedance2",
    "operation": "upscale",
    "input": {
      "references": [
        { "kind": "video", "role": "source", "url": "https://<bucket>.cos.ap-guangzhou.myqcloud.com/transient/video/shot.mp4" }
      ]
    },
    "options": { "upscale_factor": 2, "H264_output": true }
  }'

2.5 视频去字幕、去水印与隐私打码(media_type: "video",勿传 prompt)

标准版 video-subtitle-erase 支持擦除同时提取并翻译字幕;大模型精擦用 video-subtitle-erase-mega(subtitle_model: "mega"):

curl --fail-with-body https://beeftv.cn/v1/media/tasks \
  -H "Authorization: Bearer $BEEFTV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "task_ref": "erase-sub-01",
    "media_type": "video",
    "model": "video-subtitle-erase",
    "operation": "subtitle_erase",
    "input": {
      "references": [
        { "kind": "video", "role": "source", "url": "https://<bucket>.cos.ap-guangzhou.myqcloud.com/transient/video/shot.mp4" }
      ]
    },
    "options": {
      "erase_method": "auto",
      "subtitle_model": "standard",
      "ocr_extract": true,
      "subtitle_lang": "zh_en",
      "subtitle_format": "srt",
      "translate": true,
      "translate_dst_lang": "en"
    }
  }'

3. 分路由兼容接口(存量脚本参考)

  • 同步语音/音乐(POST /v1/audio/speech):直接返回 MP3 字节流或 302 重定向(建议加 curl -L);音乐高级字段需放入 metadata 对象。
  • 超分 / 去字幕 / 去水印独立异步路由:分别为 /v1/media-upscale、/v1/video-subtitle-erase、/v1/video-smart-erase(提交 /tasks 必填 Idempotency-Key 请求头或 clientOperationId;轮询 GET <prefix>/tasks/{task_id};下载 GET <prefix>/tasks/{task_id}/content,去字幕可额外读 GET <prefix>/tasks/{task_id}/subtitles)。
  • 若刚出片遇 409 upscale_delivery_pending / subtitle_erase_delivery_pending,等待数秒后重试同一 /content 请求即可。

本页内容