# Qwen Audio 3.1 ASR Flash Speech Recognition

> Audio Generation

Submit audio for speech recognition. By default a JSON response is returned (recognized text, sentence- and word-level timelines, token usage). When `stream` is `true`, a `text/event-stream` is returned with results pushed sentence by sentence.

`model`, `metadata.format`, and one audio source (`url` / `audio_url` / `audio_data`) are required; everything else is optional.

## Minimal working example

Non-streaming, returns the full transcription in one response:

```bash
curl -X POST 'https://api.modelverse.cn/v1/audio/transcriptions' \
  -H "Authorization: Bearer ${MODELVERSE_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "qwen-audio-3.1-asr-flash",
    "url": "https://example.com/audio.mp3",
    "metadata": {"format": "mp3"}
  }'
```

Streaming: add `"stream": true` to the body and `-N` to curl to disable buffering; the response is `text/event-stream`:

```bash
curl -N -X POST 'https://api.modelverse.cn/v1/audio/transcriptions' \
  -H "Authorization: Bearer ${MODELVERSE_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "qwen-audio-3.1-asr-flash",
    "url": "https://example.com/audio.mp3",
    "stream": true,
    "metadata": {"format": "mp3"}
  }'
```

Read the recognized text from `output.text`. For streaming, parse the JSON in each `data:` line; the last event carries the complete token `usage`.

## Endpoint

`POST https://api.modelverse.cn/v1/audio/transcriptions`

## Request Body

## Responses

- **200** — Recognition succeeded. Non-streaming returns JSON; `stream=true` returns `text/event-stream`.

- **400** — Invalid request parameters: missing audio source, missing `metadata.format`, malformed Data URI, out-of-range hotword weight, or parameters failing validation. None of these produce a usage record.

- **401** — Authentication failed — API key missing or invalid.
- **default** — Other error responses.

## OpenAPI Definition

