{"article":{"title":"Console guide","breadcrumb":["Getting started","Console guide"],"body":"**What this solves**: This strings the console actions into one path you can follow, from creating a key to configuring alerts, and tells you how to verify each step once it's done.\n\nThe actions in the console line up in the order you actually perform them: **which page to open → what to do → how to verify it's done**. The six steps below are written for an individual developer. Step 1 is creating an Inference key. Each step says how to verify it once it is done.\n\nIf you or one service calls models directly, use an Inference key. To issue keys, set limits, and hand them out to end users, use a Master key plus Child keys. See [Provisioning Key](provisioning). That path does not start at step 1 of these six.\n\n![The six console steps, each with \"how to verify\"](diagram:en-console-guide-journey)\n\n### 1. Create an Inference key\n\n- **Open**: the `API Keys` page.\n- **Do**: click `Create`, choose `Inference` as the type, and write the name so its purpose is clear (e.g. `support-bot-production`).\n- **Verify**:\n  - The key appears in the list, shown as a mask `ak-…3f2a`.\n  - Use it to send a `chat/completions` request from a client; it returns HTTP 200 with model content.\n  - The response headers include `X-Generation-Id`, or the response contains a `gen-...` ID.\n\n> [!WARNING]\n> The full key plaintext **is shown only once, at creation time**; the platform stores only a hash, and it can't be recovered once lost. Copy it and store it in your secret management system right away.\n\n### 2. Add a channel\n\n- **Open**: the `Channels` page → `Add`.\n- **Do**:\n  - Fill `base URL` **only up to `/v1`** (e.g. `https://api.example.com/v1`); what gets appended after that is decided by the Dialect (the differences between each vendor's API).\n  - Choose the Dialect: **OpenAI (messages)** / **Responses (input)** / Anthropic / LM Studio (local) / Custom.\n  - Fill in the credential (for local LM Studio **leave it empty**; Custom is for upstreams that don't follow the path conventions).\n- **Verify**: after saving, run the **three checks** in the order you'll actually use them. None of the three counts as one of your real calls:\n  1. **Probe the Dialect**: send an empty body and see which required field the upstream says is missing, to infer which Dialect it speaks. Costs not a single token.\n  2. **Test connectivity**: confirm the address is reachable, the key is accepted, and the Dialect is right. It gives you **a series of steps**, not a single pass/fail result.\n  3. **Send one sentence**: actually say something to the model. Even if the first two pass, this channel can still fail (misspelled model name, model retired, quota exhausted, content policy block). This step spends real upstream tokens, but is **not billed and does not enter Call Traces**.\n\n> [!WARNING]\n> LM Studio runs on your own machine, but the connection is initiated by **Tare's servers**, so `localhost` is unreachable. Enable LAN serving in LM Studio and fill in a publicly reachable address.\n\n### 3. Enter cost prices\n\n- **Open**: `Channels` → select a channel → `Costs`.\n- **Do**:\n  - Click `Browse upstream models` to fetch the upstream model names — **don't type them by hand**; the key is the model name **on the upstream side** (e.g. `z-ai/glm-5.1`), not the name you use when calling the platform.\n  - Enter Input / Output prices by upstream model name (per million tokens); cache read/write prices are optional.\n- **Verify**: the channel page no longer lists that model under \"missing cost price\"; calls that previously had no price are **backfilled** after entry (using the **current** price).\n\n> [!NOTE]\n> When the upstream reports cost in the response, the cost price table is **not used at all**, and you get accurate attribution without entering a single row. What needs entry is upstreams that don't report cost: self-hosted inference services, some proxies, and local models.\n\n> [!WARNING]\n> Cost prices have **no effective period**: the platform only stores the current value, so after a price change, historical calls are recomputed using the **new price**, not the price at the time. This is a clear source of discrepancy in monthly reconciliation.\n\n### 4. Configure routing\n\n- **Open**: the `Routing` page.\n- **Do**: give a route a model name **identical to the platform default**, i.e. hand it over to your route; choose the upstream name from the dropdown, which lists the models you've **entered cost prices** for on the selected channel.\n- **Verify**:\n  - Call `GET /v1/models` and confirm the model name your business side will use now appears.\n  - Send one more real call to confirm the hit; or, for a single route, run `POST /v1/routing/routes/{routeId}/test` (the three checks — address, credential, Dialect — plus one more: whether the upstream model name actually exists) and `POST /v1/routing/routes/{routeId}/chat` (really sends one sentence). Neither is **billed or enters Call Traces**.\n\n> [!WARNING]\n> The catch-all (model name `*`) **only takes effect when a model has no route at all**. If a model is configured but all its channels fail, the response is a failure — it won't silently switch to another vendor, otherwise you'd get another model's output under the model name you requested with nothing to indicate it.\n\n### 5. View spend\n\n- **Open**: the `Billing` / `Analytics` page.\n- **Do**: before reading the numbers, distinguish two values:\n  - **Charged**: the amount the platform charges you, including the governance fee. It is not the upstream token charge.\n  - **Attributed spend**: how much this call cost **you**, including the portion the provider charges you directly. Use this value when measuring the cost of a single feature.\n- **Verify**: the `Analytics` page puts usage, the share by model, and the success rate together; then use `GET /v1/generation?id=gen-...` to check the cost and latency of a single call.\n\nTo break spend down by customer or business line, looking at the page isn't enough: have your engineering team add attribution fields such as `usage_label` to the request body, or use different child keys to separate customers/business lines.\n\n> [!NOTE]\n> Fields like `usage_label` are recorded by Tare on this call and **stripped before forwarding**, so the provider never sees them.\n\n### 6. Configure alerts\n\n- **Open**: the `Alerts` page.\n- **Do**: rules monitor spend, error rate, and channel failures; the notification channel decides where notifications go (Webhook / Feishu / Lark).\n- **Verify**: after saving, **verify delivery**: check the recent notification records and confirm the target group or Webhook **actually received the message**.\n\n> [!WARNING]\n> A misconfigured Feishu signature check is **silent**: a bot with the check enabled will **reject** unsigned messages, the reason for rejection stays on Feishu's side, and the platform only sees an error code — you get no alert at all. Only you can confirm the state of this toggle.\n\n> [!NOTE]\n> There is no platform-level catch-all notification channel: with no notification channel configured, alerts are recorded as \"send failed\" and stay in that state; they are **not** forwarded to the platform.\n\n### Next steps\n\n- What to confirm before creating a key: [Before you start](before-key).\n- Send your first request: [Quickstart](quickstart).\n- The details of each step: [Channels](channels), [Cost prices](cost-prices), [Routing](routing).\n- Reading numbers and reconciliation: [Cost attribution](attribution), [Statements and invoices](statements), [Reconciliation API](integration-api).\n"},"diagrams":{"en-console-guide-journey":"<svg viewBox=\"0 0 700 338\" width=\"700\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Six console steps, each with how to verify</title>\n  <desc>Six console steps from creating a key to configuring alerts: Inference key, channel, cost prices, routing, spend, alerts. Each card names the page and how to verify the step.</desc>\n  <style>\n    text { font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif; }\n  </style>\n  <defs>\n    <marker id=\"arrow-blue\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#3b82f6\"/>\n    </marker>\n  </defs>\n\n  <!-- 浅色画布 -->\n  <rect x=\"0\" y=\"0\" width=\"700\" height=\"338\" fill=\"#ffffff\"/>\n\n  <!-- 版式算术：\n       六格走「三列两行」，三列宽 200、间距 28，于是 22..222 / 250..450 / 478..678。\n       两行顶边 60 / 178，各 90 高（12px 标题 + 三行 10px），底边 150 / 268。\n       阅读顺序：上排由左到右 1→2→3，落到右下角 4，再沿下排由右到左 4→5→6。\n       - 同排相邻箭头：起点 = 左格右边 + 5，终点 = 右格左边 - 11（左行）；右行方向相反。\n       - 3→4 是同一列的竖直下落：起点 = 上格底边 + 5，终点 = 下格顶边 - 11。\n       内容左右边界 22..678，中心 350；viewBox 宽 = 656 + 两侧各 22 = 700。\n       高度 = 脚注末行基线 313 + 下伸 2.5 + 22px 边距 = 337.5，取整 338。 -->\n\n  <text x=\"350\" y=\"34\" font-size=\"16\" fill=\"#1e293b\" text-anchor=\"middle\">Six console steps, each with how to verify</text>\n\n  <!-- 第 1 层：连线。上排 1→2→3 由左到右；3→4 竖直下落；下排 4→5→6 由右到左。 -->\n  <path d=\"M227,105 L 239,105\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M455,105 L 467,105\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M578,155 L 578,167\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M473,223 L 461,223\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M245,223 L 233,223\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n\n  <!-- 第 2 层：六张卡。上排 1/2/3 在左/中/右，下排 4/5/6 在右/中/左（蛇形）。\n       基线落在 顶边+25 / +43 / +58 / +73（12px 一行，10px 三行）。 -->\n  <rect x=\"22\" y=\"60\" width=\"200\" height=\"90\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"122\" y=\"85\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">1  Inference key</text>\n  <text x=\"122\" y=\"103\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Open · API Keys</text>\n  <text x=\"122\" y=\"118\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Check · HTTP 200 with body</text>\n  <text x=\"122\" y=\"133\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Check · X-Generation-Id</text>\n\n  <rect x=\"250\" y=\"60\" width=\"200\" height=\"90\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"350\" y=\"85\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">2  Connect a channel</text>\n  <text x=\"350\" y=\"103\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Open · Channels</text>\n  <text x=\"350\" y=\"118\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Check · three checks pass</text>\n  <text x=\"350\" y=\"133\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Probe · connect · chat</text>\n\n  <rect x=\"478\" y=\"60\" width=\"200\" height=\"90\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"578\" y=\"85\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">3  Enter cost prices</text>\n  <text x=\"578\" y=\"103\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Open · Channels → Costs</text>\n  <text x=\"578\" y=\"118\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Check · off the missing list</text>\n  <text x=\"578\" y=\"133\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Past calls get backfilled</text>\n\n  <rect x=\"478\" y=\"178\" width=\"200\" height=\"90\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"578\" y=\"203\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">4  Configure routing</text>\n  <text x=\"578\" y=\"221\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Open · Routing</text>\n  <text x=\"578\" y=\"236\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Check · model name is listed</text>\n  <text x=\"578\" y=\"251\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Send a real call to confirm</text>\n\n  <rect x=\"250\" y=\"178\" width=\"200\" height=\"90\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"350\" y=\"203\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">5  View spend</text>\n  <text x=\"350\" y=\"221\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Open · Billing / Analytics</text>\n  <text x=\"350\" y=\"236\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Check · one gen-... cost</text>\n  <text x=\"350\" y=\"251\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Charged vs Attributed spend</text>\n\n  <rect x=\"22\" y=\"178\" width=\"200\" height=\"90\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"122\" y=\"203\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">6  Configure alerts</text>\n  <text x=\"122\" y=\"221\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Open · Alerts</text>\n  <text x=\"122\" y=\"236\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Check · recent notifications</text>\n  <text x=\"122\" y=\"251\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Confirm the target got it</text>\n\n  <!-- 脚注 -->\n  <text x=\"350\" y=\"298\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">These steps are spread across the docs. This page lines them up. How to verify is the step people skip.</text>\n  <text x=\"350\" y=\"313\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Order: top 1→2→3, bottom right to left 4→5→6. Test / Chat is not billed and skips Call Traces.</text>\n</svg>\n"}}