v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

audio-text-to-text

Chat with AI models using text and audio. Also known as audio-text-to-text

post/models/v2/Qwen/Qwen2-Audio-7B-Instruct

Request body

streamboolean

Enable text streaming.

Example request

{
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Describe this audio"
        },
        {
          "type": "audio",
          "url": "https://dn720307.ca.archive.org/0/items/various-bird-sounds/Various%20Bird%20Sounds.mp3"
        }
      ]
    }
  ],
  "params": {
    "min_length": 10,
    "max_length": 100,
    "temperature": 0.5
  }
}

Response

Successful audio-text-to-text response.

errorstring nullable required

Null on success; otherwise an error message.

outputobject required

The output message generated by the model

Example response

{
  "output": {
    "role": "assistant",
    "content": "The sound is of raindrops and birds chirping."
  }
}