Skip to main content

install

streaming (stream) and sessions (session) need the ws extra. install "rumik-ai[ws]" or those calls will fail.
python 3.9 to 3.13. the package ships py.typed, so type checkers and editors see full types. remember: you install rumik-ai but import rumikai.

authenticate

the client reads your key from RUMIK_API_KEY:
or pass it explicitly with Rumik(api_key="rk_live_..."). the base URL defaults to https://silk-api.rumik.ai; override it with RUMIK_BASE_URL or base_url=.
your key is never logged, even with debug logging enabled.

your first clip

create returns an Audio, a 24 kHz mono WAV.

reuse and close the client

each client keeps a pool of HTTP connections open, so create one and reuse it across requests instead of building a new client each time. wrap it in a with block and it closes itself when you are done:
or call client.close() yourself. AsyncRumik works the same with async with and await client.close().

next

synthesis

batch, streaming, sessions, and async.

errors & config

exceptions, retries, and configuration.