KRINO MATRIX

// 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

  1. 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:

    Shell
    export 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.

  2. Install the SDK

    Shell
    pip install krino-world

    Python 3.10 or newer; its only dependency is httpx. No Python? Everything is a plain HTTP endpoint.

  3. Say hello

    Python
    from 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"])

    To show the reply as it's written, stream it:

    Python
    for 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

ItemDetails
Base URLhttps://krinomatrix.com/global/products/world/api
AuthenticationCreate an API key in Settings and send Authorization: Bearer <key>
FormatJSON (UTF-8) both ways; streamed replies are server-sent events; speech comes back as audio
LimitsEach 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 sourceThe SDK and API definitions are Apache-2.0: GitHub

Questions, higher limits or a test account: write to support@krinomatrix.com