From 1c71483e253796753da5edc221ab1ed5fab83421 Mon Sep 17 00:00:00 2001 From: xyx <124608760@qq.com> Date: Mon, 27 Apr 2026 22:17:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20MiniMax=20Provider=20=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E5=AA=92=E4=BD=93=E8=83=BD=E5=8A=9B=EF=BC=88=E5=9B=BE=E7=89=87?= =?UTF-8?q?/=E8=AF=AD=E9=9F=B3/=E8=A7=86=E9=A2=91/=E9=9F=B3=E4=B9=90?= =?UTF-8?q?=EF=BC=89=20(#8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将媒体生成模型直接合并到现有 provider-minimax-001,而非创建独立的媒体 Provider。原因:MiniMax 所有 API(聊天/图片/语音/视频/音乐)共享同一 域名(api.minimaxi.com)、同一认证方式(Bearer)和同一 API Key,与 OpenAI 的 provider 结构一致。 变更内容: - 修改 compute/providers/minimax.json - services 新增:image_gen, tts, video_gen, music_gen - models 新增 10 个媒体模型(来源:官方文档): · image-01, image-01-live(文生图/图生图) · speech-2.8-hd, speech-2.8-turbo(语音合成,最新 2.8 系列) · MiniMax-Hailuo-2.3, Hailuo-2.3-Fast, T2V-01-Director(视频生成) · music-2.6, music-cover(音乐生成 + 翻唱) - 更新 service-map.json:新增 music_gen → music-2.6 / provider-minimax-001 - 递增 manifest.json presetDataVersion 32 → 33 API 参数来源:MiniMax 国内开放平台官方文档 https://platform.minimaxi.com/docs/api-reference/api-overview --- compute/providers/minimax.json | 167 ++++++++++++++++++++++++++++++++- compute/service-map.json | 4 + manifest.json | 2 +- 3 files changed, 171 insertions(+), 2 deletions(-) diff --git a/compute/providers/minimax.json b/compute/providers/minimax.json index a475f23..5114fe4 100644 --- a/compute/providers/minimax.json +++ b/compute/providers/minimax.json @@ -12,7 +12,11 @@ "services": [ "chat", "fast", - "reasoning" + "reasoning", + "image_gen", + "tts", + "video_gen", + "music_gen" ], "models": [ { @@ -193,6 +197,167 @@ "defaultTemperature": 0.1, "defaultTopP": 0.95, "extra": {} + }, + { + "modelName": "image-01", + "displayName": "MiniMax Image 01", + "serviceType": ["image_gen"], + "description": "MiniMax 文生图/图生图模型,支持主题参考(角色一致性),最长 1500 字符 prompt", + "capabilities": [ + "image_generation", + "subject_reference", + "chinese_optimized" + ], + "extra": { + "supportedAspectRatios": ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9"], + "maxPromptLength": 1500, + "maxBatchSize": 9, + "responseFormats": ["url", "base64"], + "urlExpiry": "24h" + } + }, + { + "modelName": "image-01-live", + "displayName": "MiniMax Image 01 Live", + "serviceType": ["image_gen"], + "description": "MiniMax 文生图模型(Live 版),支持画风控制(漫画/元气/中世纪/水彩)", + "capabilities": [ + "image_generation", + "style_control", + "subject_reference", + "chinese_optimized" + ], + "extra": { + "supportedAspectRatios": ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"], + "supportedStyles": ["漫画", "元气", "中世纪", "水彩"], + "maxPromptLength": 1500, + "maxBatchSize": 9, + "responseFormats": ["url", "base64"], + "urlExpiry": "24h" + } + }, + { + "modelName": "speech-2.8-hd", + "displayName": "MiniMax Speech 2.8 HD", + "serviceType": ["tts"], + "description": "MiniMax 最新高清语音合成模型,支持 40+ 语言、100+ 预置音色,毫秒级延迟", + "capabilities": [ + "tts", + "multilingual", + "emotion_control", + "voice_clone", + "chinese_optimized" + ], + "extra": { + "maxTextLength": 10000, + "supportedFormats": ["mp3", "wav", "pcm", "flac", "aac", "ogg"] + } + }, + { + "modelName": "speech-2.8-turbo", + "displayName": "MiniMax Speech 2.8 Turbo", + "serviceType": ["tts"], + "description": "MiniMax 快速语音合成模型,速度优先,适合实时场景", + "capabilities": [ + "tts", + "multilingual", + "emotion_control", + "fast", + "chinese_optimized" + ], + "extra": { + "maxTextLength": 10000, + "supportedFormats": ["mp3", "wav", "pcm", "flac", "aac", "ogg"] + } + }, + { + "modelName": "MiniMax-Hailuo-2.3", + "displayName": "海螺视频 2.3", + "serviceType": ["video_gen"], + "description": "MiniMax 最新视频生成模型,支持文生视频和图生视频,支持 15 种运镜指令控制", + "capabilities": [ + "video_generation", + "text_to_video", + "image_to_video", + "camera_control", + "chinese_optimized", + "high_quality" + ], + "extra": { + "maxVideoDuration": 10, + "supportedResolutions": ["768p", "1080p"], + "maxPromptLength": 2000, + "asyncMode": true + } + }, + { + "modelName": "MiniMax-Hailuo-2.3-Fast", + "displayName": "海螺视频 2.3 快速版", + "serviceType": ["video_gen"], + "description": "海螺视频快速版本(仅图生视频),生成速度更快", + "capabilities": [ + "video_generation", + "image_to_video", + "camera_control", + "fast", + "chinese_optimized" + ], + "extra": { + "maxVideoDuration": 10, + "supportedResolutions": ["768p", "1080p"], + "asyncMode": true + } + }, + { + "modelName": "T2V-01-Director", + "displayName": "海螺视频 Director", + "serviceType": ["video_gen"], + "description": "导演级文生视频模型,精准运镜控制", + "capabilities": [ + "video_generation", + "text_to_video", + "camera_control", + "chinese_optimized" + ], + "extra": { + "maxVideoDuration": 6, + "supportedResolutions": ["720p"], + "asyncMode": true + } + }, + { + "modelName": "music-2.6", + "displayName": "MiniMax Music 2.6", + "serviceType": ["music_gen"], + "description": "MiniMax AI 音乐生成模型,支持音乐灵感描述和歌词输入,可生成带人声或纯音乐", + "capabilities": [ + "music_generation", + "lyrics_input", + "instrumental", + "chinese_optimized" + ], + "extra": { + "maxPromptLength": 2000, + "maxLyricsLength": 3500, + "outputFormats": ["hex", "url"], + "supportedLyricsStructures": ["[Intro]", "[Verse]", "[Pre Chorus]", "[Chorus]", "[Interlude]", "[Bridge]", "[Outro]", "[Hook]", "[Solo]", "[Inst]"] + } + }, + { + "modelName": "music-cover", + "displayName": "MiniMax Music Cover", + "serviceType": ["music_gen"], + "description": "MiniMax AI 翻唱模型,基于参考音频生成翻唱版本,支持修改歌词", + "capabilities": [ + "music_generation", + "cover", + "chinese_optimized" + ], + "extra": { + "maxAudioDuration": 360, + "maxAudioSize": "50MB", + "supportedFormats": ["mp3", "wav", "flac"] + } } ] } diff --git a/compute/service-map.json b/compute/service-map.json index 09465be..a1e74b6 100644 --- a/compute/service-map.json +++ b/compute/service-map.json @@ -70,5 +70,9 @@ "computer_use": { "modelName": "claude-sonnet-4-5-computer", "providerId": "provider-anthropic-001" + }, + "music_gen": { + "modelName": "music-2.6", + "providerId": "provider-minimax-001" } } diff --git a/manifest.json b/manifest.json index 18e47ea..6d6c435 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "version": "1.0.0", - "presetDataVersion": 32, + "presetDataVersion": 33, "updatedAt": "2026-04-27", "description": "DesireCore 官方配置中心" }