OAI Pro api这么调用tts-1

这个模型这么调用不会用,有没有佬知道

1 个赞

https://platform.openai.com/docs/guides/text-to-speech
base_url 改为 https://api.oaipro.com/v1 即可。

我看不都是/v1/audio/speech这个吗

你将 base_url 设置后,会自动在后面添加 /audio/speech,不需要手动定义完整 API 地址。