Skip to content

feat(minimax): add speech model & provider #7470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

xiaoiver
Copy link

@xiaoiver xiaoiver commented Jul 23, 2025

Background

Implement Minimax provider for its TTS model.
Docs: https://www.minimax.io/platform/document/T2A%20V2?key=66719005a427f0c8a5701643

Summary

I create a minimax package and a relative example in ai-core directory.
Here's the usage:

import { minimax } from '@ai-sdk/minimax';
import { experimental_generateSpeech as generateSpeech } from 'ai';

const result = await generateSpeech({
  model: minimax.speech('speech-02-hd'),
  text: 'Hello, world!',
  providerOptions: { minimax: {} },
});

Verification

I've ran the test case minimax.ts in examples/ai-core/src/generate-speech directory and passed.

Tasks

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)

Future Work

There're more APIs like image, music, video generation in Minimax. Subsequent additions can be made to this package.

Related Issues

@sriting
Copy link

sriting commented Jul 24, 2025

Good Job! Look forward to this PR being merged.

@sriting
Copy link

sriting commented Jul 28, 2025

Hi @xiaoiver @nicoalbanese , is this PR still ongoing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants