> ## Documentation Index
> Fetch the complete documentation index at: https://docs.refillapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Speech to text

> POST /v1/audio/transcriptions with Qwen ASR — text, timestamps or SRT/VTT subtitles.

Qwen ASR transcribes an audio file, with punctuation and text normalization, and can return word timestamps or subtitles. The endpoint is compatible with OpenAI's transcription API.

* Model ID: `qwen-audio-3.1-asr-flash`
* Endpoint: `POST https://refillapi.com/v1/audio/transcriptions` (`multipart/form-data`, synchronous)
* [Price](https://refillapi.com/pricing/qwen-audio-3.1-asr-flash)

## Request

**model** `string` *required*

`qwen-audio-3.1-asr-flash`

**file** `file` *required*

Audio file, up to 10 MB and 5 minutes. mp3, wav, m4a, aac, flac, ogg, opus, webm, amr, mp4, mov and other common formats; the format is taken from the file extension.

**response\_format** `string` (default: json)

`json` (`{"text": "..."}`), `text`, `verbose_json` (sentence and word timestamps), `srt` or `vtt`.

**language** `string`

Language hint, e.g. `en`, `zh`, `ja`. Detected automatically when omitted.

## Example

```bash curl theme={null}
curl https://refillapi.com/v1/audio/transcriptions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F model="qwen-audio-3.1-asr-flash" \
  -F file="@meeting.mp3" \
  -F response_format="json"
```

```python Python theme={null}
from openai import OpenAI

client = OpenAI(api_key="YOUR_API_KEY", base_url="https://refillapi.com/v1")
with open("meeting.mp3", "rb") as audio:
    transcript = client.audio.transcriptions.create(
        model="qwen-audio-3.1-asr-flash",
        file=audio,
        response_format="srt",
    )
print(transcript)
```

## Billing

By tokens: audio input (about 12 tokens per second) and text output are priced separately. The cost of a 5-minute file is held when you submit and settled against actual usage; failed requests are not billed.

`prompt` and `stream` are not supported. Split audio longer than 5 minutes before sending it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.