---
title: "One decision by Jev for a Subs seat (the subs-jev use)"
method: POST
path: "/api/v2/account/ai/subs-jev"
tags: ["Account"]
---

# One decision by Jev for a Subs seat (the subs-jev use)

`POST /api/v2/account/ai/subs-jev`

## Request

- Base URL: `https://www.onlyworlds.com`
- URL: `https://www.onlyworlds.com/api/v2/account/ai/subs-jev`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Session-Token`
  - HTTP bearer

Run the AI door's `subs-jev` use for the signed-in account: the body and the answer are the use's own, the meter is the account's daily token rating (then its own saved AI key, else 429 quota_exceeded), as every AI call's. An Idempotency-Key makes a retry safe: the same key and body answer the first answer again and bill nothing. An account credential (Bearer `ow_a_`, a signed-in session, or a phone's `X-Session-Token`), or an AI door token that names this use.

## Headers

- `Idempotency-Key` string
- `X-OW-Client` string

## Request body

- object
  - `state` string, required: What the decider sees now, as text (Subs: the character's block, then SITUATION and the captain's view).
  - `menu` object[], required: The options valid now, 2 to 20, each value once: cut a longer menu before the call (more is a 422).
    - `value` string, required: The option's name, as the answer's `pick` gives it back.
    - `description` string, required
  - `question` object, required
    - `name` string, required
    - `instructions` string, required: The question Jev answers by choosing one option.

## Response `200`

The pick (one of the menu's values), Jev's `confidence`, a probability per option, `fallback` (another model answered), `model` and `usage`, the meter whole (`paid_by` is always `rating`), and `use_remaining` (null: no daily ceiling). The rating spends the gateway's own cost of the call in Haiku input tokens, rounded up.

- object
  - `pick` string, required: The chosen option's value: always one of the menu's.
  - `confidence` number, nullable, required: Jev's confidence in the pick, 0 to 1; null when the gateway gave none.
  - `probabilities` object, required: A probability per option, by its value, in the menu's order; null for an option Jev scored none.
  - `fallback` boolean, required: True when the gateway says another model answered (its fallback header, or no probabilities at all): the pick is then not Jev's.
  - `model` string, required: The model that answered, as the gateway names it. When another model answered (`fallback` true): the model the gateway's final-model header names, else `unknown`.
  - `usage` object, required
    - `input_tokens` integer, required
    - `output_tokens` integer, required
  - `remaining` integer, required: How many more calls of this one's size fit in what this account has left today.
  - `tokens_remaining` integer, required: The account's tokens left today after this call.
  - `token_rating` integer, required: The account's daily token rating.
  - `paid_by` 'rating' | 'own_key', required: Who paid for this call: `rating`, the account's daily token rating on the platform's key; `own_key`, the account's own AI key, once today's rating was spent (the rating's fields above are then as they were).
  - `use_remaining` integer, nullable, required: Calls to this use this account has left today; null when the use has no daily ceiling (the token rating is then the only limit).

## Other responses

- `401`: Missing or invalid account credential (Bearer ow_a_ token or session, or an AI door token). Another `ow_a_` token kind, a hosted MCP client's, is 401 wrong_audience; an expired AI door token is 401 key_revoked.
- `403`: An AI door token that does not name this use (use_not_granted, param use): it opens only the uses it was minted for. Or a read-only account token: one from a read-only sign-in is refused on this route (permission_error).
- `409`: An Idempotency-Key was reused with a different body (idempotency_error), or a request with this Idempotency-Key is still in flight (idempotency_in_flight; retry after Retry-After).
- `422`: state, menu (2 to 20 options, each {value, description}, each value once) or question ({name, instructions}) is missing, malformed or over its cap; `param` names it. Or the Idempotency-Key is over its length cap (param Idempotency-Key).
- `429`: This account has used today's token rating (quota_exceeded): fewer tokens are left than a decision may take. A saved AI key does not run this use. Retry-After says when the rating resets (midnight UTC). Or too many requests: over the request budget (code too_many_requests, type rate_limited): 300 requests a minute per key or account token, 60 a minute per address for a request with neither. Retry after the Retry-After header's seconds.
- `502`: Jev gave no usable decision (ask_failed: the gateway failed, timed out, or picked none of the menu's values); nothing was taken from the token rating. A decision the gateway billed still counts against this use's budget, and a retry under the same Idempotency-Key replays this 502.
- `503`: Not switched on, the server's Jev key is not set up, or paused for the day (ask_unavailable; with param use, this use's provider, switch or budget), nothing counted; or every request slot stayed full (server_busy, with Retry-After).

## Changes

- **2026-11-28** `e45847b3f48f`: 7 info
  - added the optional property `error/limit` to the response with the `401` status
  - added the optional property `error/limit` to the response with the `403` status
  - added the optional property `error/limit` to the response with the `409` status
  - added the optional property `error/limit` to the response with the `422` status
  - …3 more
- **2026-11-26** `f921dd878e35`: 7 warning
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `401`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `403`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `409`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `422`
  - …3 more
- **2026-11-26** `7ef7860703bb`: 7 warning
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `401`
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `403`
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `409`
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `422`
  - …3 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/changes/api/v2/account/ai/subs-jev/post.md)

---

[API](https://skmtc.dev/onlyworlds/apis/onlyworlds-api.md) - [All operations](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/revisions/6c819f2e4bbd?raw)