```json
{
  "openapi": "3.1.0",
  "x-language": "en-US",
  "info": {
    "title": "Qwen Audio 3.1 ASR Flash Speech Recognition",
    "version": "1.0.0",
    "description": "This document describes the ModelVerse speech recognition API for `qwen-audio-3.1-asr-flash`: how to submit audio, read the recognition result, enable SSE streaming, and handle errors.\n\nThe endpoint is `POST /v1/audio/transcriptions`.\n\n## Model capabilities\n\n- Non-realtime speech recognition: submit a complete audio input in one request, with either a non-streaming response (full result returned at once) or an SSE stream (results pushed sentence by sentence).\n- Supports Mandarin Chinese, multiple languages and dialects. Use `language` as a language hint and `metadata.keep_dialect` to preserve dialect wording.\n- Supports context prompting (`prompt`) and inline hotwords (`metadata.vocabulary`), improving recognition of proper nouns, names and brand terms.\n- Supports speaker diarization (`metadata.speaker_diarization_enabled`), which adds `speaker_id` and a per-sentence `sentences` breakdown.\n- Results include sentence-level timelines and word-level timestamps (`sentence.words`).\n\n## Notes\n\n- **JSON only**: `Content-Type` must be `application/json`. Supply the audio through `url`, `audio_url` or `audio_data`.\n- `url` / `audio_url` must be publicly reachable audio URLs; `audio_data` must be a `data:{MIME};base64,{DATA}` Data URI.\n- `metadata.format` is required and must match the actual audio codec; a mismatch can cause failure or empty text.\n- Read the recognized text from `output.text`.\n- When speaker diarization is enabled, `language` and `metadata.keep_dialect` have no effect.\n"
  },
  "servers": [
    {
      "url": "https://api.modelverse.cn",
      "description": "Mainland China"
    },
    {
      "url": "https://api.umodelverse.ai",
      "description": "Global"
    },
    {
      "url": "https://api-us-ca.umodelverse.ai",
      "description": "Los Angeles, US"
    },
    {
      "url": "https://api-sg.umodelverse.ai",
      "description": "Singapore"
    },
    {
      "url": "https://api-ge-fra.umodelverse.ai",
      "description": "Frankfurt"
    }
  ],
  "tags": [
    {
      "name": "Qwen ASR",
      "description": "Speech recognition operations for `qwen-audio-3.1-asr-flash`."
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/audio/transcriptions": {
      "post": {
        "tags": [
          "Qwen ASR"
        ],
        "operationId": "createQwenAudio31ASRFlashTranscription",
        "summary": "Qwen Audio 3.1 ASR Flash Speech Recognition",
        "description": "Submit audio for speech recognition. By default a JSON response is returned (recognized text, sentence- and word-level timelines, token usage). When `stream` is `true`, a `text/event-stream` is returned with results pushed sentence by sentence.\n\n`model`, `metadata.format`, and one audio source (`url` / `audio_url` / `audio_data`) are required; everything else is optional.\n\n## Minimal working example\n\nNon-streaming, returns the full transcription in one response:\n\n```bash\ncurl -X POST 'https://api.modelverse.cn/v1/audio/transcriptions' \\\n  -H \"Authorization: Bearer ${MODELVERSE_API_KEY}\" \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"model\": \"qwen-audio-3.1-asr-flash\",\n    \"url\": \"https://example.com/audio.mp3\",\n    \"metadata\": {\"format\": \"mp3\"}\n  }'\n```\n\nStreaming: add `\"stream\": true` to the body and `-N` to curl to disable buffering; the response is `text/event-stream`:\n\n```bash\ncurl -N -X POST 'https://api.modelverse.cn/v1/audio/transcriptions' \\\n  -H \"Authorization: Bearer ${MODELVERSE_API_KEY}\" \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"model\": \"qwen-audio-3.1-asr-flash\",\n    \"url\": \"https://example.com/audio.mp3\",\n    \"stream\": true,\n    \"metadata\": {\"format\": \"mp3\"}\n  }'\n```\n\nRead the recognized text from `output.text`. For streaming, parse the JSON in each `data:` line; the last event carries the complete token `usage`.\n",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QwenAudioASRFlashRequest"
              },
              "examples": {
                "url": {
                  "summary": "Public URL recognition",
                  "value": {
                    "model": "qwen-audio-3.1-asr-flash",
                    "url": "https://example.com/audio.mp3",
                    "language": "zh",
                    "metadata": {
                      "format": "mp3"
                    }
                  }
                },
                "base64": {
                  "summary": "Base64 Data URI recognition",
                  "value": {
                    "model": "qwen-audio-3.1-asr-flash",
                    "audio_data": "data:audio/wav;base64,UklGRiQAAABXQVZF...",
                    "metadata": {
                      "format": "wav",
                      "sample_rate": "16000"
                    }
                  }
                },
                "withContext": {
                  "summary": "Context prompt + inline hotwords",
                  "value": {
                    "model": "qwen-audio-3.1-asr-flash",
                    "url": "https://example.com/audio.mp3",
                    "prompt": "武汉 户部巷 热干面 江汉关",
                    "metadata": {
                      "format": "mp3",
                      "vocabulary": {
                        "户部巷": 5,
                        "江汉关": 5
                      }
                    }
                  }
                },
                "diarization": {
                  "summary": "Speaker diarization",
                  "value": {
                    "model": "qwen-audio-3.1-asr-flash",
                    "url": "https://example.com/audio.mp3",
                    "metadata": {
                      "format": "mp3",
                      "speaker_diarization_enabled": true
                    }
                  }
                },
                "stream": {
                  "summary": "SSE streaming recognition",
                  "value": {
                    "model": "qwen-audio-3.1-asr-flash",
                    "url": "https://example.com/audio.mp3",
                    "stream": true,
                    "metadata": {
                      "format": "mp3"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Recognition succeeded. Non-streaming returns JSON; `stream=true` returns `text/event-stream`.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QwenAudioASRFlashResponse"
                },
                "examples": {
                  "transcription": {
                    "summary": "Non-streaming recognition result",
                    "value": {
                      "output": {
                        "output": {
                          "request_id": "fc17198f-ea3c-9bca-bd52-f4ec682ce4e5",
                          "text": "早安，武汉！早晨的户部巷，热干面的香气扑面而来。",
                          "sentence": {
                            "begin_time": 2040,
                            "end_time": 21640,
                            "channel_id": 0,
                            "sentence_end": true,
                            "sentence_id": 1,
                            "text": "早安，武汉！早晨的户部巷，热干面的香气扑面而来。",
                            "words": [
                              {
                                "begin_time": 2040,
                                "end_time": 2800,
                                "fixed": true,
                                "punctuation": "，",
                                "text": "早安"
                              },
                              {
                                "begin_time": 2800,
                                "end_time": 4080,
                                "fixed": true,
                                "punctuation": "！",
                                "text": "武汉"
                              }
                            ]
                          }
                        },
                        "request_id": "fc17198f-ea3c-9bca-bd52-f4ec682ce4e5",
                        "text": "早安，武汉！早晨的户部巷，热干面的香气扑面而来。",
                        "sentence": {
                          "begin_time": 2040,
                          "end_time": 21640,
                          "channel_id": 0,
                          "sentence_end": true,
                          "sentence_id": 1,
                          "text": "早安，武汉！早晨的户部巷，热干面的香气扑面而来。",
                          "words": [
                            {
                              "begin_time": 2040,
                              "end_time": 2800,
                              "fixed": true,
                              "punctuation": "，",
                              "text": "早安"
                            },
                            {
                              "begin_time": 2800,
                              "end_time": 4080,
                              "fixed": true,
                              "punctuation": "！",
                              "text": "武汉"
                            }
                          ]
                        },
                        "usage": {
                          "duration": 22,
                          "input_tokens": 271,
                          "output_tokens": 40,
                          "total_tokens": 311
                        }
                      },
                      "usage": {
                        "duration": 22,
                        "input_tokens": 271,
                        "output_tokens": 40,
                        "total_tokens": 311
                      },
                      "request_id": "fc17198f-ea3c-9bca-bd52-f4ec682ce4e5"
                    }
                  },
                  "diarization": {
                    "summary": "Diarized recognition result (excerpt)",
                    "value": {
                      "output": {
                        "text": "早安，武汉。早晨的户部巷，热干面的香气扑面而来。",
                        "sentences": [
                          {
                            "begin_time": 1840,
                            "end_time": 3360,
                            "channel_id": 0,
                            "sentence_end": true,
                            "sentence_id": 1,
                            "speaker_id": 0,
                            "text": "早安，武汉。",
                            "words": [
                              {
                                "begin_time": 1840,
                                "end_time": 2600,
                                "fixed": true,
                                "punctuation": "，",
                                "speaker_id": 0,
                                "text": "早安"
                              },
                              {
                                "begin_time": 2600,
                                "end_time": 3360,
                                "fixed": true,
                                "punctuation": "。",
                                "speaker_id": 0,
                                "text": "武汉"
                              }
                            ]
                          },
                          {
                            "begin_time": 4000,
                            "end_time": 10880,
                            "channel_id": 0,
                            "sentence_end": true,
                            "sentence_id": 2,
                            "speaker_id": 1,
                            "text": "早晨的户部巷，热干面的香气扑面而来。"
                          }
                        ]
                      },
                      "usage": {
                        "duration": 21,
                        "input_tokens": 271,
                        "output_tokens": 88,
                        "total_tokens": 359
                      },
                      "request_id": "535272d4-9b55-980b-87c0-bf8241a5b234"
                    }
                  }
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "SSE event stream. Each event consists of `id:`, `event:result`, `:HTTP_STATUS/200`, `data:<JSON>` and a blank line.\n\nThe JSON in `data` has the same structure as the non-streaming response; `output.text` grows with each event as more text is recognized, and `usage` carries the cumulative token usage.\n"
                },
                "examples": {
                  "streamEvents": {
                    "summary": "Stream events (excerpt)",
                    "value": "id:1\nevent:result\n:HTTP_STATUS/200\ndata:{\"output\":{\"output\":{\"sentence\":{\"sentence_id\":1,\"sentence_end\":true,\"begin_time\":2040,\"end_time\":4080,\"channel_id\":0,\"text\":\"早安，武汉。\",\"words\":[{\"begin_time\":2040,\"end_time\":2800,\"fixed\":true,\"punctuation\":\"，\",\"text\":\"早安\"},{\"begin_time\":2800,\"end_time\":4080,\"fixed\":true,\"punctuation\":\"。\",\"text\":\"武汉\"}]},\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\",\"text\":\"早安，武汉。\"},\"sentence\":{\"sentence_id\":1,\"sentence_end\":true,\"begin_time\":2040,\"end_time\":4080,\"channel_id\":0,\"text\":\"早安，武汉。\",\"words\":[]},\"text\":\"早安，武汉。\",\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\",\"usage\":{\"duration\":4,\"input_tokens\":271,\"output_tokens\":40,\"total_tokens\":311}},\"usage\":{\"duration\":4,\"input_tokens\":271,\"output_tokens\":40,\"total_tokens\":311},\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\"}\n\nid:2\nevent:result\n:HTTP_STATUS/200\ndata:{\"output\":{\"output\":{\"sentence\":{\"sentence_id\":2,\"sentence_end\":true,\"begin_time\":2040,\"end_time\":11560,\"channel_id\":0,\"text\":\"早安，武汉。早晨的户部巷，热干面的香气扑面而来，这是最地道的过早文化。\",\"words\":[]},\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\",\"text\":\"早安，武汉。早晨的户部巷，热干面的香气扑面而来，这是最地道的过早文化。\"},\"sentence\":{\"sentence_id\":2,\"sentence_end\":true,\"begin_time\":2040,\"end_time\":11560,\"channel_id\":0,\"text\":\"早安，武汉。早晨的户部巷，热干面的香气扑面而来，这是最地道的过早文化。\",\"words\":[]},\"text\":\"早安，武汉。早晨的户部巷，热干面的香气扑面而来，这是最地道的过早文化。\",\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\",\"usage\":{\"duration\":12,\"input_tokens\":271,\"output_tokens\":40,\"total_tokens\":311}},\"usage\":{\"duration\":12,\"input_tokens\":271,\"output_tokens\":40,\"total_tokens\":311},\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\"}\n"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters: missing audio source, missing `metadata.format`, malformed Data URI, out-of-range hotword weight, or parameters failing validation. None of these produce a usage record.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QwenAudioASRErrorResponse"
                },
                "examples": {
                  "invalidWeight": {
                    "summary": "Hotword weight out of range",
                    "value": {
                      "error": {
                        "message": "[trace_id: 4cd441f2-a93f-4b19-b29f-fe1ec56ee680] Invalid param: metadata.vocabulary[\"张三\"] weight must be in [1,5] or 50",
                        "type": "invalid_request_error",
                        "param": null,
                        "code": "param_error",
                        "trace_id": "4cd441f2-a93f-4b19-b29f-fe1ec56ee680"
                      }
                    }
                  },
                  "invalidParam": {
                    "summary": "Invalid request parameters",
                    "value": {
                      "error": {
                        "message": "[trace_id: 2504295d-ccfd-4704-bf6c-f9162e2a9280] Invalid param: invalid audio_transcriptions request parameters",
                        "type": "invalid_request_error",
                        "param": null,
                        "code": "param_error",
                        "trace_id": "2504295d-ccfd-4704-bf6c-f9162e2a9280"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed — API key missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QwenAudioASRErrorResponse"
                }
              }
            }
          },
          "default": {
            "description": "Other error responses.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QwenAudioASRErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API key",
        "description": "Bearer token authentication in the form `Authorization: Bearer <API Key>`."
      }
    },
    "schemas": {
      "QwenAudioASRFlashRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model",
          "metadata"
        ],
        "properties": {
          "model": {
            "type": "string",
            "const": "qwen-audio-3.1-asr-flash",
            "description": "Model name, fixed to `qwen-audio-3.1-asr-flash`."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Publicly reachable audio URL (`http` / `https`).\nTakes the highest priority when supplied together with `audio_url` / `audio_data`.\n"
          },
          "audio_url": {
            "type": "string",
            "format": "uri",
            "description": "Alias of `url` for compatibility with existing callers; behaves identically.\nLower priority than `url`, higher than `audio_data`.\n"
          },
          "audio_data": {
            "type": "string",
            "description": "Audio as a Base64 Data URI, must be `data:{MIME_TYPE};base64,{BASE64_DATA}`.\nLowest priority.\n`{MIME_TYPE}` must match the actual audio encoding and correspond to `metadata.format`. For example, a WAV file uses `data:audio/wav;base64,...` with `metadata.format` set to `wav`.\n",
            "examples": [
              "data:audio/wav;base64,UklGRiQAAABXQVZF..."
            ]
          },
          "language": {
            "type": "string",
            "description": "Language hint, e.g. `zh`, `en`, `ja`.\nSetting it explicitly improves accuracy; omit it to let the model auto-detect.\nHas no effect when speaker diarization is enabled.\n\nCommon language codes: `zh` Chinese, `en` English, `ja` Japanese, `ko` Korean, `fr` French, `de` German,\n`es` Spanish, `pt` Portuguese, `ru` Russian, `it` Italian, `ar` Arabic,\n`th` Thai, `vi` Vietnamese, `id` Indonesian, `ms` Malay, `nl` Dutch.\n",
            "examples": [
              "zh",
              "en"
            ]
          },
          "prompt": {
            "type": "string",
            "description": "Context prompt. Provide domain vocabulary, proper nouns or preceding context to improve recognition accuracy.\nPass a single block of text; keep it within 400 characters, longer content is truncated.\n",
            "examples": [
              "武汉 户部巷 热干面 江汉关"
            ]
          },
          "stream": {
            "type": "boolean",
            "default": false,
            "description": "Whether to return results as an SSE stream. When `true`, the response type is `text/event-stream`.\n"
          },
          "metadata": {
            "$ref": "#/components/schemas/QwenAudioASRFlashMetadata"
          }
        }
      },
      "QwenAudioASRFlashMetadata": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "format"
        ],
        "properties": {
          "format": {
            "type": "string",
            "description": "Audio codec format, **required**, e.g. `wav`, `mp3`, `opus`, `pcm`, `aac`, `amr`.\nMust match the actual audio codec; a mismatch can cause failure or empty text.\n",
            "examples": [
              "wav",
              "mp3"
            ]
          },
          "sample_rate": {
            "type": "string",
            "description": "Audio sample rate (Hz), passed as a string, e.g. `\"16000\"`.\nShould match the actual audio sample rate.\n",
            "examples": [
              "16000"
            ]
          },
          "vocabulary": {
            "type": "object",
            "description": "Inline hotwords, passed as key-value pairs: the key is the hotword text (`string`) and the value is its weight (`integer`). No hotword list needs to be created in advance.\n\n- A weight in `[1, 5]` biases recognition toward the word; larger values give a stronger bias.\n- A weight of `50` marks a super hotword with much higher recall; at most 50 super hotwords are allowed.\n- Keys must not be empty strings.\n",
            "examples": [
              {
                "户部巷": 5,
                "江汉关": 5
              }
            ]
          },
          "speaker_diarization_enabled": {
            "type": "boolean",
            "default": false,
            "description": "Whether to enable speaker diarization. When enabled, the response contains a `sentences` array and `words[].speaker_id`.\n\nWhen enabled, `language` and `keep_dialect` have no effect.\n"
          },
          "keep_dialect": {
            "type": "boolean",
            "default": false,
            "description": "Whether to preserve dialect wording. When `true`, recognition keeps dialect vocabulary instead of normalizing it to standard Mandarin.\nHas no effect when speaker diarization is enabled.\n"
          }
        },
        "description": "Extension parameter object. Generic parameters (`model`, `language`, `prompt`, `stream`) live at the top level; model-specific parameters live in `metadata`.\n"
      },
      "QwenAudioASRFlashResponse": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "output",
          "request_id"
        ],
        "properties": {
          "output": {
            "$ref": "#/components/schemas/QwenAudioASROutput"
          },
          "usage": {
            "$ref": "#/components/schemas/QwenAudioASRUsage"
          },
          "request_id": {
            "type": "string",
            "description": "Unique identifier of this request, used for troubleshooting."
          }
        }
      },
      "QwenAudioASROutput": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "output": {
            "type": "object",
            "additionalProperties": true,
            "description": "Nested recognition result, mirroring the parent `output` (`request_id`, `text`, `sentence`, `sentences`, `usage`).\nUse the parent `output.text`.\n"
          },
          "request_id": {
            "type": "string",
            "description": "Request ID."
          },
          "text": {
            "type": "string",
            "description": "Full recognized text. In streaming responses this is the text recognized so far, growing with each event."
          },
          "sentence": {
            "$ref": "#/components/schemas/QwenAudioASRSentence"
          },
          "sentences": {
            "type": "array",
            "description": "Per-sentence breakdown. Always present when `speaker_diarization_enabled` is on; each item carries a `speaker_id`.\n",
            "items": {
              "$ref": "#/components/schemas/QwenAudioASRSentence"
            }
          },
          "usage": {
            "$ref": "#/components/schemas/QwenAudioASRUsage"
          }
        }
      },
      "QwenAudioASRSentence": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "sentence_id": {
            "type": "integer",
            "description": "Sentence index, starting from 1."
          },
          "sentence_end": {
            "type": "boolean",
            "description": "Whether this sentence has finished being recognized."
          },
          "begin_time": {
            "type": "integer",
            "description": "Sentence start time (milliseconds)."
          },
          "end_time": {
            "type": "integer",
            "description": "Sentence end time (milliseconds)."
          },
          "channel_id": {
            "type": "integer",
            "description": "Audio channel index."
          },
          "speaker_id": {
            "type": "integer",
            "description": "Speaker index, only present when diarization is enabled."
          },
          "text": {
            "type": "string",
            "description": "Recognized text of this sentence."
          },
          "words": {
            "type": "array",
            "description": "Word-level timestamp array.",
            "items": {
              "$ref": "#/components/schemas/QwenAudioASRWord"
            }
          }
        }
      },
      "QwenAudioASRWord": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "text": {
            "type": "string",
            "description": "Character/word text."
          },
          "begin_time": {
            "type": "integer",
            "description": "Start time (milliseconds)."
          },
          "end_time": {
            "type": "integer",
            "description": "End time (milliseconds)."
          },
          "punctuation": {
            "type": "string",
            "description": "Punctuation immediately following this word; empty string if none."
          },
          "fixed": {
            "type": "boolean",
            "description": "Whether this word's result is finalized (won't be revised by later events)."
          },
          "speaker_id": {
            "type": "integer",
            "description": "Speaker index, only present when diarization is enabled."
          }
        }
      },
      "QwenAudioASRUsage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "input_tokens": {
            "type": "integer",
            "minimum": 0,
            "description": "Input token count."
          },
          "output_tokens": {
            "type": "integer",
            "minimum": 0,
            "description": "Output token count."
          },
          "total_tokens": {
            "type": "integer",
            "minimum": 0,
            "description": "Sum of input and output tokens."
          },
          "duration": {
            "type": "integer",
            "minimum": 0,
            "description": "Audio duration (seconds).\nIn streaming events this grows as more audio is processed.\n"
          }
        }
      },
      "QwenAudioASRErrorResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/QwenAudioASRError"
          }
        }
      },
      "QwenAudioASRError": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "message",
          "type",
          "code"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "Error description; the `[trace_id: ...]` prefix matches this response's `trace_id`."
          },
          "type": {
            "type": "string",
            "description": "Error type.",
            "examples": [
              "invalid_request_error",
              "internal_error"
            ]
          },
          "code": {
            "type": "string",
            "description": "Machine-readable error code.",
            "examples": [
              "param_error",
              "model_server_error"
            ]
          },
          "param": {
            "type": [
              "string",
              "null"
            ],
            "description": "The parameter related to the error, or `null` when not applicable."
          },
          "trace_id": {
            "type": "string",
            "description": "Trace ID of this request, used for feedback and troubleshooting."
          }
        }
      }
    }
  }
}
```
