OpenCheap MCP
An official MCP server that exposes OpenCheap's Management API operations as tools, allowing agents to call models, manage API keys with budgets, monitor usage, configure gateways, and sell spare inference capacity.
Endpoint and access
Optional OAuth sign-in: the endpoint lists tools without signing in. Account tools can prompt OAuth in your client; other task prerequisites may also apply.
https://app.opencheap.si/api/v1/mcpWhat its tools do
73 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Read-only (35)
get_accountget_balancelist_budgetsget_account_budgetlist_customersget_customerlist_customer_keyslist_customer_ledgerlist_gatewaysget_gatewaygateway_decisionsgateway_statslist_instancesget_instancelist_instance_typeslist_keysget_key_budgetlist_ledgerlist_management_keyslist_modelsget_order_booklist_supply_credentialsget_supply_earningslist_supply_earningsget_supply_joblist_offersget_offerget_offer_healthget_payout_addressget_supply_payoutslist_supply_presetsget_sellerget_usagelist_walletsget_whoami
Can change data (38)
update_accountset_account_budgetremove_account_budgetcreate_customerupdate_customerdelete_customercredit_customercreate_customer_keyrevoke_customer_keycreate_gatewayupdate_gatewaydelete_gatewaystart_instanceupdate_instancestop_instancerequest_dedicated_hardwarecreate_keyupdate_keyrevoke_keyset_key_budgetremove_key_budgetcreate_supply_credentialrevoke_supply_credentialdiscover_modelsrotate_supply_credentialcreate_offersset_offer_pricingdiscard_offercancel_offerpause_offerpublish_offerreset_offer_healthresume_offertest_offerbulk_offer_actionupdate_sellercreate_topup_checkoutremove_wallet
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Official MCP Registry namespace is tied to opencheap.si ·
- Passed Endpoint is on the registry namespace domain ·
- Uptime 100% over 90 days
- Availability 3 of 3 checks passed in 30 days
What you can do with it
- Call AI models and check balance
- Create API keys with monthly spend limits
- Configure gateways for fallbacks and guardrails
- Sell spare server capacity via offers
Source and maintenance
Protocol and capabilities
- Server
- opencheap 1.0.0
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 73 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": false
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
73 advertised
get_account — Get the account
Get the account The account, its prepaid balance (your calls and your customers' calls are debited from it), what it spent this calendar month at our price, and its default gateway.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Get the account",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}update_account — Update the account
Update the account Changes the account name, the low-balance alert threshold and the default gateway. Fields left out are unchanged; `name: null` clears the name, `defaultGateway: null` the default gateway. The order a request runs under: its x-klinn-gateway header, else its key's gateway, else the account's default gateway. A default gateway with guardrails locks the keys under it: a header naming another gateway is 403 gateway_locked.
{
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
],
"maxLength": 80,
"description": "null clears it."
},
"lowBalanceUsd": {
"type": "number",
"maximum": 100000,
"minimum": 0
},
"defaultGateway": {
"type": [
"string",
"null"
],
"maxLength": 48,
"description": "A chat gateway's name to make the account's default (every own model key without a gateway of its own runs through it), or null to clear it. A decisions gateway is refused: attach it to a key instead."
}
},
"additionalProperties": false
}{
"title": "Update the account",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}get_balance — Get the balance
Get the balance The prepaid balance and how to top it up from code: over x402 with USDC (when switched on) or with a card link for a person (the `create_topup_checkout` tool). Takes an agent session or a management key like every v1 operation; a model key gets 403 wrong_key_type. Also served at /v1/balance, which also accepts the account's model keys (kl_live_).
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Get the balance",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_budgets — List budgets
List budgets The account's budget (null without one) and each of the account's working model keys, its customers' keys included, with its budget (null without one), each limit with what was spent in its current window, at our price. Every key is listed, not paged; each one takes the `set_key_budget` tool. A key's monthly limit is the key's monthlyLimitUsd (the same cap create_key sets). Windows are UTC: the day from midnight, the week from Monday, the month from the 1st, lifetime from when that limit was set.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "List budgets",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_account_budget — Get the account budget
Get the account budget The account's budget: every key's spend together, its customers' keys included (their calls debit the account's balance), with each limit's spend this window. 404 not_found when the account has none. Windows are UTC: the day from midnight, the week from Monday, the month from the 1st, lifetime from when that limit was set.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Get the account budget",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}set_account_budget — Set the account budget
Set the account budget Sets or replaces the account's budget: daily, weekly, monthly and lifetime limits at our price (at least one), the alert share and the mode. hard_stop refuses the key's requests with a 402 once a limit is reached (the request that crosses it can go a little over: the check runs before a request, its cost lands after, and the Model API keeps the key's state for about a minute); alert_only never blocks and sends one email per limit and window when the spend crosses alertPct. A limit left out or null is no limit. Requests follow within about a minute.
{
"type": "object",
"required": [
"limits"
],
"properties": {
"mode": {
"enum": [
"hard_stop",
"alert_only"
],
"type": "string",
"default": "hard_stop",
"description": "hard_stop refuses requests with a 402 at a limit; alert_only never blocks (it needs alertPct above 0)."
},
"limits": {
"type": "object",
"properties": {
"daily": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "Per UTC day, from midnight."
},
"weekly": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "Per ISO week, from Monday 00:00 UTC."
},
"monthly": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "Per calendar month, from the 1st 00:00 UTC. On a key, this is its monthlyLimitUsd."
},
"lifetime": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "For good, from when this limit was set."
}
},
"description": "Limits in USD at our price, to the cent. At least one; null or left out is no limit."
},
"alertPct": {
"type": "integer",
"default": 80,
"maximum": 100,
"minimum": 0,
"description": "Email once per limit and window when the spend crosses this share of a limit. 0 turns the alert off."
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
}
},
"additionalProperties": false
}{
"title": "Set the account budget",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}remove_account_budget — Remove the account budget
Remove the account budget Removes the account's budget: the keys' own budgets stay. 404 not_found when there is none. 204 with no body.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Remove the account budget",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}list_customers — List customers
List customers Your customers, newest first. Filter by your own id (externalRef, exact), a search over name, email and externalRef (q, case-insensitive), or status.
{
"type": "object",
"properties": {
"q": {
"type": "string",
"maxLength": 200,
"description": "Case-insensitive substring of name, email or externalRef."
},
"limit": {
"type": "integer",
"default": 50,
"maximum": 200,
"minimum": 1,
"description": "Page size, 1 to 200."
},
"cursor": {
"type": "string",
"description": "The `nextCursor` of the previous page, unchanged."
},
"status": {
"enum": [
"active",
"paused"
],
"type": "string"
},
"externalRef": {
"type": "string",
"maxLength": 200,
"description": "Exact match on your own id."
}
},
"additionalProperties": false
}{
"title": "List customers",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}create_customer — Create a customer
Create a customer Creates a customer (201): a group of keys with its own monthly limit, balance record and usage. With an externalRef that already exists, returns that one with 200 instead, so a signup webhook can be retried safely. Its usage is debited directly from your balance at our price, so its keys work without any credit. With billingMode limit, or a spendLimitUsd sent alone, spendLimitUsd caps its monthly usage (PATCH sets it for any customer). initialCreditUsd only records a payment for your books. Amounts are at our price. At most 10,000 customers per account: past it, 409 limit_reached.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"email": {
"type": [
"string",
"null"
],
"format": "email"
},
"billingMode": {
"enum": [
"prepaid",
"limit"
],
"type": "string",
"default": "prepaid"
},
"externalRef": {
"type": [
"string",
"null"
],
"maxLength": 200,
"description": "Your own id. Creating a customer with an externalRef that already exists returns that one (200) instead of a new one, so a signup webhook can be retried safely."
},
"spendLimitUsd": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "billingMode limit only: monthly spending cap at our price. PATCH sets it for any customer."
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
},
"initialCreditUsd": {
"type": "number",
"minimum": 0,
"description": "billingMode prepaid only: a payment to record as the opening balanceUsd. Not needed for its keys to work. 0, or from 0.00000001 to less than 1,000,000.",
"exclusiveMaximum": 1000000
}
},
"additionalProperties": false
}{
"title": "Create a customer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}get_customer — Get a customer
Get a customer One of your customers.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The customer id."
}
},
"additionalProperties": false
}{
"title": "Get a customer",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}update_customer — Update a customer
Update a customer Changes only the fields you send. Pause a customer to stop its keys; spendLimitUsd sets its monthly limit and null removes it.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The customer id."
},
"name": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"email": {
"type": [
"string",
"null"
],
"format": "email"
},
"status": {
"enum": [
"active",
"paused"
],
"type": "string"
},
"externalRef": {
"type": [
"string",
"null"
],
"maxLength": 200,
"description": "Must be unique per account (409 conflict otherwise); null clears it."
},
"spendLimitUsd": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "Monthly spending cap at our price; null removes it."
}
},
"additionalProperties": false
}{
"title": "Update a customer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}delete_customer — Delete a customer
Delete a customer Deletes the customer, its balance history and all its keys, which stop working at once. Cannot be undone.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The customer id."
}
},
"additionalProperties": false
}{
"title": "Delete a customer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}credit_customer — Record a customer payment
Record a customer payment Records on balanceUsd a payment (positive) or a correction (negative). For your books only: its calls never draw on it and are not blocked at zero, because its usage is debited directly from your balance. Your own balance is untouched. Idempotency-Key is required so a retry never records twice. Returns the customer.
{
"type": "object",
"required": [
"id",
"amountUsd",
"idempotencyKey"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The customer id."
},
"note": {
"type": [
"string",
"null"
],
"maxLength": 200,
"description": "Shown in the customer's ledger. Defaults to Credit or Debit."
},
"amountUsd": {
"not": {
"const": 0
},
"type": "number",
"description": "Non-zero (at least 0.00000001 either way) and less than 1,000,000 either way. Positive to record a payment; negative to correct. 400 when balanceUsd would leave the range -999,999.99999999 to 999,999.99999999.",
"exclusiveMaximum": 1000000,
"exclusiveMinimum": -1000000
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Required. A unique string for this change (e.g. the payment id): repeating it never applies the change twice."
}
},
"additionalProperties": false
}{
"title": "Record a customer payment",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}list_customer_keys — List a customer's keys
List a customer's keys The customer's model keys, newest first: working keys only unless includeRevoked=true. Secrets are never shown again.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The customer id."
},
"includeRevoked": {
"type": "boolean",
"default": false,
"description": "Also list revoked keys."
}
},
"additionalProperties": false
}{
"title": "List a customer's keys",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}create_customer_key — Create a key for a customer
Create a key for a customer Creates a model key for the customer. The secret is in this response only. Calls with it are billed to your balance at our price. At most 50 working keys per customer, and 5,000 new customer keys a day per account: past either, 409 limit_reached.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The customer id."
},
"name": {
"type": "string",
"default": "default",
"maxLength": 64,
"minLength": 1
},
"allowedModels": {
"type": [
"array",
"null"
],
"items": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"maxItems": 1000,
"description": "Models the key may call; null or empty for every model."
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
},
"monthlyLimitUsd": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "Monthly cap of this key at our price (what its calls cost you), calendar month; null for none. spendLimitUsd caps the whole customer."
}
},
"additionalProperties": false
}{
"title": "Create a key for a customer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}revoke_customer_key — Revoke a customer's key
Revoke a customer's key Revokes the key; it stops working at once. 404 when the key is not this customer's or is already revoked.
{
"type": "object",
"required": [
"id",
"keyId"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The customer id."
},
"keyId": {
"type": "string",
"format": "uuid",
"description": "The key id."
}
},
"additionalProperties": false
}{
"title": "Revoke a customer's key",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}list_customer_ledger — List a customer's recorded payments
List a customer's recorded payments Payments and corrections you recorded for this customer, newest first. Its usage is not here: it is debited from your balance (see /ledger and /usage).
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The customer id."
},
"limit": {
"type": "integer",
"default": 50,
"maximum": 200,
"minimum": 1,
"description": "Page size, 1 to 200."
},
"cursor": {
"type": "string",
"description": "The `nextCursor` of the previous page, unchanged."
}
},
"additionalProperties": false
}{
"title": "List a customer's recorded payments",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_gateways — List gateways
List gateways Every gateway of the account, A to Z by name, with its kind, its default model and how many rules, questions and keys it has. A gateway is a named config a request runs through. A chat gateway (kind chat) routes the chat and messages calls your code sends: fallbacks between models, retries, a response cache, a rate limit, a time limit and the models allowed. A decision gateway (kind decision) is your own classifier: it keeps a decision model and the questions, so a call to the decisions endpoint sends only the text. Attach one to a key as its default (the `update_key` tool) or name it per request with the x-klinn-gateway header; the header wins, except on a key locked to its gateway. A key with a gateway of its own, or under an account default gateway with guardrails, is locked to it: a header naming another is a 403 gateway_locked.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "List gateways",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}create_gateway — Create a gateway
Create a gateway Saves a new gateway from its config, validated and normalized; the stored config comes back. The name is its id here and in the x-klinn-gateway header: a-z, 0-9 and -, at most 48 characters, and not new, playground, rules or templates (the console's own pages); a name already in use is 409 conflict. A chat gateway needs only a name; a fallback or a split needs at least two targets. A decision gateway (kind decision) needs a default_model that is a decision model (kind decisions in the `list_models` tool) and 1 to 128 questions. At most 50 gateways an account. Keys are attached with the `update_key` tool. At most 50 gateways per account: past it, 409 limit_reached.
{
"type": "object",
"required": [
"name"
],
"properties": {
"data": {
"type": "object",
"properties": {
"zdr": {
"type": "boolean",
"description": "Zero data retention: requests under this gateway are kept off community-supplied capacity."
}
},
"description": "Data handling. Left out: no constraint."
},
"kind": {
"enum": [
"chat",
"decision"
],
"type": "string",
"default": "chat",
"description": "chat routes the requests your code sends; decision is a classifier: its default model is a decision model and its questions are saved here."
},
"name": {
"type": "string",
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$",
"description": "Its id in this API and in the x-klinn-gateway header: 1 to 48 characters of a-z, 0-9 and -, starting and ending with a letter or digit. new, playground, rules and templates are reserved for the console's own pages: a new gateway or a rename cannot take them."
},
"cache": {
"type": [
"object",
"null"
],
"properties": {
"mode": {
"enum": [
"simple"
],
"type": "string"
},
"max_age_s": {
"type": "integer",
"default": 3600,
"maximum": 86400,
"minimum": 1,
"description": "Seconds an answer is kept, up to a day."
}
},
"description": "The exact same request gets the kept answer, free, for max_age_s seconds; null for no cache."
},
"retry": {
"anyOf": [
{
"type": "object",
"properties": {
"attempts": {
"type": "integer",
"maximum": 5,
"minimum": 0,
"description": "Retries after the first try, after 1, 2 and 4 seconds."
},
"on_status_codes": {
"type": "array",
"items": {
"type": "integer",
"maximum": 599,
"minimum": 400
},
"maxItems": 10,
"minItems": 1,
"description": "The statuses to retry on. Default 429, 500, 502, 503 and 504."
},
"use_retry_after": {
"type": "boolean",
"default": true,
"description": "Wait as long as the model's Retry-After says."
}
}
},
{
"type": "null"
}
],
"description": "Retries on every target; a target's own retry replaces it. null for none."
},
"speed": {
"type": "object",
"properties": {
"sort": {
"enum": [
"price",
"throughput",
"latency"
],
"type": "string",
"default": "price",
"description": "What the routes are ordered by."
},
"minThroughput": {
"type": [
"number",
"null"
],
"maximum": 100000,
"description": "Tokens per second a route should reach; null for no floor.",
"exclusiveMinimum": 0
},
"maxLatencySecs": {
"type": [
"number",
"null"
],
"maximum": 600,
"description": "Seconds to the first token a route should stay within; null for no ceiling.",
"exclusiveMinimum": 0
}
},
"description": "The default speed of chat requests under this gateway: how they pick among routes ({sort, minThroughput, maxLatencySecs}; cheapest, balanced, fastest or a custom floor and ceiling, see /docs/speed). It comes before the key's speed, field by field: a floor or ceiling it leaves out falls to the key's. A request's own sort, min_throughput and max_latency settings come first, then a :nitro / :floor model suffix. An explicit {sort: price} puts the sort back to cheapest over a faster key. max_price still caps the price. Left out: none. Not on a decision gateway.",
"additionalProperties": false
},
"region": {
"enum": [
"eu",
null
],
"type": [
"string",
"null"
],
"description": "A region pin: eu keeps requests under this gateway off community-supplied capacity. Left out or null: none."
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"model": {
"type": [
"string",
"null"
],
"description": "A model id; null for the request's own model."
},
"retry": {
"anyOf": [
{
"type": "object",
"properties": {
"attempts": {
"type": "integer",
"maximum": 5,
"minimum": 0,
"description": "Retries after the first try, after 1, 2 and 4 seconds."
},
"on_status_codes": {
"type": "array",
"items": {
"type": "integer",
"maximum": 599,
"minimum": 400
},
"maxItems": 10,
"minItems": 1,
"description": "The statuses to retry on. Default 429, 500, 502, 503 and 504."
},
"use_retry_after": {
"type": "boolean",
"default": true,
"description": "Wait as long as the model's Retry-After says."
}
}
},
{
"type": "null"
}
],
"description": "This model's own retries, replacing the gateway's; null for the gateway's."
},
"weight": {
"type": "number",
"default": 1,
"maximum": 100,
"description": "Its share of requests under loadbalance.",
"exclusiveMinimum": 0
},
"override": {
"type": "object",
"properties": {
"seed": {
"type": "integer"
},
"top_p": {
"type": "number",
"maximum": 1,
"exclusiveMinimum": 0
},
"max_tokens": {
"type": "integer",
"maximum": 1000000,
"minimum": 1
},
"temperature": {
"type": "number",
"maximum": 2,
"minimum": 0
}
},
"description": "Replaces what the request sent, on this model."
},
"timeout_ms": {
"type": [
"integer",
"null"
],
"maximum": 600000,
"minimum": 1000,
"description": "How long one try on this model may take, in milliseconds; null for what is left of the gateway's deadline."
}
},
"description": "One model of a fallback or a split."
},
"maxItems": 10,
"description": "The models of a fallback or a split, in order: at least two for either, at most 10. Empty for single."
},
"io_ratio": {
"type": "number",
"maximum": 100000,
"minimum": 0.001,
"description": "The expected input:output token ratio of chat requests under this gateway, as input tokens per output token (15 for 15:1). Their routes are ranked at it instead of at max_tokens (see /docs/speed#io-ratio). It replaces the key's ioRatio; a request's own x-klinn-io-ratio header comes first. Ranking only: holds, limits, max_price and the bill are unchanged. Left out: none. Not on a decision gateway."
},
"strategy": {
"type": "object",
"properties": {
"mode": {
"enum": [
"single",
"fallback",
"loadbalance"
],
"type": "string",
"default": "single",
"description": "single: one model, the request's or default_model. fallback: the targets in order; when one answers with a status in on_status_codes, the next one answers. loadbalance: each request goes to one target, by weight."
},
"on_status_codes": {
"type": "array",
"items": {
"type": "integer",
"maximum": 599,
"minimum": 400
},
"maxItems": 10,
"minItems": 1,
"description": "The statuses that move a fallback to the next target. Default 429, 500, 502, 503 and 504."
}
},
"description": "How a request picks its model."
},
"max_price": {
"type": "object",
"properties": {
"cache": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M input tokens read from the cache. A route that bills cached tokens at its input price is compared at that price."
},
"input": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M input (prompt) tokens."
},
"output": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M output (completion) tokens."
},
"prompt": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for input; returned under this name."
},
"cache_read": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "Another name for cache, accepted on input."
},
"completion": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for output; returned under this name."
},
"input_cache_read": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for cache; returned under this name."
}
},
"description": "The default limit order of chat requests under this gateway: they are billed at most this per 1M tokens, or refused with 422 no_offer_under_limit when nothing in the market is within it. It replaces the key's maxPrice; a request's own limit (its max_price field or the x-max-price header) comes first. Left out: none. Not on a decision gateway.",
"additionalProperties": false
},
"questions": {
"type": "object",
"description": "Decision gateways: the questions by name (1 to 40 characters of a-z, 0-9 and _, starting with a letter), 1 to 128 of them.",
"maxProperties": 128,
"minProperties": 1,
"additionalProperties": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"choice",
"score",
"noul"
],
"type": "string",
"description": "choice: one of the options. score: a number from 0 to 1, or a place on the levels listed, lowest first. noul: yes or no, as a probability."
},
"options": {
"type": "array",
"items": {
"type": "string",
"maxLength": 80
},
"maxItems": 64,
"description": "choice: 2 to 64 options. score: 2 to 10 levels, lowest first, optional. noul: none. Each at most 80 characters, none twice."
},
"instructions": {
"type": "string",
"maxLength": 500,
"description": "The question in plain words."
}
}
}
},
"guardrails": {
"anyOf": [
{
"type": "object",
"properties": {
"model": {
"type": "string",
"default": "pplx-decider-v1.2",
"description": "The decision model that runs the checks (kind decisions in GET /models). Absent: pplx-decider-v1.2, Perplexity's Decider v1.2."
},
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"check",
"action"
],
"properties": {
"check": {
"enum": [
"prompt_injection",
"pii",
"topics"
],
"type": "string",
"description": "prompt_injection: does the text try to override, ignore or reveal the assistant's instructions, or make it act outside its role? pii: does it contain personal data about a person, and which kind? topics: which of the allowed and blocked topics is it about, or none?"
},
"types": {
"type": "array",
"items": {
"enum": [
"email",
"phone",
"card",
"iban",
"government_id",
"address",
"name"
],
"type": "string"
},
"maxItems": 7,
"description": "pii only: the kinds of personal data to catch. Default all seven; empty asks only whether there is personal data, and masks nothing. Masking runs before the check, so the score is about personal data left after it."
},
"action": {
"enum": [
"flag",
"block",
"redact"
],
"type": "string",
"description": "Required. block: HTTP 446, error type guardrail_blocked with the check as its code; the model is never called and nothing is billed. flag: answered as usual and flagged in the request log. redact (pii only): emails, phone numbers, card numbers (Luhn-checked) and IBANs (checksum-validated) become [email], [phone], [card] and [iban] in every user message before the call, whatever the score; names, addresses and ID numbers can only be flagged or blocked."
},
"allowed": {
"type": "array",
"items": {
"type": "string",
"maxLength": 40,
"minLength": 1
},
"maxItems": 20,
"description": "topics only: short labels; with any listed, a message about none of them is off-topic. \"other\" is taken. Allowed or blocked must list at least one topic."
},
"blocked": {
"type": "array",
"items": {
"type": "string",
"maxLength": 40,
"minLength": 1
},
"maxItems": 20,
"description": "topics only: short labels a message must not be about. A topic cannot be in both lists."
},
"threshold": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "How sure the decision model must be, 0 to 1. Defaults: prompt_injection 0.9, pii 0.5, topics 0.5."
}
},
"description": "One check. prompt_injection and pii hit when the decision model's probability of yes is at or above threshold; topics hits when the topic it picks is a blocked one, or, with allowed topics, none of them, at or above threshold."
},
"maxItems": 3,
"description": "0 to 3 checks, at most one of each, stored in the order prompt_injection, pii, topics."
}
},
"description": "The guardrails of a chat gateway. One decision call per new message carries every check. Checks are free for now. A request the checks cannot finish in time (2.5 s for each 16 new messages, at most 10 s, or over 128 new messages) is refused with 446 on a gateway with a block check, and let through with x-klinn-guardrail: unchecked on one that only flags or redacts; a decision model that errs lets the request through, unchecked."
},
{
"type": "null"
}
],
"description": "Chat gateways: checks on every message of each request, whole, run by a decision model before the model is called (https://docs.opencheap.si/guardrails). null for none; a string (an old policy name) also reads as none. A decision gateway takes none: its /v1/systemone calls are not checked."
},
"log_bodies": {
"type": "boolean",
"default": false,
"description": "Logging prompts and answers is not available yet: leave it false."
},
"rate_limit": {
"type": [
"object",
"null"
],
"properties": {
"rpm": {
"type": "integer",
"maximum": 10000,
"minimum": 1
}
},
"description": "Requests a minute per key through this gateway; null for no limit."
},
"allow_models": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"maxItems": 50,
"minItems": 1,
"description": "Model ids, or patterns with *, the gateway lets through; any other model is 403 model_not_allowed. null for any model."
},
"instructions": {
"type": "string",
"maxLength": 2000,
"description": "Decision gateways: a context line, what the text is. Left out when empty."
},
"min_discount": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "The default minimum discount of chat requests under this gateway: they are served only at least this many percent under the model's list price, or refused with 422 no_offer_under_limit when nothing in the market is. The strictest of it, the key's minDiscount and the request's own (the min_discount field or the x-min-discount header) applies. Left out: none. Not on a decision gateway."
},
"default_model": {
"type": [
"string",
"null"
],
"description": "The model a request with model \"default\" (or none) gets; null for the request's own model. A decision gateway needs one, and it must be a decision model (kind decisions in GET /models)."
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
},
"community_supply": {
"type": "boolean",
"default": true,
"description": "Whether community-supplied capacity (first-party vendor capacity other accounts list, under the same no-training terms) may serve requests under this gateway. Left out: on. A decision gateway never uses it: it may not be set true there."
},
"request_timeout_ms": {
"type": [
"integer",
"null"
],
"maximum": 600000,
"minimum": 1000,
"description": "A deadline for the whole request, fallbacks and retries included, in milliseconds (1,000 to 600,000); null for none."
}
},
"additionalProperties": false
}{
"title": "Create a gateway",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}get_gateway — Get a gateway
Get a gateway The gateway's stored config (what create and replace accept, normalized), the ids of the keys it is the default of, and when it was created and last changed.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$",
"description": "The gateway's name."
}
},
"additionalProperties": false
}{
"title": "Get a gateway",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}update_gateway — Replace a gateway
Replace a gateway Replaces the whole config: send the config from the `get_gateway` tool with your changes. Fields left out take their defaults and the same checks apply as on create. A body without a name keeps this one; a different name renames the gateway (a name already in use is 409 conflict) and its keys follow. Keys stay attached either way. Requests follow the new config within about a minute: the router keeps a key's gateway and the account's gateway list for about 60 seconds, so until then a request may still run through the old config.
{
"type": "object",
"required": [
"name",
"body"
],
"properties": {
"body": {
"type": "object",
"required": [
"name"
],
"properties": {
"data": {
"type": "object",
"properties": {
"zdr": {
"type": "boolean",
"description": "Zero data retention: requests under this gateway are kept off community-supplied capacity."
}
},
"description": "Data handling. Left out: no constraint."
},
"kind": {
"enum": [
"chat",
"decision"
],
"type": "string",
"default": "chat",
"description": "chat routes the requests your code sends; decision is a classifier: its default model is a decision model and its questions are saved here."
},
"name": {
"type": "string",
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$",
"description": "Its id in this API and in the x-klinn-gateway header: 1 to 48 characters of a-z, 0-9 and -, starting and ending with a letter or digit. new, playground, rules and templates are reserved for the console's own pages: a new gateway or a rename cannot take them."
},
"cache": {
"type": [
"object",
"null"
],
"properties": {
"mode": {
"enum": [
"simple"
],
"type": "string"
},
"max_age_s": {
"type": "integer",
"default": 3600,
"maximum": 86400,
"minimum": 1,
"description": "Seconds an answer is kept, up to a day."
}
},
"description": "The exact same request gets the kept answer, free, for max_age_s seconds; null for no cache."
},
"retry": {
"anyOf": [
{
"type": "object",
"properties": {
"attempts": {
"type": "integer",
"maximum": 5,
"minimum": 0,
"description": "Retries after the first try, after 1, 2 and 4 seconds."
},
"on_status_codes": {
"type": "array",
"items": {
"type": "integer",
"maximum": 599,
"minimum": 400
},
"maxItems": 10,
"minItems": 1,
"description": "The statuses to retry on. Default 429, 500, 502, 503 and 504."
},
"use_retry_after": {
"type": "boolean",
"default": true,
"description": "Wait as long as the model's Retry-After says."
}
}
},
{
"type": "null"
}
],
"description": "Retries on every target; a target's own retry replaces it. null for none."
},
"speed": {
"type": "object",
"properties": {
"sort": {
"enum": [
"price",
"throughput",
"latency"
],
"type": "string",
"default": "price",
"description": "What the routes are ordered by."
},
"minThroughput": {
"type": [
"number",
"null"
],
"maximum": 100000,
"description": "Tokens per second a route should reach; null for no floor.",
"exclusiveMinimum": 0
},
"maxLatencySecs": {
"type": [
"number",
"null"
],
"maximum": 600,
"description": "Seconds to the first token a route should stay within; null for no ceiling.",
"exclusiveMinimum": 0
}
},
"description": "The default speed of chat requests under this gateway: how they pick among routes ({sort, minThroughput, maxLatencySecs}; cheapest, balanced, fastest or a custom floor and ceiling, see /docs/speed). It comes before the key's speed, field by field: a floor or ceiling it leaves out falls to the key's. A request's own sort, min_throughput and max_latency settings come first, then a :nitro / :floor model suffix. An explicit {sort: price} puts the sort back to cheapest over a faster key. max_price still caps the price. Left out: none. Not on a decision gateway.",
"additionalProperties": false
},
"region": {
"enum": [
"eu",
null
],
"type": [
"string",
"null"
],
"description": "A region pin: eu keeps requests under this gateway off community-supplied capacity. Left out or null: none."
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"model": {
"type": [
"string",
"null"
],
"description": "A model id; null for the request's own model."
},
"retry": {
"anyOf": [
{
"type": "object",
"properties": {
"attempts": {
"type": "integer",
"maximum": 5,
"minimum": 0,
"description": "Retries after the first try, after 1, 2 and 4 seconds."
},
"on_status_codes": {
"type": "array",
"items": {
"type": "integer",
"maximum": 599,
"minimum": 400
},
"maxItems": 10,
"minItems": 1,
"description": "The statuses to retry on. Default 429, 500, 502, 503 and 504."
},
"use_retry_after": {
"type": "boolean",
"default": true,
"description": "Wait as long as the model's Retry-After says."
}
}
},
{
"type": "null"
}
],
"description": "This model's own retries, replacing the gateway's; null for the gateway's."
},
"weight": {
"type": "number",
"default": 1,
"maximum": 100,
"description": "Its share of requests under loadbalance.",
"exclusiveMinimum": 0
},
"override": {
"type": "object",
"properties": {
"seed": {
"type": "integer"
},
"top_p": {
"type": "number",
"maximum": 1,
"exclusiveMinimum": 0
},
"max_tokens": {
"type": "integer",
"maximum": 1000000,
"minimum": 1
},
"temperature": {
"type": "number",
"maximum": 2,
"minimum": 0
}
},
"description": "Replaces what the request sent, on this model."
},
"timeout_ms": {
"type": [
"integer",
"null"
],
"maximum": 600000,
"minimum": 1000,
"description": "How long one try on this model may take, in milliseconds; null for what is left of the gateway's deadline."
}
},
"description": "One model of a fallback or a split."
},
"maxItems": 10,
"description": "The models of a fallback or a split, in order: at least two for either, at most 10. Empty for single."
},
"io_ratio": {
"type": "number",
"maximum": 100000,
"minimum": 0.001,
"description": "The expected input:output token ratio of chat requests under this gateway, as input tokens per output token (15 for 15:1). Their routes are ranked at it instead of at max_tokens (see /docs/speed#io-ratio). It replaces the key's ioRatio; a request's own x-klinn-io-ratio header comes first. Ranking only: holds, limits, max_price and the bill are unchanged. Left out: none. Not on a decision gateway."
},
"strategy": {
"type": "object",
"properties": {
"mode": {
"enum": [
"single",
"fallback",
"loadbalance"
],
"type": "string",
"default": "single",
"description": "single: one model, the request's or default_model. fallback: the targets in order; when one answers with a status in on_status_codes, the next one answers. loadbalance: each request goes to one target, by weight."
},
"on_status_codes": {
"type": "array",
"items": {
"type": "integer",
"maximum": 599,
"minimum": 400
},
"maxItems": 10,
"minItems": 1,
"description": "The statuses that move a fallback to the next target. Default 429, 500, 502, 503 and 504."
}
},
"description": "How a request picks its model."
},
"max_price": {
"type": "object",
"properties": {
"cache": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M input tokens read from the cache. A route that bills cached tokens at its input price is compared at that price."
},
"input": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M input (prompt) tokens."
},
"output": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M output (completion) tokens."
},
"prompt": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for input; returned under this name."
},
"cache_read": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "Another name for cache, accepted on input."
},
"completion": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for output; returned under this name."
},
"input_cache_read": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for cache; returned under this name."
}
},
"description": "The default limit order of chat requests under this gateway: they are billed at most this per 1M tokens, or refused with 422 no_offer_under_limit when nothing in the market is within it. It replaces the key's maxPrice; a request's own limit (its max_price field or the x-max-price header) comes first. Left out: none. Not on a decision gateway.",
"additionalProperties": false
},
"questions": {
"type": "object",
"description": "Decision gateways: the questions by name (1 to 40 characters of a-z, 0-9 and _, starting with a letter), 1 to 128 of them.",
"maxProperties": 128,
"minProperties": 1,
"additionalProperties": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"choice",
"score",
"noul"
],
"type": "string",
"description": "choice: one of the options. score: a number from 0 to 1, or a place on the levels listed, lowest first. noul: yes or no, as a probability."
},
"options": {
"type": "array",
"items": {
"type": "string",
"maxLength": 80
},
"maxItems": 64,
"description": "choice: 2 to 64 options. score: 2 to 10 levels, lowest first, optional. noul: none. Each at most 80 characters, none twice."
},
"instructions": {
"type": "string",
"maxLength": 500,
"description": "The question in plain words."
}
}
}
},
"guardrails": {
"anyOf": [
{
"type": "object",
"properties": {
"model": {
"type": "string",
"default": "pplx-decider-v1.2",
"description": "The decision model that runs the checks (kind decisions in GET /models). Absent: pplx-decider-v1.2, Perplexity's Decider v1.2."
},
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"check",
"action"
],
"properties": {
"check": {
"enum": [
"prompt_injection",
"pii",
"topics"
],
"type": "string",
"description": "prompt_injection: does the text try to override, ignore or reveal the assistant's instructions, or make it act outside its role? pii: does it contain personal data about a person, and which kind? topics: which of the allowed and blocked topics is it about, or none?"
},
"types": {
"type": "array",
"items": {
"enum": [
"email",
"phone",
"card",
"iban",
"government_id",
"address",
"name"
],
"type": "string"
},
"maxItems": 7,
"description": "pii only: the kinds of personal data to catch. Default all seven; empty asks only whether there is personal data, and masks nothing. Masking runs before the check, so the score is about personal data left after it."
},
"action": {
"enum": [
"flag",
"block",
"redact"
],
"type": "string",
"description": "Required. block: HTTP 446, error type guardrail_blocked with the check as its code; the model is never called and nothing is billed. flag: answered as usual and flagged in the request log. redact (pii only): emails, phone numbers, card numbers (Luhn-checked) and IBANs (checksum-validated) become [email], [phone], [card] and [iban] in every user message before the call, whatever the score; names, addresses and ID numbers can only be flagged or blocked."
},
"allowed": {
"type": "array",
"items": {
"type": "string",
"maxLength": 40,
"minLength": 1
},
"maxItems": 20,
"description": "topics only: short labels; with any listed, a message about none of them is off-topic. \"other\" is taken. Allowed or blocked must list at least one topic."
},
"blocked": {
"type": "array",
"items": {
"type": "string",
"maxLength": 40,
"minLength": 1
},
"maxItems": 20,
"description": "topics only: short labels a message must not be about. A topic cannot be in both lists."
},
"threshold": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "How sure the decision model must be, 0 to 1. Defaults: prompt_injection 0.9, pii 0.5, topics 0.5."
}
},
"description": "One check. prompt_injection and pii hit when the decision model's probability of yes is at or above threshold; topics hits when the topic it picks is a blocked one, or, with allowed topics, none of them, at or above threshold."
},
"maxItems": 3,
"description": "0 to 3 checks, at most one of each, stored in the order prompt_injection, pii, topics."
}
},
"description": "The guardrails of a chat gateway. One decision call per new message carries every check. Checks are free for now. A request the checks cannot finish in time (2.5 s for each 16 new messages, at most 10 s, or over 128 new messages) is refused with 446 on a gateway with a block check, and let through with x-klinn-guardrail: unchecked on one that only flags or redacts; a decision model that errs lets the request through, unchecked."
},
{
"type": "null"
}
],
"description": "Chat gateways: checks on every message of each request, whole, run by a decision model before the model is called (https://docs.opencheap.si/guardrails). null for none; a string (an old policy name) also reads as none. A decision gateway takes none: its /v1/systemone calls are not checked."
},
"log_bodies": {
"type": "boolean",
"default": false,
"description": "Logging prompts and answers is not available yet: leave it false."
},
"rate_limit": {
"type": [
"object",
"null"
],
"properties": {
"rpm": {
"type": "integer",
"maximum": 10000,
"minimum": 1
}
},
"description": "Requests a minute per key through this gateway; null for no limit."
},
"allow_models": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"maxItems": 50,
"minItems": 1,
"description": "Model ids, or patterns with *, the gateway lets through; any other model is 403 model_not_allowed. null for any model."
},
"instructions": {
"type": "string",
"maxLength": 2000,
"description": "Decision gateways: a context line, what the text is. Left out when empty."
},
"min_discount": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "The default minimum discount of chat requests under this gateway: they are served only at least this many percent under the model's list price, or refused with 422 no_offer_under_limit when nothing in the market is. The strictest of it, the key's minDiscount and the request's own (the min_discount field or the x-min-discount header) applies. Left out: none. Not on a decision gateway."
},
"default_model": {
"type": [
"string",
"null"
],
"description": "The model a request with model \"default\" (or none) gets; null for the request's own model. A decision gateway needs one, and it must be a decision model (kind decisions in GET /models)."
},
"community_supply": {
"type": "boolean",
"default": true,
"description": "Whether community-supplied capacity (first-party vendor capacity other accounts list, under the same no-training terms) may serve requests under this gateway. Left out: on. A decision gateway never uses it: it may not be set true there."
},
"request_timeout_ms": {
"type": [
"integer",
"null"
],
"maximum": 600000,
"minimum": 1000,
"description": "A deadline for the whole request, fallbacks and retries included, in milliseconds (1,000 to 600,000); null for none."
}
},
"description": "A gateway's config, as the console stores it and the router reads it (snake_case, unlike the rest of this API). Fields left out take their defaults; unknown fields are dropped."
},
"name": {
"type": "string",
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$",
"description": "The gateway's name."
}
},
"additionalProperties": false
}{
"title": "Replace a gateway",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}delete_gateway — Delete a gateway
Delete a gateway Deletes it. Keys that had it as their default go back to none, so their requests run as without a gateway; a request still naming it is refused by the Model API (400 gateway_not_found). Both follow within about a minute: the router keeps a key's gateway and the account's gateway list for about 60 seconds, so until then a request may still run through the deleted gateway. 204 with no body.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$",
"description": "The gateway's name."
}
},
"additionalProperties": false
}{
"title": "Delete a gateway",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}gateway_decisions — Get a decision gateway's answers
Get a decision gateway's answers How a decision gateway answered over the last 24 hours or 7 days: for each question of its config, how many requests answered it and, for a choice or a yes/no question, each answer's count, most frequent first (at most 12, the rest as other); for a score, the mean and the share at or above 0.5. requests counts the decisions calls through the gateway in the range. A chat gateway answers 400 invalid_request.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$",
"description": "The gateway's name."
},
"range": {
"enum": [
"24h",
"7d"
],
"type": "string",
"default": "24h",
"description": "The last 24 hours (per hour) or the last 7 days (per day)."
}
},
"additionalProperties": false
}{
"title": "Get a decision gateway's answers",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}gateway_stats — Get gateway stats
Get gateway stats What the gateway did over the last 24 hours (per hour) or 7 days (per day), from the request log: requests (a refused one counts its repeats), p95 latency, the error rate, the cache hit rate and how many requests were blocked; then each routing rule's count over the range and per bucket: fell back, retried (and how many retries), answered from cache (savedUsd: what the hits would have cost at the model's average price), rate limited, refused as not allowed, timed out, and the split per model. The same numbers as the console's gateway page.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$",
"description": "The gateway's name."
},
"range": {
"enum": [
"24h",
"7d"
],
"type": "string",
"default": "24h",
"description": "The last 24 hours (per hour) or the last 7 days (per day)."
}
},
"additionalProperties": false
}{
"title": "Get gateway stats",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_instances — List instances
List instances The account's instances, running ones first, then the newest. A running instance is billed up to now when read, so billedSeconds and billedUsd are current.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 200,
"minimum": 1,
"description": "Page size, 1 to 200."
},
"status": {
"enum": [
"running",
"stopped"
],
"type": "string",
"description": "Only running or only stopped ones."
}
},
"additionalProperties": false
}{
"title": "List instances",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}start_instance — Start an instance
Start an instance Starts a machine for one model: gpuClass (default h200) and size (eighths of a node, default 1) pick its spec and price, fixed for as long as it runs. Billing is per second while it runs, one minute at least: the first minute is debited at once. From the next call on (within a few seconds), the account's calls to that model through any of its model keys cost nothing per token and are held to the machine's limits instead (429 with Retry-After past one). It runs until stopped (stop_instance), until its hours pass, or until the balance runs out. One running instance per model: a second start of the same model is a 409 conflict naming the running one. 402 insufficient_balance when the balance does not cover the first minute; 503 not_configured while no price is known for the model.
{
"type": "object",
"required": [
"model"
],
"properties": {
"size": {
"enum": [
1,
2,
4,
8
],
"type": "integer",
"default": 1,
"description": "Eighths of a node: 1 is 1/8 node, 2 a quarter, 4 a half, 8 a full node."
},
"hours": {
"type": [
"number",
"null"
],
"maximum": 720,
"minimum": 0.0167,
"description": "How long it runs, in hours from now (0.25 is 15 minutes, 2 is two hours); it stops by itself then. Null or absent: it runs until you stop it or the balance runs out. Billing is per second either way."
},
"model": {
"enum": [
"glm-5.3",
"kimi-k3",
"kimi-k3.1-pro"
],
"type": "string"
},
"gpuClass": {
"enum": [
"h200",
"b300"
],
"type": "string",
"description": "The node class the machine is sized like: one the model is offered on (its machines in list_instance_types). Absent: the model's own class."
},
"instanceName": {
"type": [
"string",
"null"
],
"pattern": "^[A-Za-z0-9][A-Za-z0-9 ._-]{0,59}$",
"maxLength": 60,
"description": "Your name for it, shown in the console's history and the API."
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
}
},
"additionalProperties": false
}{
"title": "Start an instance",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}get_instance — Get an instance
Get an instance One instance, billed up to now when it runs.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The instance id."
}
},
"additionalProperties": false
}{
"title": "Get an instance",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}update_instance — Set an instance's timer
Set an instance's timer Sets when a running instance stops by itself: hours from now (to extend it, or shorten it), or null to run until stopped. The price and limits stay as they are; billing stays per second. 409 conflict when it has already stopped.
{
"type": "object",
"required": [
"id",
"hours"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The instance id."
},
"hours": {
"type": [
"number",
"null"
],
"maximum": 720,
"minimum": 0.0167,
"description": "Hours from now until it stops by itself; null: it runs until you stop it."
}
},
"additionalProperties": false
}{
"title": "Set an instance's timer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}stop_instance — Stop an instance
Stop an instance Stops it now and bills it to this second (one minute at least). From the next call on, calls to its model are billed per token again. Stopping a stopped instance answers it as it is.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The instance id."
}
},
"additionalProperties": false
}{
"title": "Stop an instance",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}request_dedicated_hardware — Ask for dedicated hardware
Ask for dedicated hardware Tells OpenCheap the account would rent dedicated hardware: the GPU class, region, model and hours a month. Stored, and answered by email to the account's address. Starts nothing and bills nothing.
{
"type": "object",
"required": [
"gpuClass",
"region",
"model",
"hoursPerMonth"
],
"properties": {
"note": {
"type": [
"string",
"null"
],
"maxLength": 1000
},
"model": {
"type": "string",
"maxLength": 80,
"description": "The model to run (any id, or a name)."
},
"region": {
"enum": [
"US",
"EU",
"Asia",
"Any"
],
"type": "string"
},
"gpuClass": {
"enum": [
"h200",
"b300"
],
"type": "string"
},
"hoursPerMonth": {
"type": "integer",
"maximum": 744,
"minimum": 1
}
},
"additionalProperties": false
}{
"title": "Ask for dedicated hardware",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}list_instance_types — List instance types
List instance types What can be started: each model with its machines. A machine is sized like a share of one 8-GPU node of a class (gpuClass: the class the model is offered on; size in eighths of a node: 1, 2, 4 or 8) and has a spec (parallel streams, target output tokens a second per stream, context), the limits that follow from it, and our price per hour and per second (null while no price is known). Prices follow the market and are fixed for an instance once it starts. available is false while instances are not open yet.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "List instance types",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_keys — List model keys
List model keys The account's own model keys (`kl_live_…`), newest first. Customer keys are listed under /customers/{id}/keys and management keys under /management-keys. Revoked keys are left out unless `includeRevoked=true`.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 200,
"minimum": 1,
"description": "Page size, 1 to 200."
},
"cursor": {
"type": "string",
"description": "The `nextCursor` of the previous page, unchanged."
},
"includeRevoked": {
"type": "boolean",
"default": false,
"description": "Also list revoked keys."
}
},
"additionalProperties": false
}{
"title": "List model keys",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}create_key — Create a model key
Create a model key Creates a model key for the account itself. The `secret` is returned once, in this response; a replay with the same Idempotency-Key returns the key with `secret: null`. Customer keys are created under /customers/{id}/keys. `maxPrice` gives it a default limit order (the most its requests are billed per 1M tokens), `minDiscount` a default minimum discount (its requests are served only at least that many percent under a model's list price), and `speed` a default speed (how its requests pick among routes: cheapest, balanced, fastest or a custom floor and ceiling; see /docs/speed). At most 500 model keys per account, and 1,000 new ones a day (revoked ones count): past either, 409 limit_reached.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"speed": {
"oneOf": [
{
"type": "object",
"properties": {
"sort": {
"enum": [
"price",
"throughput",
"latency"
],
"type": "string",
"default": "price",
"description": "What the routes are ordered by."
},
"minThroughput": {
"type": [
"number",
"null"
],
"maximum": 100000,
"description": "Tokens per second a route should reach; null for no floor.",
"exclusiveMinimum": 0
},
"maxLatencySecs": {
"type": [
"number",
"null"
],
"maximum": 600,
"description": "Seconds to the first token a route should stay within; null for no ceiling.",
"exclusiveMinimum": 0
}
},
"description": "How requests pick among the routes that can serve a model. `sort` orders the routes: `price` (cheapest first, the default), `throughput` (fastest tokens per second first; the :nitro suffix) or `latency` (quickest to the first token first). `minThroughput` and `maxLatencySecs` are best effort: routes that meet them come first, and when none does the request is still served by the next best route. A request that sets allow_fallbacks to false makes them strict instead (503 no_route_meets_speed). Community-supplied routes must also reach at least half the model's median speed to get traffic. Balanced is {sort: price, minThroughput: 30}; Fastest is {sort: throughput}. max_price still caps the price.",
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The key's default speed (see Key.speed); null or left out for none."
},
"ioRatio": {
"oneOf": [
{
"type": "number",
"maximum": 100000,
"minimum": 0.001
},
{
"type": "string",
"pattern": "^\\s*\\d+(\\.\\d+)?\\s*(:\\s*\\d+(\\.\\d+)?\\s*)?$"
},
{
"type": "null"
}
],
"description": "The key's expected input:output ratio (see Key.ioRatio), as a number of input tokens per output token or a string such as \"15:1\"; null or left out for none."
},
"maxPrice": {
"oneOf": [
{
"type": "object",
"properties": {
"cache": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M input tokens read from the cache. A route that bills cached tokens at its input price is compared at that price."
},
"input": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M input (prompt) tokens."
},
"output": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M output (completion) tokens."
},
"prompt": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for input; returned under this name."
},
"cache_read": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "Another name for cache, accepted on input."
},
"completion": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for output; returned under this name."
},
"input_cache_read": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for cache; returned under this name."
}
},
"description": "A limit order's maximum price: the most a request is billed per 1M tokens, on the input leg, the output leg, the cache leg or several (at least one), each compared on its own. Send {\"input\", \"output\", \"cache\"}; the compatible names prompt, completion and input_cache_read (also cache_read) are the same legs and are accepted too, but a leg given under two names with different values is a 400. It is stored and returned under the compatible names (prompt, completion, input_cache_read). A request nothing in the market is within is refused with 422 no_offer_under_limit and billed nothing; a request with no limit is matched at the market price.",
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The key's default limit order (see Key.maxPrice); null or left out for none."
},
"minDiscount": {
"type": [
"number",
"null"
],
"maximum": 100,
"minimum": 0,
"description": "The key's default minimum discount, 0 to 100 (see Key.minDiscount); null or left out for none."
},
"allowedModels": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"maxItems": 500,
"description": "Limit the key to these model ids; null or empty for all."
},
"priceFallover": {
"type": [
"boolean",
"null"
],
"description": "The key's price fall-over (see Key.priceFallover); null or left out for the default (on)."
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
},
"monthlyLimitUsd": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0,
"description": "Spend cap per calendar month; null or 0 for none."
}
},
"additionalProperties": false
}{
"title": "Create a model key",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}update_key — Set a model key's default gateway, community-supply switch or max price
Set a model key's default gateway, community-supply switch or max price Changes one of the account's own model keys: `gateway` sets or clears the gateway it runs through by default (a gateway's name from the `list_gateways` tool, or null for none; requests on the key then go through it, and a request naming another with the x-klinn-gateway header is refused with 403 gateway_locked), `communitySupply` sets whether community-supplied capacity may serve its requests (false keeps every request on our own routes), and `maxPrice` sets or clears its default limit order ({input, output, cache} USD per 1M tokens; prompt, completion and input_cache_read are accepted too: a request nothing in the market is within is refused with 422 no_offer_under_limit and billed nothing). `minDiscount` sets or clears its default minimum discount (0 to 100: its requests are served only at least that many percent under a model's list price; the same 422 when nothing in the market is). `speed` sets or clears its default speed ({sort, minThroughput, maxLatencySecs}: a request's own settings and its gateway's come first; see /docs/speed). Each field changes only when given; give at least one. New requests follow within about a minute. A name no gateway of yours has is 400 invalid_request; a revoked key, a customer's key or an unknown id is 404. Returns the key.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The key id."
},
"speed": {
"oneOf": [
{
"type": "object",
"properties": {
"sort": {
"enum": [
"price",
"throughput",
"latency"
],
"type": "string",
"default": "price",
"description": "What the routes are ordered by."
},
"minThroughput": {
"type": [
"number",
"null"
],
"maximum": 100000,
"description": "Tokens per second a route should reach; null for no floor.",
"exclusiveMinimum": 0
},
"maxLatencySecs": {
"type": [
"number",
"null"
],
"maximum": 600,
"description": "Seconds to the first token a route should stay within; null for no ceiling.",
"exclusiveMinimum": 0
}
},
"description": "How requests pick among the routes that can serve a model. `sort` orders the routes: `price` (cheapest first, the default), `throughput` (fastest tokens per second first; the :nitro suffix) or `latency` (quickest to the first token first). `minThroughput` and `maxLatencySecs` are best effort: routes that meet them come first, and when none does the request is still served by the next best route. A request that sets allow_fallbacks to false makes them strict instead (503 no_route_meets_speed). Community-supplied routes must also reach at least half the model's median speed to get traffic. Balanced is {sort: price, minThroughput: 30}; Fastest is {sort: throughput}. max_price still caps the price.",
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The key's default speed ({sort, minThroughput, maxLatencySecs}); null clears it. A request's own settings and its gateway's come first. New requests follow within about a minute."
},
"gateway": {
"type": [
"string",
"null"
],
"description": "The name of the gateway the key's requests run through by default (one of GET /gateways), or null for none."
},
"ioRatio": {
"oneOf": [
{
"type": "number",
"maximum": 100000,
"minimum": 0.001
},
{
"type": "string",
"pattern": "^\\s*\\d+(\\.\\d+)?\\s*(:\\s*\\d+(\\.\\d+)?\\s*)?$"
},
{
"type": "null"
}
],
"description": "The key's expected input:output ratio, as a number of input tokens per output token (15) or a string such as \"15:1\" or \"1:4\"; null clears it. A request's own x-klinn-io-ratio header and its gateway's io_ratio come first. New requests follow within about a minute."
},
"maxPrice": {
"oneOf": [
{
"type": "object",
"properties": {
"cache": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M input tokens read from the cache. A route that bills cached tokens at its input price is compared at that price."
},
"input": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M input (prompt) tokens."
},
"output": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "USD per 1M output (completion) tokens."
},
"prompt": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for input; returned under this name."
},
"cache_read": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "Another name for cache, accepted on input."
},
"completion": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for output; returned under this name."
},
"input_cache_read": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "The compatible name for cache; returned under this name."
}
},
"description": "A limit order's maximum price: the most a request is billed per 1M tokens, on the input leg, the output leg, the cache leg or several (at least one), each compared on its own. Send {\"input\", \"output\", \"cache\"}; the compatible names prompt, completion and input_cache_read (also cache_read) are the same legs and are accepted too, but a leg given under two names with different values is a 400. It is stored and returned under the compatible names (prompt, completion, input_cache_read). A request nothing in the market is within is refused with 422 no_offer_under_limit and billed nothing; a request with no limit is matched at the market price.",
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The key's default limit order: the most its requests are billed per 1M tokens, per leg; null clears it. A request's own limit and its gateway's come first. New requests follow within about a minute."
},
"minDiscount": {
"type": [
"number",
"null"
],
"maximum": 100,
"minimum": 0,
"description": "The key's default minimum discount, 0 to 100: its requests are served only at least this many percent under a model's list price; null clears it. A request's own and its gateway's can only make it stricter. New requests follow within about a minute."
},
"priceFallover": {
"type": [
"boolean",
"null"
],
"description": "Whether the key's requests may go to a dearer source when none can serve them at the model's price: false keeps them at the model's price, true allows it, null returns to the default (on). The request's own allow_price_fallover setting, and any price limit, come first. New requests follow within about a minute."
},
"communitySupply": {
"type": "boolean",
"description": "Whether community-supplied capacity may serve the key's requests; false keeps every request on our own routes. New requests follow within about a minute."
}
},
"additionalProperties": false
}{
"title": "Set a model key's default gateway, community-supply switch or max price",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}revoke_key — Revoke a model key
Revoke a model key Revokes one of the account's own model keys. It stops working at once. A key that is already revoked, belongs to a customer or does not exist answers 404.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The key id."
}
},
"additionalProperties": false
}{
"title": "Revoke a model key",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}get_key_budget — Get a key's budget
Get a key's budget One key's budget (any working model key of the account, a customer's included: the keys the `list_budgets` tool lists), each limit with its spend this window. Its monthly limit is the key's monthlyLimitUsd, so a key created with a monthly cap has a budget (hard_stop, no alert). 404 not_found for an unknown or revoked key, or a key without a budget. Windows are UTC: the day from midnight, the week from Monday, the month from the 1st, lifetime from when that limit was set.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The key id: any working model key of the account, a customer's included (GET /budgets lists them)."
}
},
"additionalProperties": false
}{
"title": "Get a key's budget",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}set_key_budget — Set a key's budget
Set a key's budget Sets or replaces one key's budget: daily, weekly, monthly and lifetime limits at our price (at least one), the alert share and the mode. limits.monthly becomes the key's monthlyLimitUsd. hard_stop refuses the key's requests with a 402 once a limit is reached (the request that crosses it can go a little over: the check runs before a request, its cost lands after, and the Model API keeps the key's state for about a minute); alert_only never blocks and sends one email per limit and window when the spend crosses alertPct. The account's budget, when there is one, applies too: the key stops at whichever limit it reaches first. Requests follow within about a minute.
{
"type": "object",
"required": [
"id",
"limits"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The key id: any working model key of the account, a customer's included (GET /budgets lists them)."
},
"mode": {
"enum": [
"hard_stop",
"alert_only"
],
"type": "string",
"default": "hard_stop",
"description": "hard_stop refuses requests with a 402 at a limit; alert_only never blocks (it needs alertPct above 0)."
},
"limits": {
"type": "object",
"properties": {
"daily": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "Per UTC day, from midnight."
},
"weekly": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "Per ISO week, from Monday 00:00 UTC."
},
"monthly": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "Per calendar month, from the 1st 00:00 UTC. On a key, this is its monthlyLimitUsd."
},
"lifetime": {
"type": [
"number",
"null"
],
"maximum": 1000000,
"minimum": 0.01,
"description": "For good, from when this limit was set."
}
},
"description": "Limits in USD at our price, to the cent. At least one; null or left out is no limit."
},
"alertPct": {
"type": "integer",
"default": 80,
"maximum": 100,
"minimum": 0,
"description": "Email once per limit and window when the spend crosses this share of a limit. 0 turns the alert off."
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
}
},
"additionalProperties": false
}{
"title": "Set a key's budget",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}remove_key_budget — Remove a key's budget
Remove a key's budget Removes one key's budget, its monthly limit (monthlyLimitUsd) included: the key is limited by the account's budget only, if there is one. 204 with no body, also when the key had none.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The key id: any working model key of the account, a customer's included (GET /budgets lists them)."
}
},
"additionalProperties": false
}{
"title": "Remove a key's budget",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}list_ledger — List balance movements
List balance movements Every movement of the prepaid balance, newest first: top-ups, grants, usage charges (yours and your customers') and adjustments.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 200,
"minimum": 1,
"description": "Page size, 1 to 200."
},
"cursor": {
"type": "string",
"description": "The `nextCursor` of the previous page, unchanged."
}
},
"additionalProperties": false
}{
"title": "List balance movements",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_management_keys — List agent keys
List agent keys The account's agent keys (`kl_rs_…`, management keys) for agents and backends, newest first, without their secrets. Active keys only unless `includeRevoked=true`.
{
"type": "object",
"properties": {
"includeRevoked": {
"type": "boolean",
"default": false,
"description": "Also list revoked keys."
}
},
"additionalProperties": false
}{
"title": "List agent keys",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_models — List models and prices
List models and prices Models the Model API serves at a fixed price per token, with our price per million prompt and completion tokens, sorted by id and paged: 100 per page by default, up to 200. `q` narrows the list to models whose id or name contains it (case-insensitive). The list is large: search with q instead of reading every page. Public and cacheable for 60 seconds (`Cache-Control: public, max-age=60`). Call a chat model (kind "chat") at https://api.opencheap.si/v1/chat/completions with a model key, in OpenAI format. Call a decisions model (kind "decisions"), which answers typed questions about a text, at https://api.opencheap.si followed by its `endpoint` with a model key; it is billed on input tokens only.
{
"type": "object",
"properties": {
"q": {
"type": "string",
"maxLength": 200,
"description": "Only models whose id or name contains this text, ignoring case (e.g. `claude`, `gpt-4o`)."
},
"limit": {
"type": "integer",
"default": 100,
"maximum": 200,
"minimum": 1,
"description": "Page size, 1 to 200."
},
"cursor": {
"type": "string",
"description": "The `nextCursor` of the previous page, unchanged."
}
},
"additionalProperties": false
}{
"title": "List models and prices",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_order_book — Read a model's order book
Read a model's order book The model's order book as a seller sees it: the asks by price level, cheapest first (up to 20), what buyers pay and what a seller there earns (buyers pay divided by the fee), how many asks stand at each level, and which level is yours. Price against it: set your own price with the `set_offer_pricing` tool with { price } or follow the market. Refreshed every second; at most 10 reads a second (429 limit_reached). Never a name, a seller or a source. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"model"
],
"properties": {
"model": {
"type": "string",
"description": "The model id, e.g. deepseek-v4.1-flash (URL-encode a slash: org%2Fmodel)."
}
},
"additionalProperties": false
}{
"title": "Read a model's order book",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_supply_credentials — List saved vendor keys
List saved vendor keys The account's saved vendor API keys, newest first: the vendor prefix and last four only. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "List saved vendor keys",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}create_supply_credential — Save your own server or a vendor API key
Save your own server or a vendor API key Saves, for selling, your own OpenAI-compatible server's https base URL and optional key (preset custom), or a vendor API key (today a Z.ai GLM Coding Plan key: preset zai). A preset marked comingSoon in the `list_supply_presets` tool is refused (422 preset_coming_soon). It is sealed at once to the box that serves requests (the console itself cannot read it back), never logged and never shown again: the answer carries a hint only. OAuth and session tokens are refused (400 key_refused). One listing per key: the same key saved again answers 200 with the credential already saved (alreadyAdded: true, nothing new is saved), and a key another account lists is refused (409 key_taken). Then discover its models with the `discover_models` tool. Sellers only: an account that has not accepted the selling terms gets 403 not_seller. At most 20 seller keys per account, and 100 new ones a day: past either, 409 limit_reached.
{
"type": "object",
"required": [
"preset"
],
"properties": {
"key": {
"type": "string",
"maxLength": 512,
"description": "The vendor API key (required for a vendor preset; optional bearer key for custom). Sealed at once to the serving box; never stored readable, logged or shown again."
},
"label": {
"type": [
"string",
"null"
],
"maxLength": 64
},
"preset": {
"enum": [
"openai",
"google",
"deepseek",
"zai",
"moonshot",
"custom"
],
"type": "string"
},
"baseUrl": {
"type": "string",
"maxLength": 200,
"description": "custom only: the server's OpenAI-compatible base URL, https and a public host (port 443 or from 1024). Sealed with the key; the serving box checks every address it connects to."
},
"statement": {
"type": "string",
"description": "The statementVersion of GET /sell/presets: records the seller's statement for this key (else it is asked at publish)."
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
}
},
"additionalProperties": false
}{
"title": "Save your own server or a vendor API key",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}revoke_supply_credential — Remove a saved key
Remove a saved key Removes a saved key: every offer on it is cancelled and it stops serving within a minute (requests already running finish). Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The key id."
}
},
"additionalProperties": false
}{
"title": "Remove a saved key",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}discover_models — Discover a key's models
Discover a key's models Reads the models the key can serve and checks that it is a paid or funded key, as a job: poll the `get_supply_job` tool every second until it is done (a few seconds: the model list only); its `models` are every model the key serves, each with its reference price and where it comes from (none anywhere: set your own price), and `paid` false means add funds and discover again. A Z.ai open-platform key (zaiKind open) lists its models as not listable for now: Z.ai open platform keys are coming soon. Each model's self-name check runs in its health test. A discovery running or done in the last ten minutes is reused unless `fresh`. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The key id."
},
"fresh": {
"type": "boolean",
"description": "Read the model list again even if it was read in the last ten minutes."
}
},
"additionalProperties": false
}{
"title": "Discover a key's models",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}rotate_supply_credential — Rotate a saved key
Rotate a saved key Replaces a saved key with a new key of the same vendor (an own server: a new address or key): sealed like the first, its offers move to it, the old one stops serving within a minute, and a health test runs on the new one. The same key again is a 400. Sellers only: an account that has not accepted the selling terms gets 403 not_seller. A key another account lists is 409 key_taken; one of this account's other keys is 409 key_already_added. At most 100 new seller keys a day per account, rotations included: past it, 409 limit_reached.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The key id."
},
"key": {
"type": "string",
"maxLength": 512,
"description": "The new key, of the same vendor (custom: the new bearer key, optional)."
},
"baseUrl": {
"type": "string",
"maxLength": 200,
"description": "custom only: the server's base URL (the same or a new one)."
}
},
"additionalProperties": false
}{
"title": "Rotate a saved key",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}get_supply_earnings — Read selling earnings
Read selling earnings Today, 7, 30 and 90 days and the month to date; earnings and requests per UTC day over the range; per offer what it earned, its share of the model's community-served requests, the average discount it gave, the gap to the best offer and whether it is outbid; the newest served requests. Every figure is at least an hour late. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"properties": {
"range": {
"enum": [
"7d",
"30d",
"90d"
],
"type": "string",
"default": "30d"
}
},
"additionalProperties": false
}{
"title": "Read selling earnings",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_supply_earnings — List served requests
List served requests Each request your offers served, newest first: the time to the minute, the model, tokens, your rate and what you earned; at least an hour late, never a buyer or a request id. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"properties": {
"days": {
"enum": [
7,
30,
90
],
"type": "integer",
"default": 30
},
"limit": {
"type": "integer",
"default": 500,
"maximum": 5000,
"minimum": 1
}
},
"additionalProperties": false
}{
"title": "List served requests",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_supply_job — Read a selling job
Read a selling job A discovery, health test or identity check: its status and, once done, its result. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The job id."
}
},
"additionalProperties": false
}{
"title": "Read a selling job",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_offers — List offers
List offers Every offer of the account: model, key, status, price, checks, health (the last liveness ping and identity probe), and the model's market as a seller sees it (anonymised levels, the best discount, the gap to it, outbid, whether your ask rests in the book and its rank). Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "List offers",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}create_offers — Draft offers from a key's models
Draft offers from a key's models Drafts one offer per model of the key's last discovery, priced to follow the market unless a fixed discount is given. The selection replaces the key's drafts. A draft goes live after its health test and identity checks pass (the `test_offer` tool) and it is published (the `publish_offer` tool). Sellers only: an account that has not accepted the selling terms gets 403 not_seller. Send `selfPrices` (model id to { p, c, cr? }, USD per 1M tokens, each above 0) to draft any model at your own price; a model with no reference price anywhere needs one. A Z.ai key that discovery found to be an open-platform one (the job's zaiKind is open) is refused while nothing is listed on it: 422 preset_coming_soon (GLM Coding Plan keys work now). At most 500 offers per account (drafts included, cancelled ones not), and 2,000 new ones a day: past either, 409 limit_reached.
{
"type": "object",
"required": [
"credentialId",
"models"
],
"properties": {
"models": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 100,
"minItems": 1,
"description": "Models of the key's last discovery (our id or the vendor's). The selection replaces the key's drafts."
},
"selfPrices": {
"type": "object",
"description": "Your own price for selected models, by model id: { p, c, cr? } in USD per 1M tokens, each above 0. Any model; required for a model with no reference anywhere.",
"additionalProperties": {
"type": "object",
"required": [
"p",
"c"
],
"properties": {
"c": {
"type": "number",
"exclusiveMinimum": 0
},
"p": {
"type": "number",
"exclusiveMinimum": 0
},
"cr": {
"type": "number",
"exclusiveMinimum": 0
}
}
}
},
"discountPct": {
"type": "number",
"maximum": 99.9,
"minimum": 0.1,
"multipleOf": 0.1
},
"pricingMode": {
"enum": [
"match",
"discount",
"per_model"
],
"type": "string",
"default": "match"
},
"credentialId": {
"type": "string",
"format": "uuid"
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
},
"maxDiscountPct": {
"type": [
"number",
"null"
],
"maximum": 99.9,
"minimum": 0.1,
"multipleOf": 0.1
}
},
"additionalProperties": false
}{
"title": "Draft offers from a key's models",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}get_offer — Read an offer
Read an offer One offer with its status, checks, health and market. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The offer id."
}
},
"additionalProperties": false
}{
"title": "Read an offer",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}set_offer_pricing — Price an offer
Price an offer Follow the market (`match`: one tick under the best offer elsewhere, never past your floor) or set a fixed discount off the reference price, in percent with one decimal (0.1 to 99.9, e.g. 99.5), that follows the reference price when it moves; `maxDiscountPct` is your floor (the lowest price you accept). An offer is served when it is the cheapest healthy source for a request; an ask above our price rests in the book and fills when it is the best available (our routes within our price down, at capacity or over the buyer's limit), never above the model's list price + 5 %. Sellers only: an account that has not accepted the selling terms gets 403 not_seller. Or send `price` for your own price on any model (required for a model with no reference price anywhere): USD per 1M input, output and (optionally) cached input tokens, each above 0, at most one change a second; it is served only when it is the best price for the request, and a market-priced offer switches back with `pricingMode`; buyers see it as the price for the model, and it can change at any time.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The offer id."
},
"price": {
"type": "object",
"required": [
"p",
"c"
],
"properties": {
"c": {
"type": "number",
"description": "Output.",
"exclusiveMinimum": 0
},
"p": {
"type": "number",
"description": "Input.",
"exclusiveMinimum": 0
},
"cr": {
"type": "number",
"description": "Cached input (the input price when left out).",
"exclusiveMinimum": 0
}
},
"description": "Your own price (pricingMode self), on any model: USD per 1M tokens, each leg above 0."
},
"discountPct": {
"type": "number",
"maximum": 99.9,
"minimum": 0.1,
"multipleOf": 0.1
},
"pricingMode": {
"enum": [
"match",
"discount",
"per_model",
"self"
],
"type": "string",
"description": "match follows the market (one tick under the best offer elsewhere, never past your floor); discount and per_model are fixed."
},
"maxDiscountPct": {
"type": [
"number",
"null"
],
"maximum": 99.9,
"minimum": 0.1,
"multipleOf": 0.1
}
},
"additionalProperties": false
}{
"title": "Price an offer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}discard_offer — Discard a draft offer
Discard a draft offer Deletes a draft that never went live; a listed offer is cancelled instead (the `cancel_offer` tool). Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The offer id."
}
},
"additionalProperties": false
}{
"title": "Discard a draft offer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}cancel_offer — Cancel an offer
Cancel an offer Ends the offer for good. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The offer id."
}
},
"additionalProperties": false
}{
"title": "Cancel an offer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}get_offer_health — Read an offer's health log
Read an offer's health log The offer's health events, newest first: the reason, time to first token (p95), answers and failures in the hour, and an error category. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The offer id."
},
"limit": {
"type": "integer",
"default": 100,
"maximum": 500,
"minimum": 1
}
},
"additionalProperties": false
}{
"title": "Read an offer's health log",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}pause_offer — Pause an offer
Pause an offer Stops routing to the offer until it is resumed. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The offer id."
}
},
"additionalProperties": false
}{
"title": "Pause an offer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}publish_offer — Publish an offer
Publish an offer Lists a draft whose health test and identity checks passed: it goes live within about a minute and is checked continuously from then on. Its key needs the seller's statement on record: pass `statement` (the version from the `list_supply_presets` tool) to accept it. A draft not ready yet, or a key without the statement, is a 409. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The offer id."
},
"statement": {
"type": "string",
"description": "The statementVersion of GET /sell/presets: accepts the seller's statement for the offer's key, if it is not on record yet."
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
}
},
"additionalProperties": false
}{
"title": "Publish an offer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}reset_offer_health — Reset an offer's health
Reset an offer's health Runs a fresh health test on the key; the offer is routed again once it answers. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The offer id."
}
},
"additionalProperties": false
}{
"title": "Reset an offer's health",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}resume_offer — Resume an offer
Resume an offer Routes to a paused offer again. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The offer id."
}
},
"additionalProperties": false
}{
"title": "Resume an offer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}test_offer — Test an offer
Test an offer The health test (one short streamed request on your key, about 16 tokens) and, for a draft, the identity checks (a few hundred tokens). Read the outcome with the `get_offer` tool. A draft that fails either check is deleted (contract v2.4): `get_offer` answers 404 and the job (`get_supply_job`) says why under `removed`; to try again, draft the model again with `create_offers`. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The offer id."
},
"retest": {
"type": "boolean",
"description": "Test again even when a test ran before (a listed offer's health). A draft that fails is deleted, so it is drafted again instead."
}
},
"additionalProperties": false
}{
"title": "Test an offer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}bulk_offer_action — Pause, resume, cancel or reset several offers
Pause, resume, cancel or reset several offers The same action on up to 100 offers; each one's outcome, so one refusal does not stop the rest. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"required": [
"action",
"offerIds"
],
"properties": {
"action": {
"enum": [
"pause",
"resume",
"cancel",
"reset-health"
],
"type": "string"
},
"offerIds": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
},
"maxItems": 100,
"minItems": 1
}
},
"additionalProperties": false
}{
"title": "Pause, resume, cancel or reset several offers",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}get_payout_address — Read the payout address
Read the payout address Where payouts go: the address the seller saved (USDC on Base), when it last changed, and until when a payout to it waits (24 hours after a change), or null. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Read the payout address",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_supply_payouts — Read payouts
Read payouts Owed, available, requested and paid out, what is held and why, the payout address and the payout history (Requested, Sent with its transaction, Failed or returned). Payouts are sent manually in USDC on Base, usually within 72 hours: `canRequest` says whether one can be requested now and `requestBlocked` why not. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Read payouts",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_supply_presets — List what a key can be listed for
List what a key can be listed for What a key can be listed for. Today: custom, your own OpenAI-compatible server (any model it serves), and zai with a GLM Coding Plan key. The other vendors (OpenAI, Google AI Studio, DeepSeek, Moonshot, and Z.ai open platform keys) are listed with `comingSoon: true`: a key for one is refused (422 preset_coming_soon). Each vendor carries a one-line terms check (make sure your vendor's terms allow it) and a link to that vendor's terms page. Each carries the short statement the seller accepts before a key goes live (the key is yours, you allow serving other customers' requests, your vendor account is your responsibility) and its version. OAuth and session tokens are never accepted.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "List what a key can be listed for",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_seller — Read the account's seller status
Read the account's seller status Whether the account sells, its standing and limits. Not a seller yet: `seller: false`.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Read the account's seller status",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}update_seller — Set the seller's daily cap and concurrency
Set the seller's daily cap and concurrency Your own daily earnings cap in USD (resets 00:00 UTC; null for none) and the requests at once per offer (1 to 32). Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
{
"type": "object",
"properties": {
"concurrency": {
"type": "integer",
"maximum": 32,
"minimum": 1
},
"dailyCapUsd": {
"type": [
"number",
"null"
],
"maximum": 100000,
"minimum": 1,
"description": "USD a UTC day, or null for no cap."
}
},
"additionalProperties": false
}{
"title": "Set the seller's daily cap and concurrency",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}create_topup_checkout — Create a card top-up link
Create a card top-up link A card checkout link (Stripe Checkout) for a person to top up this account. Open the `url` in a browser; the balance is credited when the payment completes. Card top-ups start at $5, in whole dollars, with no maximum of ours: a smaller amount is raised to $5, and the reply returns the limits (maxUsd is Stripe Checkout's own ceiling for one payment, 999999). When a deposit fee applies, it is added on top of the credit (10 % of it plus $0.30 by card): the link charges `payUsd` plus any VAT or sales tax. The amount is fixed: Stripe's page shows the credit as one line, and the fee as its own line when there is one. Takes an agent session or a management key like every v1 operation (a model key gets 403 wrong_key_type), and every call is recorded in the activity log. With an Idempotency-Key, a retry returns the first link instead of making another. Also served at /v1/topup/checkout, which also accepts the account's model keys (kl_live_).
{
"type": "object",
"properties": {
"amountUsd": {
"type": "number",
"default": 25,
"maximum": 999999,
"minimum": 5
},
"idempotencyKey": {
"type": "string",
"maxLength": 200,
"description": "Optional. A unique string so that repeating this call never creates twice."
}
},
"additionalProperties": false
}{
"title": "Create a card top-up link",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}get_usage — Get usage
Get usage Requests, tokens and spend over the last `days` whole UTC days, today included (days=1 is today so far), in total and by day, model and key. Every breakdown counts the same hours, so the totals equal the sum of byDay, of byModel and of byKey. Spend is what the account was charged, at our price, its customers' keys included.
{
"type": "object",
"properties": {
"days": {
"type": "integer",
"default": 30,
"maximum": 90,
"minimum": 1,
"description": "Window in whole UTC days, today included: 1 to 90."
}
},
"additionalProperties": false
}{
"title": "Get usage",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_wallets — List wallets and invites
List wallets and invites Every wallet that signs in to this account with Sign-In with Ethereum (`status: active`), then the wallets invited to join it (`status: invited`). `role` is owner for the wallet that opened an agent's own account and delegate for every other wallet and invite.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "List wallets and invites",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}remove_wallet — Remove a wallet or cancel an invite
Remove a wallet or cancel an invite Removes an active wallet or cancels an invite. The owner can remove any wallet except its own (409 own_wallet). A delegate wallet can remove only its own wallet: it leaves the account, and its session ends. Anyone else gets 403 owner_only. Removing an active wallet ends its sessions and revokes every key it created (`createdBy: wallet:0x…`): model keys for itself, management keys and keys it made for customers. `revokedKeys` says how many. Returns the remaining wallets and invites.
{
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The wallet's 0x… address (any case)."
}
},
"additionalProperties": false
}{
"title": "Remove a wallet or cancel an invite",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}get_whoami — Check who is signed in
Check who is signed in The account and the credential behind this request: an agent session (owner or delegate, with its wallet and expiry) or a management key (a delegate), and the permissions it carries. A cheap call to check a credential.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Check who is signed in",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
Not advertised
Resources
Not advertised
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 3 of 3 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 3 of 3 (100%)
- Average latency
- 834 ms
- 95th percentile latency
- 1097 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 1119 ms · metadata changed · 73 tool(s); protected-resource metadata advertises OAuth
- · probe · passed · 894 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)
- · probe · passed · 488 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http opencheap-mcp https://app.opencheap.si/api/v1/mcpCodex
codex mcp add opencheap-mcp --url https://app.opencheap.si/api/v1/mcpCursor
{
"mcpServers": {
"opencheap-mcp": {
"url": "https://app.opencheap.si/api/v1/mcp"
}
}
}Cline
{
"mcpServers": {
"opencheap-mcp": {
"type": "streamableHttp",
"url": "https://app.opencheap.si/api/v1/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"opencheap-mcp": {
"type": "http",
"url": "https://app.opencheap.si/api/v1/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http opencheap-mcp https://app.opencheap.si/api/v1/mcpClaude Desktop
https://app.opencheap.si/api/v1/mcpWindsurf
{
"mcpServers": {
"opencheap-mcp": {
"serverUrl": "https://app.opencheap.si/api/v1/mcp"
}
}
}Let your agent find its tools
Find servers like OpenCheap MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other ai and machine learning servers
Do you run OpenCheap MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.