# HTTP Multipart/Form-Data

### HTTP Multipart/Form-Data

Currently, only the **Pulse** model supports HTTP `multipart/form-data` requests within the Gowajee Speech-to-Text (STT) API.

### Pulse Model

The **Pulse** model supports HTTP `multipart/form-data` requests, allowing you to send audio files directly in a binary format.

### **Example Request for Pulse Model**

```http
POST /v1/speech-to-text/pulse/transcribe HTTP/1.1
Host: api.gowajee.ai
X-Api-Key: ${YOUR_API_KEY}
Content-Type: multipart/form-data; boundary=---boundary

---boundary
Content-Disposition: form-data; name="audioData"; filename="audio.wav"
Content-Type: audio/wav

(binary audio data)
---boundary--
```

### Astro Model

The **Astro** model **does not** support `multipart/form-data`. Instead, use [Presigned URLs](#using-presigned-urls) or [Base64](https://en.wikipedia.org/wiki/Base64) with HTTP `application/json` requests to handle audio file uploads.

> We recommended using [Presigned URLs](#using-presigned-urls) over [Base64](https://en.wikipedia.org/wiki/Base64) to avoid HTTP 413 Payload Too Large.

### **Example Request for Astro Model**

```http
POST /v1/speech-to-text/astro/transcribe/async HTTP/1.1\
Host: api.gowajee.ai
Content-Type: application/json
X-Api-Key: ${YOUR_API_KEY}

{
  "audioData": "https://example.com/presigned_url_to_audio_file"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.gowajee.ai/speech-to-text/limitations/http-multipart-form-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
