Skip to main content
Generate a curl command for making TTS API requests. The generated command uses $(rime key) as a shell expression, so it resolves your API key automatically when you paste and run it. Run without arguments to see an example.
rime curl [TEXT]
When providing text, --speaker and --model-id are required. When run without arguments, defaults to an example request.

Optional flags

FlagShortDefaultDescription
--speaker-sastra*Voice speaker to use
--model-id-marcana*Model ID
--lang-lengLanguage code
--speed-alpha1Speed multiplier — must be greater than 0
--sampling-rateOutput sampling rate in Hz. Arcana: 8000, 16000, 22050, 24000, 44100, 48000, 96000. Mist: 400044100
--onelinefalseOutput as a single line for easy copy-paste
--api-urlAPI URL override

Arcana/arcanav2 flags

FlagDefaultDescription
--temperature0.5Sampling temperature (0–1)
--top-p1Top-p nucleus sampling (0–1)
--max-tokens1200Max output tokens (200–5000)
--repetition-penalty1.5Repetition penalty (1–2)

Mist/mistv2 flags

FlagDescription
--no-text-normalizationDisable text normalization
--pause-between-bracketsInsert pause at bracketed markers
--phonemize-between-bracketsPhonemize text in brackets
--inline-speed-alphaComma-separated per-segment speed values
--save-oovsSave out-of-vocabulary words
*Defaults apply only when run without arguments. When text is provided, --speaker and --model-id are required.

Examples

# Show example curl command
rime curl

# Generate curl for custom text
rime curl "Hello from Rime" -s celeste -m arcana

# Single-line output
rime curl "Hello" -s astra -m arcana --oneline