Connection methods
Choose the method that matches your model.
| Model | Connection method |
|---|---|
| Qwen3-ASR-Flash-Filetrans | DashScope asynchronous only |
| Qwen3-ASR-Flash | OpenAI compatible and DashScope synchronous |
Supported audio formats
Qwen3-ASR-Flash accepts Base64-encoded audio or publicly accessible URLs.
Base64-encoded audio input
Use the Data URL format: data:<mediatype>;base64,<data>.
<mediatype>: The MIME type. For example, WAV:audio/wav, MP3:audio/mpeg.<data>: The Base64-encoded string. Encoding increases file size. Keep the encoded audio within the 10 MB limit.
data:audio/wav;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjI5LjEwMAAAAAAAAAAAAAAA//PAxABQ/BXRbMPe4IQAhl9
Base64 encoding examples
Base64 encoding examples
- Python
- Java
asr_options is non-standard. With the OpenAI SDK, pass it via extra_body.Authorizations
string
header
required
DashScope API key. Get your API key from Qwen Cloud console.
Body
application/jsonstring
required
The model name. Only applicable to Qwen3-ASR-Flash.
object[]
required
The list of messages.
object
Specifies whether to enable certain features. Not a standard OpenAI parameter — pass it through extra_body when using an OpenAI SDK.
boolean
defaultfalse
Specifies whether to use streaming output. We recommend setting this to true to improve responsiveness and reduce the risk of timeouts.
object
Configuration for streaming output. Takes effect only when stream is true.
Response
200-application/json
string
The unique identifier for this call.
chatcmpl-487abe5f-d4f2-9363-a877-xxxxxxx
object[]
The output information of the model.
integer
The UNIX timestamp (in seconds) when the request was created.
1767683986
string
The model used for this request.
qwen3-asr-flash
string
Always chat.completion.
chat.completion
object
Token consumption information.