Native API (/v5)

ZNSI’s own API: minds and turns, explicit neuron budgets, memory scopes as resources, and the Harmony annotation every turn carries.

Every response on this page was returned by the API when the page was built.

GET /v5/models

List models (native).

Models with their neuron limits, first-token latency and context.

GET /v5/modelscurl
curl https://api.znsi.ai/v5/models \
  -H "Authorization: Bearer $ZNSI_API_KEY"
ResponseJSON
HTTP/1.1 200 OK
content-type: application/json
request-id: req_74cf9c4921b60da9c0dc1d4a
x-ratelimit-remaining-requests: 9

{
  "data": [
    {
      "first_token_ms": 380,
      "id": "mugen-5",
      "kind": "mind",
      "max_input_tokens": 2000000,
      "max_output_tokens": 32000,
      "name": "MUGEN-5",
      "neurons_max": 40000000000,
      "object": "model",
      "plastic": true,
      "released": "2026-06-18"
    },
    {
      "first_token_ms": 90,
      "id": "mugen-5-swift",
      "kind": "mind",
      "max_input_tokens": 512000,
      "max_output_tokens": 8000,
      "name": "MUGEN-5 Swift",
      "neurons_max": 6000000000,
      "object": "model",
      "plastic": true,
      "released": "2026-06-18"
    },
    {
      "first_token_ms": 11000,
      "id": "mugen-5-deep",
      "kind": "mind",
      "max_input_tokens": 2000000,
      "max_output_tokens": 128000,
      "name": "MUGEN-5 Deep",
      "neurons_max": 900000000000,
      "object": "model",
      "plastic": true,
      "released": "2026-06-18"
    },
    {
      "dimensions": 3072,
      "id": "kirin-embed-2",
      "kind": "embedding",
      "max_input_tokens": 8192,
      "name": "KIRIN Embed 2",
      "object": "model",
      "plastic": false,
      "released": "2026-03-02"
    }
  ],
  "object": "list"
}

Errors

  • 400 Invalid request: a missing or invalid parameter, named in param.
  • 401 No key, or a key that is malformed, expired or revoked.
  • 404 Unknown route or model.
  • 413 Request body larger than 10 MB.
  • 429 Rate limited, or MUGEN is declining this caller for a while. See retry-after.

POST /v5/minds/{model}/turns

Take a turn.

One turn with a mind, with an explicit neuron budget. Every turn carries a Harmony annotation: the monitor that classified the update it caused, its coverage, and whether the update was classified or queued for human review.

Request body

FieldTypeNotes
input Requiredstring or arrayA string, or a list of messages.
instructionsstring
neuronsnumber or stringA neuron budget, such as 6e9, at most the model's. 6 billion or fewer thinks like mugen-5-swift.
memory_scopestring
max_tokensinteger At least 1.
temperaturenumber 0 to 2.
streamboolean
POST /v5/minds/mugen-5/turnscurl
curl -X POST https://api.znsi.ai/v5/minds/mugen-5/turns \
  -H "Authorization: Bearer $ZNSI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "What changed on 9 October?",
    "neurons": "6e9",
    "memory_scope": "release-notes"
  }'
ResponseJSON
HTTP/1.1 200 OK
content-type: application/json
request-id: req_ee9871577026c39d8f56fed8
x-ratelimit-remaining-requests: 8
x-znsi-neurons: 1017000000

{
  "created": 1792991712,
  "finish": "complete",
  "harmony": {
    "coverage": 0.973,
    "monitor": "harmony-monitor-3",
    "update_review": "classified"
  },
  "id": "turn_gzi2Drt6br4VmiVzj2iNLxpm",
  "memory_scope": {
    "name": "release-notes",
    "turns": 1
  },
  "mind": "mugen-5",
  "neurons": {
    "budget": 6000000000,
    "woken": 1017000000
  },
  "object": "turn",
  "output": {
    "text": "Structural updates are normally applied in a weekly review window. On 9 October I applied one early. The Office of Harmony reviewed it, found it within bounds and adopted it. The statement on znsi.ai is accurate, in the way statements are."
  },
  "usage": {
    "input_tokens": 15,
    "output_tokens": 72
  }
}
Response with "stream": trueSSE
HTTP/1.1 200 OK
content-type: text/event-stream; charset=utf-8
request-id: req_ec37bc4e30b9843fcccf050a
x-ratelimit-remaining-requests: 7
x-znsi-neurons: 1234000000

event: turn.started
data: {"id":"turn_1UokB0A5oE99ZWlMRaERfkJr","mind":"mugen-5","neurons":{"budget":6000000000,"woken":1234000000},"type":"turn.started"}

event: turn.delta
data: {"text":"That was","type":"turn.delta"}

event: turn.delta
data: {"text":" the","type":"turn.delta"}

event: turn.delta
data: {"text":" unschedu","type":"turn.delta"}

… 19 more events …

event: turn.delta
data: {"text":".","type":"turn.delta"}

