install
py.typed, so type checkers and editors see
full types. remember: you install rumik-ai but import rumikai.
authenticate
the client reads your key fromRUMIK_API_KEY:
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 awith block and it
closes itself when you are done:
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.