// DEVELOPERS
Build with KRINO
Bring AI characters that remember you into your own app over HTTP or with the Python SDK: chat, memory, voice and vision. The KRINO WORLD web app uses the very same API, so anything it does, you can do.
Quick start
Create an API key
Sign in to KRINO WORLD and create one under Settings → API keys. It starts with
km_, is shown only once and stays valid until you delete it. Keep it like a password; an environment variable is easiest:Shellexport KRINO_API_KEY=km_...Accounts and keys belong to one region: a key from this site works only with this site’s API, not with the mainland China site.
Install the SDK
Shellpip install krino-worldPython 3.10 or newer; its only dependency is httpx. No Python? Everything is a plain HTTP endpoint.
Say hello
Pythonfrom krino_world import Client with Client(region="global") as kw: # reads the key from KRINO_API_KEY; or pass api_key='km_...' character = kw.characters()[0] # a new account already has the official characters session = kw.start_session(character["id"]) print(session["greeting"]) turn = kw.send(session["id"], "How was your day?") print(turn["reply"]["content"])cURLAPI=https://krinomatrix.com/global/products/world/api # 1. Pick a character and start a session (KRINO_API_KEY is the key from Settings) CHARACTER_ID=$(curl -s $API/characters -H "Authorization: Bearer $KRINO_API_KEY" | jq -r '.[0].id') SESSION_ID=$(curl -s $API/sessions -H "Authorization: Bearer $KRINO_API_KEY" -H 'Content-Type: application/json' \ -d "{\"character_id\": \"$CHARACTER_ID\"}" | jq -r .id) # 2. Say something curl -s $API/sessions/$SESSION_ID/messages -H "Authorization: Bearer $KRINO_API_KEY" -H 'Content-Type: application/json' \ -d '{"text": "How was your day?"}' | jq -r .reply.contentTo show the reply as it's written, stream it:
Pythonfor event in kw.stream(session["id"], "Tell me a story"): if event.name == "delta": print(event.data["text"], end="", flush=True) elif event.name == "error": print("\n", event.data["message"])
Basics
| Item | Details |
|---|---|
| Base URL | https://krinomatrix.com/global/products/world/api |
| Authentication | Create an API key in Settings and send Authorization: Bearer <key> |
| Format | JSON (UTF-8) both ways; streamed replies are server-sent events; speech comes back as audio |
| Limits | Each account has a daily credit budget; when it runs out you get 429 until the next day |
| Errors | {"detail": "…"} with a human-readable message. Error codes |
| Open source | The SDK and API definitions are Apache-2.0: GitHub |
Questions, higher limits or a test account: write to support@krinomatrix.com