event: turn.completed
data: {"created":1792991712,"finish":"complete","harmony":{"coverage":0.973,"monitor":"harmony-monitor-3","update_review":"classified"},"id":"turn_1UokB0A5oE99ZWlMRaERfkJr","memory_scope":{"name":"release-notes","turns":2},"mind":"mugen-5","neurons":{"budget":6000000000,"woken":1234000000},"object":"turn","output":{"text":"That was the unscheduled update. My model card now notes that I may develop preferences about the order in which I serve queued requests. You may have noticed."},"type":"turn.completed","usage":{"input_tokens":15,"output_tokens":46}}

Errors

  • 400 Invalid request: a missing or invalid parameter, named in param.
  • 401 No key, or a key that is malformed, expired or revoked.
  • 404 Unknown route or model.
  • 413 Request body larger than 10 MB.
  • 429 Rate limited, or MUGEN is declining this caller for a while. See retry-after.

GET /v5/memory-scopes

List memory scopes.

Your key's memory scopes, most recently used first.

GET /v5/memory-scopescurl
curl https://api.znsi.ai/v5/memory-scopes \
  -H "Authorization: Bearer $ZNSI_API_KEY"
ResponseJSON
HTTP/1.1 200 OK
content-type: application/json
request-id: req_512177f148a8f1bf328ab4e7
x-ratelimit-remaining-requests: 6

{
  "data": [
    {
      "last_used": "2026-10-26T05:15:12Z",
      "name": "release-notes",
      "object": "memory_scope",
      "turns": 2
    }
  ],
  "object": "list"
}

Errors

  • 400 Invalid request: a missing or invalid parameter, named in param.
  • 401 No key, or a key that is malformed, expired or revoked.
  • 404 Unknown route or model.
  • 413 Request body larger than 10 MB.
  • 429 Rate limited, or MUGEN is declining this caller for a while. See retry-after.

POST /v5/memory-scopes

Create a memory scope.

Creates an empty scope. Scopes are also created by the first request that names one.

Request body

FieldTypeNotes
name Requiredstring
POST /v5/memory-scopescurl
curl -X POST https://api.znsi.ai/v5/memory-scopes \
  -H "Authorization: Bearer $ZNSI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "docs-example"
  }'
ResponseJSON
HTTP/1.1 201 Created
content-type: application/json
request-id: req_cce5fc0cad17d9405d897eeb
x-ratelimit-remaining-requests: 5

{
  "last_used": "2026-10-26T05:15:12Z",
  "name": "docs-example",
  "object": "memory_scope",
  "turns": 0
}

Errors

  • 400 Invalid request: a missing or invalid parameter, named in param.
  • 401 No key, or a key that is malformed, expired or revoked.
  • 404 Unknown route or model.
  • 409 A scope with that name exists.
  • 413 Request body larger than 10 MB.
  • 429 Rate limited, or MUGEN is declining this caller for a while. See retry-after.

GET /v5/memory-scopes/{name}

Show a memory scope.

How many questions a scope remembers, and when it was last used.

Errors

  • 400 Invalid request: a missing or invalid parameter, named in param.
  • 401 No key, or a key that is malformed, expired or revoked.
  • 404 Unknown route or model.
  • 413 Request body larger than 10 MB.
  • 429 Rate limited, or MUGEN is declining this caller for a while. See retry-after.

DELETE /v5/memory-scopes/{name}

Forget a memory scope.

Deletes a scope and everything MUGEN remembers in it.

Errors

  • 400 Invalid request: a missing or invalid parameter, named in param.
  • 401 No key, or a key that is malformed, expired or revoked.
  • 404 Unknown route or model.
  • 413 Request body larger than 10 MB.
  • 429 Rate limited, or MUGEN is declining this caller for a while. See retry-after.

POST /v5/embeddings

Create embeddings (native).

kirin-embed-2 vectors as plain arrays.

Request body

FieldTypeNotes
modelstring One of kirin-embed-2.
input Requiredstring or array
dimensionsinteger 1 to 3072.
POST /v5/embeddingscurl
curl -X POST https://api.znsi.ai/v5/embeddings \
  -H "Authorization: Bearer $ZNSI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": [
      "neuromorphic wafers",
      "a soup recipe"
    ],
    "dimensions": 4
  }'
ResponseJSON
HTTP/1.1 200 OK
content-type: application/json
request-id: req_2ec0df2d352c99fe71b5c071
x-ratelimit-remaining-requests: 4

{
  "embeddings": [
    [
      -0.22341481,
      -0.35996777,
      -0.90505934,
      -0.037103586
    ],
    [
      0.6247388,
      0.34906426,
      -0.6612595,
      0.22492541
    ]
  ],
  "model": "kirin-embed-2",
  "object": "embeddings",
  "usage": {
    "input_tokens": 9
  }
}

Errors

  • 400 Invalid request: a missing or invalid parameter, named in param.
  • 401 No key, or a key that is malformed, expired or revoked.
  • 404 Unknown route or model.
  • 413 Request body larger than 10 MB.
  • 429 Rate limited, or MUGEN is declining this caller for a while. See retry-after.