Start a run and pay for it in one step: it starts when the payment goes through
const url = 'https://api.supposing.app/v1/runs/checkout';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"type":"ranking","dataset_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","ranking":{"rubric":"example","rounds":8,"both_orders":false,"pairing":"swiss","goal":"full","top_n":10,"max_chars":60000,"seed":0,"context":"example","examples":[{"a":"example","b":"example","winner":"A","why":"example"}],"system":"example","keep_rules":true},"name":"example","rubric_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","ephemeral":false,"judge":"quick","max_cost_usd":1,"amount_usd":1,"ui_mode":"embedded"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.supposing.app/v1/runs/checkout \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "type": "ranking", "dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "ranking": { "rubric": "example", "rounds": 8, "both_orders": false, "pairing": "swiss", "goal": "full", "top_n": 10, "max_chars": 60000, "seed": 0, "context": "example", "examples": [ { "a": "example", "b": "example", "winner": "A", "why": "example" } ], "system": "example", "keep_rules": true }, "name": "example", "rubric_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "ephemeral": false, "judge": "quick", "max_cost_usd": 1, "amount_usd": 1, "ui_mode": "embedded" }'Use it when the estimate is above the balance (balance_after_usd below zero). The run is created awaiting_payment with no hold; the Stripe webhook credits the workspace, then holds and queues the run, so it starts even if the browser never comes back.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Any unique string, e.g. a UUID. Retrying with the same key returns the first response instead of creating a second one. Keys last 24 hours.
Any unique string, e.g. a UUID. Retrying with the same key returns the first response instead of creating a second one. Keys last 24 hours.
Request Bodyrequired
Section titled “Request Bodyrequired”Start a run and pay for it in one step: the run waits for the payment, then starts on its own.
object
Settings for a run of type ranking: a pairwise tournament judged against a rubric.
object
What the judge should prefer, in plain words. Each call shows the judge two items and this rubric and asks which is better.
Opponents per item. More rounds, tighter intervals.
Read each pair both ways: judge every pair twice, swapping which item comes first. More reliable, twice the calls. Off, each pair is judged once with a random item first, so position bias averages out.
Swiss pairs items of similar rating; round_robin judges every pair each round (small sets only; not with goal top_n).
Top_n spends calls on finding the best top_n items rather than ordering the whole list.
Each item is read up to this many characters; a longer one is cut. The estimate’s long_items says how many would be cut, the largest this judge model takes, and the cost of reading them in full.
Past judgements for calibration: two texts, the winner (A or B) and optionally why. Shown to the judge before every pair.
A past judgement shown to the judge (the engine’s supposing.Example).
Your own system prompt, as a template. It must contain {output_format} (the reply the library reads) and {rules} (the built-in rules, including the guard against instructions inside the texts) unless keep_rules is false. Write literal braces as {{ and }}. Null: the built-in prompt (GET /v1/rubrics/system-prompt).
True for a throwaway, such as an inline one-shot comparison: hidden from lists unless include_ephemeral=true, and deleted after 30 days.
Quick (the default), balanced, thorough, or an OpenRouter model id from GET /v1/models; or the full {provider, model} object.
The model that makes each call in a run.
object
Openrouter: our key, paid from credit, or your own OpenRouter key (on the Subscription). mock (made-up verdicts) and claude_cli (your Claude subscription) exist only in local development, never on the hosted API: use the open-source CLI for them.
An OpenRouter model id (GET /v1/models), vendor/name: no variant suffix such as :online or :free, and no router (openrouter/…, ~…).
Credit to buy, whole US dollars from min_topup_usd (GET /v1/billing); at least what the run needs beyond the balance.
Embedded: a client_secret for Stripe’s embedded checkout; hosted: a url to Stripe’s page.
Responses
Section titled “Responses”Successful Response
object
Status awaiting_payment until the payment goes through, then queued. Unpaid runs are deleted after a day.
object
The model that makes each call in a run.
object
Openrouter: our key, paid from credit, or your own OpenRouter key (on the Subscription). mock (made-up verdicts) and claude_cli (your Claude subscription) exist only in local development, never on the hosted API: use the open-source CLI for them.
An OpenRouter model id (GET /v1/models), vendor/name: no variant suffix such as :online or :free, and no router (openrouter/…, ~…).
Settings for a run of type ranking: a pairwise tournament judged against a rubric.
object
What the judge should prefer, in plain words. Each call shows the judge two items and this rubric and asks which is better.
Opponents per item. More rounds, tighter intervals.
Read each pair both ways: judge every pair twice, swapping which item comes first. More reliable, twice the calls. Off, each pair is judged once with a random item first, so position bias averages out.
Swiss pairs items of similar rating; round_robin judges every pair each round (small sets only; not with goal top_n).
Top_n spends calls on finding the best top_n items rather than ordering the whole list.
Each item is read up to this many characters; a longer one is cut. The estimate’s long_items says how many would be cut, the largest this judge model takes, and the cost of reading them in full.
Past judgements for calibration: two texts, the winner (A or B) and optionally why. Shown to the judge before every pair.
A past judgement shown to the judge (the engine’s supposing.Example).
Your own system prompt, as a template. It must contain {output_format} (the reply the library reads) and {rules} (the built-in rules, including the guard against instructions inside the texts) unless keep_rules is false. Write literal braces as {{ and }}. Null: the built-in prompt (GET /v1/rubrics/system-prompt).
Paid from the workspace’s credit (our OpenRouter key).
Catalogue pricing: the prices this run is charged at, fixed when it was created. Null otherwise.
object
Per million tokens the judge reads.
Per million tokens it writes.
GET /v1/runs/{id} and the events stream only (null in lists): the newest decided comparison.
The most recent decided comparison of a run, for ‘Latest · A beat B: “…”’ on the live page.
object
The first clause of the judge’s reasoning, at most 160 characters.
A short hash of everything that gives a verdict its meaning: rubric, system prompt, context, examples, judge, both_orders and max_chars (supposing.run_fingerprint). Runs with the same one are comparable.
The judge in words, e.g. ‘Claude Haiku 5.5’, or ‘Claude Haiku’ for a Claude subscription. Show this rather than the model id.
How the judge’s calls were routed: zero_retention means only to providers that keep no data and don’t collect it.
Why a done run stopped before its plan, as a field: cost_cap (max_cost_usd was reached), hold (the credit held for it ran out), price_unknown (the model’s price changed or went missing). Null when it ran its plan, and for failed and canceled runs (see error_code). note says the same in words.
Why the run failed, as a stable code: no_verdicts (no comparison gave a readable verdict, so there is no ranking; it does not count toward the month’s rankings), own_key_removed (the workspace’s OpenRouter key was removed; add it back, then retry), judge_unreadable (the judge’s answers were too often not in the required format), judge_unavailable (catalogue pricing: the model could not judge the run; pick another), provider_error or http_
Time spent judging, summed over passes (a live pass counts to now). Not finished_at - started_at, which includes idle time between an end and an extend.
1, plus one per extend or retry.
object
What the run has cost so far: for a billed run, the credit charged for its calls; otherwise the model cost reported by the provider (on your own key).
Calls that needed a second paid reply: the first was unreadable, or the judge declined to choose and was asked once more.
Calls whose replies were all unreadable (no verdict in them). On a billed run they are charged like any call.
What the second replies cost, included in cost_usd: on your own key, or on a billed run under token pricing, where they are charged at cost. 0 under tier pricing, where a call’s price is fixed.
Calls the workers run at once for one run. For time left: remaining calls x avg_latency_ms / concurrency, roughly.
Top item from the final results; null until the run is done.
The top item of a finished run, for lists.
Best first, every item’s rank and interval from the final results (at most 40, evenly sampled, always including first and last); null until the run is done.
One item’s place in a finished ranking, for drawing a run’s shape in a list.
Example
{ "run": { "type": "ranking", "source": "web", "judge": { "provider": "openrouter", "model": "anthropic/claude-haiku-5.5", "level": "economy" }, "ranking": { "rounds": 8, "both_orders": false, "pairing": "swiss", "goal": "full", "top_n": 10, "max_chars": 60000, "seed": 0, "examples": [ { "winner": "A" } ] }, "billed": false, "prompt_fingerprint": "", "judge_name": "", "data_policy": "zero_retention", "status": "awaiting_payment", "stopped_by": "cost_cap", "judging_seconds": 0, "passes": 1, "progress": { "retried": 0, "unreadable": 0, "retry_cost_usd": 0, "concurrency": 0 } }}Client error. Branch on code; show message and hint.
The body of every non-2xx response.
object
Stable machine-readable code, e.g. dataset_not_found.
Per-field problems, for invalid_request.
object
Dotted path to the field, e.g. ranking.rubric.
For plan_limit_* codes: the limit, usage and upgrade.
Which plan limit a plan_limit_* error hit, and the way up.
object
Datasets, items_per_dataset, chars_per_dataset or runs_per_month.
The workspace’s plan: free (Pay as you go) or subscription.
Current usage; for items_per_dataset and chars_per_dataset, the size the dataset would have.
Example generated
{ "code": "example", "message": "example", "hint": "example", "details": [ { "field": "example", "message": "example" } ], "limit": { "name": "example", "plan": "example", "limit": 1, "used": 1, "upgrade_url": "example" }}Server error.
The body of every non-2xx response.
object
Stable machine-readable code, e.g. dataset_not_found.
Per-field problems, for invalid_request.
object
Dotted path to the field, e.g. ranking.rubric.
For plan_limit_* codes: the limit, usage and upgrade.
Which plan limit a plan_limit_* error hit, and the way up.
object
Datasets, items_per_dataset, chars_per_dataset or runs_per_month.
The workspace’s plan: free (Pay as you go) or subscription.
Current usage; for items_per_dataset and chars_per_dataset, the size the dataset would have.
Example generated
{ "code": "example", "message": "example", "hint": "example", "details": [ { "field": "example", "message": "example" } ], "limit": { "name": "example", "plan": "example", "limit": 1, "used": 1, "upgrade_url": "example" }}