AI模型请求文档
  • 介绍
  • 项目说明
  • 导言
  • 身份验证
  • 发出请求
  • 参数详情
  • 音频(Audio)
    • 创建语音GET
    • 创建转录GET
    • 创建翻译GET
  • 聊天(Chat)
  • 自动补全(Completions)
  • 嵌入(Embeddings)
  • 图像(Images)
  • 模型(Models)
  • Suno
  • MidJourney
  • ideogram
  • 平台接口
Powered by Apifox

    创建语音

    GET{{BASE_URL}}/v1/audio/speech

    请求参数

    Body 参数application/json
    model
    string 
    必需

    可用的 TTS 模型之一:tts-1 或 tts-1-hd

    input
    string 
    必需

    要生成音频的文本。最大长度为4096个字符。

    voice
    string 
    必需

    生成音频时使用的语音。支持的语音有:alloy、echo、fable、onyx、nova 和 shimmer。

    response_format
    string 
    可选

    默认为 mp3 音频的格式。支持的格式有:mp3、opus、aac 和 flac。

    speed
    number 
    可选

    默认为 1 生成的音频速度。选择0.25到4.0之间的值。1.0是默认值。

    示例
    {
      "model": "tts-1",
      "input": "The quick brown fox jumped over the lazy dog.",
      "voice": "alloy"
    }

    示例代码

    返回响应

    成功(200)
    HTTP 状态码: 200
    内容格式: JSONapplication/json
    数据结构
    object {0}
    示例
    {}
    最后修改时间: 3 个月前
    下一页
    GET创建转录