ShinrAIHosted on STACKIT

Make your first API request

Create a key, select an API contract, send a request, and understand the response.

Your first API call

Log in to Dashboard and complete your cart. Your first managed purchase creates an API key when no active key exists and emails it to your verified account address. Copy it from API keys and store it in a secret manager, outside source code.

Browser-created keys can be recovered for 24 hours. Email can be disabled when creating additional keys. If recovery expires, explicitly replace the key; the old key stops working. Offline-only purchases use installation activation and do not create a managed API key.

API keys authenticate applications. AI connections use MCP to let an assistant access tools with your chosen permissions; connecting an assistant does not automatically protect unrelated chat messages.

Production base URL: https://api.getshinrai.com

curl https://api.getshinrai.com/v2/detect \
  -H "Authorization: Bearer $SHINRAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Emma Weber, emma@example.com"}'
Example output (simulated)

Simulated JSON excerpt for the command above. Your detections, replacement values and balance may differ.

{
  "offset_unit": "codepoint",
  "engine": {
    "model": "shinrai-v1.5",
    "layers_run": ["model", "pattern"],
    "degraded": false
  },
  "results": [
    {
      "input_id": "1",
      "status": "ok",
      "entities": [
        {
          "id": "e1",
          "type": "PERSON",
          "span": {"start": 0, "end": 10},
          "confidence": 0.98,
          "source": "model"
        },
        {
          "id": "e2",
          "type": "EMAIL",
          "span": {"start": 12, "end": 28},
          "confidence": 1.0,
          "source": "pattern"
        }
      ]
    }
  ],
  "usage": {
    "records": 1,
    "weighted_records": 1.0,
    "tier": "standard",
    "charged": true,
    "balance_after": 9999.0
  }
}

The response lists the entities of each input with type, span and confidence, the engine that ran, and the usage with the remaining balance. This short Standard request uses one record. Entity predictions depend on the model and input.

This example uses the native PII API v2. The offline edition serves the native API v1 until its image includes v2.

Native API v2 guide →

Use your preferred client

curl https://api.getshinrai.com/v2/detect \
  -H "Authorization: Bearer $SHINRAI_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"text":"Emma Weber, emma@example.com"}'