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

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 or Base64 with HTTP application/json requests to handle audio file uploads.

We recommended using Presigned URLs over Base64 to avoid HTTP 413 Payload Too Large.

Example Request for Astro Model

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"
}

Last updated