Capabilities

Audio: speech, music and transcription

Turn text into natural speech (/v1/audio/speech) and audio into text (/v1/audio/transcriptions). Both endpoints are OpenAI SDK compatible — point your existing client at https://api.nicrron.ai/v1 and it works. Speech and transcription are synchronous: one request, one response, done in seconds. Music and sound effects (/v1/audio/generations) are jobs, like video.

1. Text to speech

Send text (up to 4,096 characters per request), get back an audio stream. Billing is per input character, so you know the cost before you call: this entire paragraph would cost a fraction of a cent.

TypeScript (OpenAI SDK)
import OpenAI from "openai";
import { writeFile } from "node:fs/promises";

const client = new OpenAI({
  baseURL: "https://api.nicrron.ai/v1",
  apiKey: process.env.NICRRON_API_KEY,
});

const speech = await client.audio.speech.create({
  model: "openai/tts-1",
  input: "Welcome to Nicrron — one API key for every model.",
  voice: "nova",           // alloy (default), echo, fable, onyx, nova, shimmer, ...
  response_format: "mp3",  // mp3 (default), opus, aac, flac, wav, pcm
  speed: 1.0,              // 0.25 – 4.0
});

await writeFile("welcome.mp3", Buffer.from(await speech.arrayBuffer()));
cURL
curl https://api.nicrron.ai/v1/audio/speech \
  -H "Authorization: Bearer $NICRRON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "openai/tts-1-hd", "input": "High fidelity narration.", "voice": "onyx"}' \
  --output narration.mp3
ModelPriceExample: 1,000-word article (~5,500 chars)Pick it when
openai/tts-1$15/1M chars≈ $0.08Low latency matters: voice assistants, real-time replies, drafts. The low-cost default.
openai/tts-1-hd$30/1M chars≈ $0.17Quality matters: podcasts, audiobooks, published narration. Same voices, cleaner audio.
elevenlabs/eleven-v3$100/1M chars≈ $0.55Performance matters: characters, trailers, ads. Takes acting directions and can time each word. mp3 only; needs credit from a top-up or a promo code.

For text longer than 4,096 characters, split on paragraph boundaries and concatenate the audio segments — the same voice stays consistent across requests. OpenAI shuts down tts-1 and tts-1-hd on 6 January 2027.

Acting directions and word timings

With elevenlabs/eleven-v3, say how a line is read in instructions (or write ElevenLabs audio tags such as [laughs] into the text). Voices: Rachel (default), Aria, Roger, Sarah, Laura, Charlie, George, Callum, River, Liam, Charlotte, Alice, Matilda, Will, Jessica, Eric, Chris, Brian, Daniel, Lily and Bill. Add timestamps: true to get JSON back with the audio and when each word is spoken, for captions.

cURL
curl https://api.nicrron.ai/v1/audio/speech \
  -H "Authorization: Bearer $NICRRON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "elevenlabs/eleven-v3", "input": "Do not open the door.", "voice": "George",
       "instructions": "whispering, afraid", "timestamps": true}'
# -> { "audio": "<base64 mp3>", "words": [{ "word": "Do", "start": 0.21, "end": 0.34 }, ...], "cost": 0.0045 }

2. Transcription

Upload an audio file (mp3, mp4, wav, webm, m4a — up to 25 MB), get the transcript back. Powered by openai/whisper-1 at $0.006 per minute of audio — a one-hour meeting costs about $0.38. You're billed on the actual audio duration reported by the model, never on file size.

TypeScript (OpenAI SDK)
import OpenAI from "openai";
import fs from "node:fs";

const client = new OpenAI({
  baseURL: "https://api.nicrron.ai/v1",
  apiKey: process.env.NICRRON_API_KEY,
});

const result = await client.audio.transcriptions.create({
  file: fs.createReadStream("meeting.mp3"),
  model: "whisper-1", // "openai/whisper-1" also accepted
});

console.log(result.text);
cURL — with timestamps
curl https://api.nicrron.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer $NICRRON_API_KEY" \
  -F file=@meeting.mp3 \
  -F model=openai/whisper-1 \
  -F response_format=verbose_json
# -> { "text": "...", "duration": 3612.4, "segments": [ ... ] }
  • response_format: json (default, just the text), text (plain text body), or verbose_json (adds duration, language, and per-segment timestamps). srt/vtt subtitle formats are not supported yet.
  • Whisper handles 90+ languages and translates accents/noise well — no language parameter needed for auto-detection.
  • Files over 25 MB: compress to mp3/opus first (a 1-hour mp3 at 64 kbps is ~28 MB; at 32 kbps ~14 MB with negligible accuracy loss).

3. Music and sound effects

POST /v1/audio/generations starts a job and answers 202 with its id; read it at /v1/audio/generations/{id} and download the file from its content_url, as with video. The price is charged when the job starts and refunded if it fails; POST /v1/media/quote tells you first.

cURL — a 45-second score, instrumental
curl https://api.nicrron.ai/v1/audio/generations \
  -H "Authorization: Bearer $NICRRON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "elevenlabs/music", "prompt": "Warm cinematic strings and soft piano, hopeful, slow build",
       "duration": 45, "instrumental": true}'
# -> { "id": "vid-…", "object": "audio.generation", "status": "queued", "cost": 0.63 }
ModelPricePick it when
elevenlabs/music$0.60/min, whole minutesScores and songs, 3 s to 10 min, with or without vocals. Send sections (each with its own seconds, styles and lyrics) to fit music to an edit. Needs a duration or sections.
stability/stable-audio-2.5$0.20 per clipInstrumental music and sound design up to 190 s, cheaply.
minimax/music-2.5$0.15 per songA song sung from your lyrics ([Verse], [Chorus] tags). The model picks the length.
elevenlabs/sound-effects-v3$0.002/sA described sound, 0.5–30 s (5 s unless you set duration); loop: true for seamless ambience. Replaces v2, which retires on 2027-01-31.
elevenlabs/sound-effects-v2$0.002/sA described sound, 0.5–22 s (5 s unless you set duration); loop: true for seamless ambience.

To give a silent clip sound that matches its picture (footsteps, rain, engines), send it to mmaudio/v2 on /v1/videos/generations as an inline video_url of 1–30 s ($0.001/s). Music and sound jobs need credit from a top-up or a promo code, like video.

4. Billing and errors

  • TTS is charged by input character count at request time — deterministic, visible in your dashboard logs immediately.
  • Transcription is charged after the fact from the audio duration Whisper itself reports — the fairest possible meter.
  • 402 means insufficient credits (nothing charged); 400 means an invalid parameter with details; 404 an unknown model slug.
  • Speech synthesis input text and uploaded audio stream through in memory only and are never stored — like chat prompts (see Data privacy). Music and sound effect jobs are kept like video and image jobs: the prompt and the file for 30 days.