Skip to main content
Send one short audio file to the REST endpoint and get its transcript back. Prisma v3.0 works out which Indian language or English is being spoken, so you do not need to know the language in advance. You need an audio file of up to 30 seconds in WAV, MP3, OGG, FLAC, AAC or M4A. The examples call it clip.wav. If you do not have one, download a Hindi sample:
There are clips for the other languages on Sample audio.
1

Create an API key

Sign in to the Gnani API dashboard and generate an API key.
2

Set your key

The examples read your key from the GNANI_API_KEY environment variable, so it never appears in your code. Set it in the terminal you will run the examples from:
If you use a .env file, load it with a library such as python-dotenv or dotenv, and keep the file out of version control.
3

Install

cURL is preinstalled on macOS, Linux and Windows 10 or later.
4

Run

Save the code as a file and run it from the folder that contains clip.wav.
Run the Python examples with python quickstart.py and the Node.js example with node quickstart.mjs.
5

Check the output

A successful request returns 200 and a body like this:
transcript is the text of what was said, and detected_language_code is the language it is in. Keep request_id if you need to contact support about this request.

If it didn’t work

Every error and its body is listed in the Error Reference.

Next

Prisma v3.0

Language detection, output styles and context hints.

Realtime transcription

Stream live audio over a WebSocket and get text as people speak.

Batch transcription

Transcribe many files, or files longer than 30 seconds.
Last modified on December 2, 2026