{"openapi":"3.1.0","info":{"title":"Spinda decision API","version":"2026-10-23","description":"Decisions from base and edited models, and the Natures Lab customization API: explain, discover, edit, evaluate with intervals, diff, inspect datasets, train, probe, health-check and publish. Every error uses the Error schema. Lists page with limit and after."},"servers":[{"url":"https://api.spinda.ai"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Decisions"},{"name":"Interpretation"},{"name":"Customization"},{"name":"Meta"}],"paths":{"/v1/openapi.json":{"get":{"summary":"This document","tags":["Meta"],"security":[],"responses":{"200":{"description":"OpenAPI 3.1","content":{"application/json":{"schema":{"type":"object"}}}}},"operationId":"getOpenapijson"}},"/v1/samples":{"get":{"summary":"Held-out sample decisions","tags":["Interpretation"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"areas":{"type":"object"},"samples":{"type":"array","items":{"type":"object"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"n","in":"query","schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"seed","in":"query","schema":{"type":"integer"}},{"name":"area","in":"query","schema":{"type":"string"}},{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getSamples"}},"/v1/analyze":{"post":{"summary":"Explain one decision and check the explanation","tags":["Interpretation"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Analysis"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"description":"Needs record or sample. First-order effect of every dictionary feature on the margin, per token and per feature, with an intervention check of the top check_n features.","x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"record":{"$ref":"#/components/schemas/Record"},"sample":{"type":"object","properties":{"seed":{"type":"integer"},"area":{"type":"string"}}},"question":{"type":"string"},"options":{"type":"array","items":{"type":"string"},"minItems":2,"maxItems":2},"top_k":{"type":"integer","minimum":1,"maximum":200},"check":{"type":"boolean"},"check_n":{"type":"integer","minimum":1,"maximum":30},"edit_id":{"type":"string"},"model":{"type":"string","description":"A deployed model id"},"ops":{"type":"array","items":{"$ref":"#/components/schemas/Op"}}}}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postAnalyze"}},"/v1/discover":{"post":{"summary":"Find features that respond to an input change","tags":["Interpretation"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discovery"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"},"202":{"description":"Started in the background (async=1)","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/Operation"},"poll":{"type":"string"}}}}}}},"x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pairs":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Record"},"minItems":2,"maxItems":2},"minItems":1,"maxItems":24},"goal":{"type":"string","description":"Rerank candidates by label similarity to this text"},"options":{"type":"array","items":{"type":"string"}},"terms":{"type":"array","items":{"type":"string"}},"top_k":{"type":"integer"},"min_consistency":{"type":"number"},"edit_id":{"type":"string"},"model":{"type":"string","description":"A deployed model id"},"ops":{"type":"array","items":{"$ref":"#/components/schemas/Op"}}},"required":["pairs"]}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"async","in":"query","required":false,"schema":{"type":"boolean"},"description":"Run in the background: 202 with an Operation at once, then poll GET /v1/operations/{id}. Use it for calls that can outlast a 120 s client or gateway timeout."}],"operationId":"postDiscover"}},"/v1/features/search":{"post":{"summary":"Search feature labels","tags":["Interpretation"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"count":{"type":"integer","description":"Labels containing the query"},"returned":{"type":"integer"},"ranking":{"type":"string"},"semantic_matches":{"type":"integer"},"features":{"type":"array","items":{"$ref":"#/components/schemas/Feature"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"description":"Hits ranked by score: embedding similarity of query and label when the index is ready (labels with the same meaning but other words are added as match semantic), else a lexical score. The first 25 carry label quality.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"limit":{"type":"integer"},"layers":{"type":"array","items":{"type":"integer"}}},"required":["query"]}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"postFeaturesSearch"}},"/v1/features/{layer}/{feature}":{"get":{"summary":"One feature's label, examples and label quality","tags":["Interpretation"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feature"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"layer","in":"path","required":true,"schema":{"type":"integer"}},{"name":"feature","in":"path","required":true,"schema":{"type":"integer"}},{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getFeaturesLayerFeature"}},"/v1/features/{layer}/{feature}/neighbors":{"get":{"summary":"Features whose decoder directions are closest","tags":["Interpretation"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"layer":{"type":"integer"},"feature":{"type":"integer"},"label":{"type":"string"},"method":{"type":"string"},"neighbors":{"type":"array","items":{"type":"object","properties":{"layer":{"type":"integer"},"feature":{"type":"integer"},"cosine":{"type":"number"},"label":{"type":"string"},"label_agreement":{"type":["number","null"]},"label_flag":{"type":"string"}}}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"description":"Cosine similarity of decoder directions (what each feature writes into the model) within the layer.","parameters":[{"name":"layer","in":"path","required":true,"schema":{"type":"integer"}},{"name":"feature","in":"path","required":true,"schema":{"type":"integer"}},{"name":"k","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getFeaturesLayerFeatureNeighbors"}},"/v1/operations/{operation_id}":{"get":{"summary":"Status and result of a long call started with ?async=1","tags":["Meta"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Operation"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"description":"Poll until done is true; response then holds the call's body and status_code its HTTP status. Kept 24 hours.","parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"getOperationsOperationId"}},"/v1/edits":{"get":{"summary":"List edits (oldest first)","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"edits":{"type":"array","items":{"$ref":"#/components/schemas/Edit"}},"has_more":{"type":"boolean"},"next_after":{"type":["string","null"],"description":"Pass as ?after= for the next page"},"unavailable":{"type":"array","items":{"type":"string"},"description":"Bases whose engine did not answer; their items are missing"}},"required":["edits","has_more"]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/After"},{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getEdits"},"post":{"summary":"Create an edit","tags":["Customization"],"x-scope":"customize","responses":{"201":{"description":"Created","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Edit"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ops":{"type":"array","items":{"$ref":"#/components/schemas/Op"},"minItems":1,"maxItems":4096}},"required":["name","ops"]}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postEdits"}},"/v1/edits/auto":{"post":{"summary":"Draft an edit from a goal and matched pairs","tags":["Customization"],"x-scope":"customize","responses":{"201":{"description":"Draft created","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoEdit"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"},"202":{"description":"Started in the background (async=1)","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/Operation"},"poll":{"type":"string"}}}}}}},"description":"Discover on half the pairs, choose a feature setting on a quarter, confirm on the rest, then evaluate on the general suite. Never deploys.","x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"goal":{"type":"string"},"pairs":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Record"},"minItems":2,"maxItems":2},"minItems":4,"maxItems":48},"options":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"max_features":{"type":"integer"},"scales":{"type":"array","items":{"type":"number"}},"seed":{"type":"integer"},"suite":{"type":"object","properties":{"n":{"type":"integer"},"seed":{"type":"integer"},"area":{"type":"string"}}}},"required":["goal","pairs"]}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"async","in":"query","required":false,"schema":{"type":"boolean"},"description":"Run in the background: 202 with an Operation at once, then poll GET /v1/operations/{id}. Use it for calls that can outlast a 120 s client or gateway timeout."}],"operationId":"postEditsAuto"}},"/v1/edits/{edit_id}":{"get":{"summary":"Get an edit","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Edit"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"edit_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"full","in":"query","schema":{"type":"integer"}}],"operationId":"getEditsEditId"},"delete":{"summary":"Delete an edit (and its model ids)","tags":["Customization"],"x-scope":"customize","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"edit_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"deleteEditsEditId"}},"/v1/edits/{edit_id}/health":{"post":{"summary":"Run the five pre-publish health checks","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"},"202":{"description":"Started in the background (async=1)","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/Operation"},"poll":{"type":"string"}}}}}}},"x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"n":{"type":"integer","minimum":1,"maximum":500},"seed":{"type":"integer"}}}}}},"parameters":[{"name":"edit_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"async","in":"query","required":false,"schema":{"type":"boolean"},"description":"Run in the background: 202 with an Operation at once, then poll GET /v1/operations/{id}. Use it for calls that can outlast a 120 s client or gateway timeout."}],"operationId":"postEditsEditIdHealth"}},"/v1/evaluate":{"post":{"summary":"Evaluate on held-out general decisions","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evaluation"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"},"202":{"description":"Started in the background (async=1)","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/Operation"},"poll":{"type":"string"}}}}}}},"description":"Draws labelled decisions this organization never used. Default n=200, which the publish gate needs.","x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"edit_id":{"type":"string"},"model":{"type":"string","description":"A deployed model id"},"ops":{"type":"array","items":{"$ref":"#/components/schemas/Op"}},"suite":{"type":"object","properties":{"kind":{"const":"general"},"n":{"type":"integer","maximum":500},"seed":{"type":"integer"},"area":{"type":"string"}}}}}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"async","in":"query","required":false,"schema":{"type":"boolean"},"description":"Run in the background: 202 with an Operation at once, then poll GET /v1/operations/{id}. Use it for calls that can outlast a 120 s client or gateway timeout."}],"operationId":"postEvaluate"}},"/v1/evaluate/dataset":{"post":{"summary":"Evaluate on your records","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evaluation"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"},"202":{"description":"Started in the background (async=1)","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/Operation"},"poll":{"type":"string"}}}}}}},"description":"purpose=evaluation refuses (409, error_type overlap) records already used to explore or build edits.","x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/Record"}},"dataset_id":{"type":"string","description":"Use an uploaded dataset instead of records"},"edit_id":{"type":"string"},"model":{"type":"string","description":"A deployed model id"},"ops":{"type":"array","items":{"$ref":"#/components/schemas/Op"}},"baseline_edit_id":{"type":"string"},"pairs":{"type":"array","items":{"type":"array","items":{"type":"integer"},"minItems":2,"maxItems":2}},"purpose":{"enum":["evaluation","development"]}}}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"async","in":"query","required":false,"schema":{"type":"boolean"},"description":"Run in the background: 202 with an Operation at once, then poll GET /v1/operations/{id}. Use it for calls that can outlast a 120 s client or gateway timeout."}],"operationId":"postEvaluateDataset"}},"/v1/diff":{"post":{"summary":"Diff two models on the same decisions","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Diff"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"},"202":{"description":"Started in the background (async=1)","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/Operation"},"poll":{"type":"string"}}}}}}},"description":"Flipped decisions ranked by margin change, decisions nearest to flipping (logit diff amplification), and the features whose attributed effect changed most.","x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"a":{"oneOf":[{"type":"string","description":"\"base\", an edit id (edit_...) or a deployed model id"},{"type":"object","properties":{"ops":{"type":"array","items":{"$ref":"#/components/schemas/Op"}}},"required":["ops"]}]},"b":{"oneOf":[{"type":"string","description":"\"base\", an edit id (edit_...) or a deployed model id"},{"type":"object","properties":{"ops":{"type":"array","items":{"$ref":"#/components/schemas/Op"}}},"required":["ops"]}]},"records":{"type":"array","items":{"$ref":"#/components/schemas/Record"}},"dataset_id":{"type":"string","description":"Use an uploaded dataset instead of records"},"sample":{"type":"object","properties":{"n":{"type":"integer"},"seed":{"type":"integer"},"area":{"type":"string"}}},"amplify":{"type":"number","minimum":0,"maximum":64},"top":{"type":"integer"},"explain":{"type":"integer"}},"required":["a","b"]}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"async","in":"query","required":false,"schema":{"type":"boolean"},"description":"Run in the background: 202 with an Operation at once, then poll GET /v1/operations/{id}. Use it for calls that can outlast a 120 s client or gateway timeout."}],"operationId":"postDiff"}},"/v1/datasets/inspect":{"post":{"summary":"Inspect records before using them","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetReport"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"},"202":{"description":"Started in the background (async=1)","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/Operation"},"poll":{"type":"string"}}}}}}},"x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/Record"}},"dataset_id":{"type":"string","description":"Use an uploaded dataset instead of records"},"scan":{"type":"boolean"},"layers":{"type":"array","items":{"type":"integer"}}}}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"async","in":"query","required":false,"schema":{"type":"boolean"},"description":"Run in the background: 202 with an Operation at once, then poll GET /v1/operations/{id}. Use it for calls that can outlast a 120 s client or gateway timeout."}],"operationId":"postDatasetsInspect"}},"/v1/datasets":{"get":{"summary":"List datasets","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"datasets":{"type":"array","items":{"$ref":"#/components/schemas/Dataset"}},"has_more":{"type":"boolean"},"next_after":{"type":["string","null"],"description":"Pass as ?after= for the next page"},"unavailable":{"type":"array","items":{"type":"string"},"description":"Bases whose engine did not answer; their items are missing"}},"required":["datasets","has_more"]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/After"},{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getDatasets"},"post":{"summary":"Upload a dataset (inspected on upload)","tags":["Customization"],"x-scope":"customize","responses":{"201":{"description":"Created","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"},"202":{"description":"Started in the background (async=1)","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/Operation"},"poll":{"type":"string"}}}}}}},"x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"records":{"type":"array","items":{"$ref":"#/components/schemas/Record"},"maxItems":2000},"scan":{"type":"boolean"}},"required":["name","records"]}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"async","in":"query","required":false,"schema":{"type":"boolean"},"description":"Run in the background: 202 with an Operation at once, then poll GET /v1/operations/{id}. Use it for calls that can outlast a 120 s client or gateway timeout."}],"operationId":"postDatasets"}},"/v1/datasets/{dataset_id}":{"get":{"summary":"Get a dataset","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"records","in":"query","schema":{"type":"integer"}}],"operationId":"getDatasetsDatasetId"},"delete":{"summary":"Delete a dataset","tags":["Customization"],"x-scope":"customize","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"deleteDatasetsDatasetId"}},"/v1/deploy":{"post":{"summary":"Publish an edit under a model id","tags":["Customization"],"x-scope":"customize","responses":{"201":{"description":"Published","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"model_id":{"type":"string"},"edit_id":{"type":"string"},"evaluation_run":{"type":"string"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"description":"409 error_type evaluation_required until the edit passes the publish gate (see Gate).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"edit_id":{"type":"string"},"model_id":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,63}$"}},"required":["edit_id","model_id"]}}}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postDeploy"}},"/v1/deploy/{model_id}":{"delete":{"summary":"Unpublish a model id","tags":["Customization"],"x-scope":"customize","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"removed":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"deleteDeployModelId"}},"/v1/deployments":{"get":{"summary":"List published model ids","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"deployments":{"type":"array","items":{"$ref":"#/components/schemas/Deployment"}},"has_more":{"type":"boolean"},"next_after":{"type":["string","null"],"description":"Pass as ?after= for the next page"},"unavailable":{"type":"array","items":{"type":"string"},"description":"Bases whose engine did not answer; their items are missing"}},"required":["deployments","has_more"]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/After"},{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getDeployments"}},"/v1/runs":{"get":{"summary":"List saved runs (newest first)","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"runs":{"type":"array","items":{"$ref":"#/components/schemas/Run"}},"has_more":{"type":"boolean"},"next_after":{"type":["string","null"],"description":"Pass as ?after= for the next page"},"unavailable":{"type":"array","items":{"type":"string"},"description":"Bases whose engine did not answer; their items are missing"}},"required":["runs","has_more"]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/After"},{"name":"kind","in":"query","schema":{"type":"string"}},{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getRuns"}},"/v1/runs/{run_id}":{"get":{"summary":"Get a saved run with version drift","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"getRunsRunId"},"delete":{"summary":"Delete a saved run","tags":["Customization"],"x-scope":"customize","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"deleteRunsRunId"}},"/v1/train":{"get":{"summary":"List training jobs","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/TrainingJob"}},"has_more":{"type":"boolean"},"next_after":{"type":["string","null"],"description":"Pass as ?after= for the next page"},"unavailable":{"type":"array","items":{"type":"string"},"description":"Bases whose engine did not answer; their items are missing"}},"required":["jobs","has_more"]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/After"},{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getTrain"},"post":{"summary":"Start a training job","tags":["Customization"],"x-scope":"customize","responses":{"202":{"description":"Queued","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJob"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"description":"pairs: groups of record indexes that should get the same decision (invariance).","x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"records":{"type":"array","items":{"$ref":"#/components/schemas/Record"}},"dataset_id":{"type":"string","description":"Use an uploaded dataset instead of records"},"pairs":{"type":"array","items":{"type":"array","items":{"type":"integer"},"minItems":2,"maxItems":16}},"spec":{"type":"object"},"start_edit_id":{"type":"string"}},"required":["name"]}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postTrain"}},"/v1/train/estimate":{"post":{"summary":"Estimate a training job's tokens, minutes and price","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainEstimate"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/Record"}},"dataset_id":{"type":"string","description":"Use an uploaded dataset instead of records"},"pairs":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"spec":{"type":"object"},"start_edit_id":{"type":"string"}}}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"postTrainEstimate"}},"/v1/train/{job_id}":{"get":{"summary":"Get a training job","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJob"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"getTrainJobId"}},"/v1/train/{job_id}/stop":{"post":{"summary":"Stop a training job (keeps the best validated step)","tags":["Customization"],"x-scope":"customize","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"stopping":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postTrainJobIdStop"}},"/v1/train/{job_id}/resume":{"post":{"summary":"Resume the saved optimizer, scheduler and RNG with unchanged inputs/recipe","tags":["Customization"],"x-scope":"customize","responses":{"202":{"description":"Queued","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJob"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postTrainJobIdResume"}},"/v1/checkpoints/uploads":{"get":{"summary":"List owned unfinished checkpoint uploads","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"uploads":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"base":{"type":"string"},"sha256":{"type":"string"},"size":{"type":"integer"},"received":{"type":"integer"},"format":{"const":"safetensors"},"created":{"type":"number"}}}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getCheckpointsUploads"},"post":{"summary":"Start an owned safetensors head upload (up to 128 MiB)","tags":["Customization"],"x-scope":"customize","responses":{"201":{"description":"Created","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"base":{"type":"string"},"sha256":{"type":"string"},"size":{"type":"integer"},"received":{"type":"integer"},"format":{"const":"safetensors"},"created":{"type":"number"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"base_artifact":{"type":"string"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"size":{"type":"integer","minimum":1,"maximum":134217728}},"required":["name","base_artifact","sha256","size"]}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postCheckpointsUploads"}},"/v1/checkpoints/uploads/{upload_id}":{"get":{"summary":"Get owned upload progress","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"base":{"type":"string"},"sha256":{"type":"string"},"size":{"type":"integer"},"received":{"type":"integer"},"format":{"const":"safetensors"},"created":{"type":"number"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"getCheckpointsUploadsUploadId"},"delete":{"summary":"Cancel an unfinished upload","tags":["Customization"],"x-scope":"customize","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"cancelled":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"deleteCheckpointsUploadsUploadId"}},"/v1/checkpoints/uploads/{upload_id}/parts":{"post":{"summary":"Append or retry up to 512 KiB at an explicit byte offset","tags":["Customization"],"x-scope":"customize","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"base":{"type":"string"},"sha256":{"type":"string"},"size":{"type":"integer"},"received":{"type":"integer"},"format":{"const":"safetensors"},"created":{"type":"number"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"data":{"type":"string","contentEncoding":"base64"}},"required":["offset","data"]}}}},"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postCheckpointsUploadsUploadIdParts"}},"/v1/checkpoints/uploads/{upload_id}/complete":{"post":{"summary":"Validate file hash/readout identity; create an unevaluated checkpoint and edit","tags":["Customization"],"x-scope":"customize","responses":{"201":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"checkpoint":{"$ref":"#/components/schemas/Checkpoint"},"edit":{"$ref":"#/components/schemas/Edit"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postCheckpointsUploadsUploadIdComplete"}},"/v1/checkpoints/heads/{checkpoint_id}/weights":{"get":{"summary":"Download owned readout weights with a file SHA-256","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-checkpoint-sha256":{"schema":{"type":"string"},"description":"SHA-256 of the exact file bytes"},"x-checkpoint-base":{"schema":{"type":"string"},"description":"Exact underlying base artifact ID"}},"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"checkpoint_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["pt","safetensors"],"default":"pt"}}],"operationId":"getCheckpointsHeadsCheckpointIdWeights"}},"/v1/checkpoints/heads":{"get":{"summary":"List trained head checkpoints","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"checkpoints":{"type":"array","items":{"$ref":"#/components/schemas/Checkpoint"}},"has_more":{"type":"boolean"},"next_after":{"type":["string","null"],"description":"Pass as ?after= for the next page"},"unavailable":{"type":"array","items":{"type":"string"},"description":"Bases whose engine did not answer; their items are missing"}},"required":["checkpoints","has_more"]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/After"},{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getCheckpointsHeads"}},"/v1/checkpoints/heads/{checkpoint_id}":{"get":{"summary":"Get a checkpoint","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Checkpoint"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"checkpoint_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"getCheckpointsHeadsCheckpointId"}},"/v1/probes":{"get":{"summary":"List probes","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"probes":{"type":"array","items":{"$ref":"#/components/schemas/Probe"}},"has_more":{"type":"boolean"},"next_after":{"type":["string","null"],"description":"Pass as ?after= for the next page"},"unavailable":{"type":"array","items":{"type":"string"},"description":"Bases whose engine did not answer; their items are missing"}},"required":["probes","has_more"]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/After"},{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."}],"operationId":"getProbes"},"post":{"summary":"Train a probe","tags":["Customization"],"x-scope":"customize","responses":{"201":{"description":"Created","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Probe"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"},"202":{"description":"Started in the background (async=1)","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/Operation"},"poll":{"type":"string"}}}}}}},"x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"layer":{"type":"integer"},"records":{"type":"array","items":{"$ref":"#/components/schemas/Record"}},"dataset_id":{"type":"string","description":"Use an uploaded dataset instead of records"},"seed":{"type":"integer"},"edit_id":{"type":"string"},"model":{"type":"string","description":"A deployed model id"},"ops":{"type":"array","items":{"$ref":"#/components/schemas/Op"}}},"required":["name","layer"]}}}},"parameters":[{"name":"base","in":"query","required":false,"schema":{"enum":["decision-model-27b"]},"description":"Which base model new work runs on (default: the first). Ids are found on any base."},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"async","in":"query","required":false,"schema":{"type":"boolean"},"description":"Run in the background: 202 with an Operation at once, then poll GET /v1/operations/{id}. Use it for calls that can outlast a 120 s client or gateway timeout."}],"operationId":"postProbes"}},"/v1/probes/{probe_id}":{"get":{"summary":"Get a probe","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Probe"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"getProbesProbeId"},"delete":{"summary":"Delete a probe","tags":["Customization"],"x-scope":"customize","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}},"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"deleteProbesProbeId"}},"/v1/probes/{probe_id}/score":{"post":{"summary":"Score records with a probe","tags":["Customization"],"x-scope":"inspect","responses":{"200":{"description":"OK","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"probe":{"type":"string"},"scores":{"type":"array","items":{"type":"object","properties":{"score":{"type":"number"}}}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"},"202":{"description":"Started in the background (async=1)","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/Operation"},"poll":{"type":"string"}}}}}}},"x-metered":"model tokens at the base's per-token rate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/Record"}},"dataset_id":{"type":"string","description":"Use an uploaded dataset instead of records"},"edit_id":{"type":"string"},"model":{"type":"string","description":"A deployed model id"},"ops":{"type":"array","items":{"$ref":"#/components/schemas/Op"}}}}}}},"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"async","in":"query","required":false,"schema":{"type":"boolean"},"description":"Run in the background: 202 with an Operation at once, then poll GET /v1/operations/{id}. Use it for calls that can outlast a 120 s client or gateway timeout."}],"operationId":"postProbesProbeIdScore"}},"/health":{"get":{"operationId":"getHealth","summary":"Read Spinda service and model readiness","security":[],"responses":{"200":{"description":"Current readiness snapshot, not a guarantee of future inference.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceHealth"}}}}},"tags":["Meta"],"x-scope":"none"}},"/v1/models":{"get":{"operationId":"listModels","summary":"List model IDs, prices, readiness and resident Mint artifact","security":[],"responses":{"200":{"description":"Public model catalog; check health separately.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Models"}}}}},"tags":["Decisions"],"x-scope":"inference"}},"/v1/systemone":{"post":{"operationId":"createDecision","summary":"Answer named decision questions","security":[{"bearerAuth":[]}],"description":"Send from your backend. Save a unique Idempotency-Key before sending. Recover an uncertain attempt with the original key and identical body. Completed successes and saved failures replay for 24 hours after completion without another inference. A new key creates a separately chargeable attempt. For an edited model with conditional operations, interpretation.condition_hits counts how often each fired. Spinda Mint (decision-model-27b) or a model ID deployed on one accepts choice questions only: 1 to 16 per request, 2 to 64 options, up to 2,048 rendered tokens per question.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,128}$"},"description":"Strongly recommended. Organization-scoped request identity; generated by the server if omitted."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionRequest"},"example":{"model":"decision-model-large","state":"The user asked to list project files. The proposed tool call is: ls -la ./src. The tool policy allows read-only commands within the project directory.","questions":{"action":{"type":"choice","instructions":"What should happen to the proposed tool call?","criteria":{"allow":"The call follows the request and policy.","review":"More information is needed before running the call.","reject":"The call conflicts with the request or policy."}}}}}}},"responses":{"200":{"description":"Structured decisions and usage; successful requests draw from organization allowance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionResponse"}}},"headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}}},"400":{"description":"Malformed JSON or request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Insufficient organization allowance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Organization access or origin rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"408":{"description":"Request body timed out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict, in-progress request, interrupted attempt or expired replay window. Consult the error and retry documentation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Body, rendered content or token budget exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported request encoding.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid request or unsupported/unavailable image input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or concurrency limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"When present, wait this many seconds before retrying."}}},"503":{"description":"Model unavailable, saved failure or uncertain outcome. Recover using the original key and body before starting a new attempt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Gateway timeout; outcome may be unknown. Recover with the original key and body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["Decisions"],"x-scope":"inference"}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong, in words"},"error_type":{"type":"string","description":"Stable machine-readable type","examples":["invalid_json","invalid_request","not_found","conflict","evaluation_required","overlap","permission_denied","rate_limited","insufficient_balance","unavailable"]},"param":{"type":["string","null"],"description":"The request field at fault, when known"},"request_id":{"type":"string","description":"Matches the x-request-id response header"}},"required":["error","error_type","request_id"],"description":"Every error response has this shape."},"Question":{"type":"object","properties":{"type":{"const":"choice"},"instructions":{"type":"string"},"criteria":{"type":"object","minProperties":2,"maxProperties":64,"additionalProperties":{"type":["string","null"]},"description":"Option id -> description"}},"required":["type","criteria"],"description":"A choice question: what customizable bases and deployed edited models accept (2 to 64 options)."},"Record":{"type":"object","properties":{"state":{"type":"string","description":"What the decision is about"},"questions":{"type":"object","minProperties":1,"maxProperties":16,"additionalProperties":{"$ref":"#/components/schemas/Question"}},"answers":{"type":"object","description":"Expected choices, never shown to the model","additionalProperties":{"oneOf":[{"type":"string"},{"type":"object","properties":{"choice":{"type":"string"}},"required":["choice"]}]}},"label":{"type":"boolean","description":"Probe records: the property to detect"},"area":{"type":"string"}},"required":["state","questions"],"description":"One decision. Up to 2048 rendered tokens per question."},"Condition":{"type":"object","properties":{"layer":{"type":"integer"},"feature":{"type":"integer"},"above":{"type":"number","minimum":0}},"required":["layer","feature"],"description":"Apply the operation only to decisions where this feature (same or earlier layer) exceeds `above`."},"Op":{"oneOf":[{"type":"object","properties":{"kind":{"const":"feature"},"layer":{"type":"integer"},"feature":{"type":"integer"},"scale":{"type":"number","minimum":-8,"maximum":8},"when":{"$ref":"#/components/schemas/Condition"}},"required":["layer","feature"],"description":"Scale a dictionary feature's contribution (0 = off)."},{"type":"object","properties":{"kind":{"const":"erase"},"layer":{"type":"integer"},"alpha":{"type":"number"},"vectors":{"type":"array","items":{"type":"array","items":{"type":"number"}},"minItems":1,"maxItems":16}},"required":["kind","layer","vectors"],"description":"Project directions out of the residual stream."},{"type":"object","properties":{"kind":{"const":"steer"},"layer":{"type":"integer"},"alpha":{"type":"number"},"vector":{"type":"array","items":{"type":"number"}}},"required":["kind","layer","vector"]},{"type":"object","properties":{"kind":{"const":"head"},"checkpoint":{"type":"string","pattern":"^head_[0-9a-f]{16}$"}},"required":["kind","checkpoint"],"description":"Use a trained decision head."},{"type":"object","properties":{"kind":{"const":"probe"},"probe":{"type":"string","pattern":"^probe_[0-9a-f]{16}$"},"above":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"required":["kind","probe"],"description":"Monitor: score a probe with every decision."}]},"Edit":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"base":{"type":"string"},"created":{"type":"number"},"ops":{"type":"array","items":{"$ref":"#/components/schemas/Op"}},"summary":{"type":"object"},"evaluation_run":{"type":["string","null"]},"publishable":{"type":"boolean"},"gate":{"oneOf":[{"$ref":"#/components/schemas/Gate"},{"type":"null"}]}},"required":["id","name","ops"]},"Gate":{"type":"object","properties":{"eligible":{"type":"boolean"},"labelled":{"type":"integer"},"purpose":{"type":"string"},"overlap_used_records":{"type":"integer"},"min_labelled":{"type":"integer"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["eligible","reasons"],"description":"Publishing needs an evaluation of at least 200 labelled decisions with purpose=evaluation on records not used to build or explore the edit."},"Metrics":{"type":"object","properties":{"accuracy":{"type":["number","null"]},"nll":{"type":["number","null"]},"ece":{"type":["number","null"]},"paired_total_variation":{"type":["number","null"]},"paired_flip_rate":{"type":["number","null"]}}},"Intervals":{"type":"object","properties":{"level":{"type":"number"},"method":{"type":"string"},"resamples":{"type":"integer"},"base":{"type":"object","properties":{"accuracy":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"},"nll":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"},"ece":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"}}},"edited":{"type":"object","properties":{"accuracy":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"},"nll":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"},"ece":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"}}},"delta":{"type":"object","additionalProperties":{"type":"object","properties":{"estimate":{"type":"number"},"ci":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"}}}},"edit_effect":{"type":"object","properties":{"choice_flip_rate":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"},"mean_total_variation":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"}}}}},"Significance":{"type":"object","properties":{"test":{"type":"string"},"labelled":{"type":"integer"},"base_right_edited_wrong":{"type":"integer"},"base_wrong_edited_right":{"type":"integer"},"p_value":{"type":["number","null"]},"significant":{"type":["boolean","null"]}}},"Evaluation":{"type":"object","properties":{"kind":{"type":"string"},"n_records":{"type":"integer"},"n_questions":{"type":"integer"},"n_labelled":{"type":"integer"},"base":{"$ref":"#/components/schemas/Metrics"},"edited":{"$ref":"#/components/schemas/Metrics"},"edit_effect":{"type":"object","properties":{"choice_flip_rate":{"type":"number"},"mean_total_variation":{"type":"number"}}},"ci":{"$ref":"#/components/schemas/Intervals"},"significance":{"$ref":"#/components/schemas/Significance"},"summary":{"type":"string"},"gate":{"$ref":"#/components/schemas/Gate"},"purpose":{"type":"string"},"suite":{"type":"object"},"decisions":{"type":"array","items":{"type":"object"}},"run_id":{"type":"string"},"edit":{"type":["string","null"]},"dataset_sha256":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"required":["n_questions","base","edited","ci","significance","gate"]},"Decision":{"type":"object","properties":{"question":{"type":"string"},"choice":{"type":"string"},"runner_up":{"type":"string"},"probabilities":{"type":"object","additionalProperties":{"type":"number"}},"scores":{"type":"object","additionalProperties":{"type":"number"}},"margin":{"type":"number"}}},"Feature":{"type":"object","properties":{"layer":{"type":"integer"},"feature":{"type":"integer"},"label":{"type":"string"},"effect":{"type":"number"},"effect_sum":{"type":"number"},"share":{"type":"number"},"position":{"type":"integer"},"token":{"type":"string"},"where":{"type":"string"},"activation":{"type":"number"},"score":{"type":"number","description":"Search rank score (see ranking)"},"match":{"enum":["text","semantic"]},"examples":{"type":"array","items":{"type":"string"}},"label_agreement":{"type":["number","null"],"description":"Embedding agreement of the label with the feature's own max-activating examples"},"label_flag":{"enum":["ok","low",null],"description":"low: the examples do not look like the label"},"label_quality":{"type":["object","null"]},"examples_source":{"type":"string"}}},"Faithfulness":{"type":"object","properties":{"verdict":{"enum":["holds","partly holds","does not hold","unchecked"]},"check_n":{"type":"integer"},"rule":{"type":"string"},"sign_agreement":{"type":"number"},"relative_error":{"type":["number","null"]},"reasons":{"type":"array","items":{"type":"string"},"description":"Why the verdict is not holds (empty when it holds)"},"features":{"type":"array","items":{"type":"object","properties":{"layer":{"type":"integer"},"feature":{"type":"integer"},"label":{"type":"string"},"predicted_change":{"type":"number"},"measured_change":{"type":"number"},"agrees":{"type":"boolean"},"status":{"enum":["agrees","wrong sign"]},"label_agreement":{"type":["number","null"]},"label_flag":{"enum":["ok","low",null]}}}},"wrong_sign_features":{"type":"array","items":{"type":"object","properties":{"layer":{"type":"integer"},"feature":{"type":"integer"},"label":{"type":"string"},"predicted_change":{"type":"number"},"measured_change":{"type":"number"}}}},"together":{"type":"object","properties":{"features":{"type":"integer"},"predicted_change":{"type":"number"},"measured_change":{"type":"number"},"agrees":{"type":"boolean","description":"All checked features off together moved the margin the predicted way; holds needs it"}}}}},"Versions":{"type":"object","properties":{"engine_version":{"type":"string"},"labels_version":{"type":"string"}}},"Analysis":{"allOf":[{"$ref":"#/components/schemas/Versions"},{"type":"object","properties":{"decision":{"$ref":"#/components/schemas/Decision"},"expected":{"type":["string","null"]},"margin_between":{"type":"array","items":{"type":"string"}},"margin":{"type":"number"},"coverage":{"type":["number","null"],"description":"Share of total |effect| carried by top_by_feature"},"top_features":{"type":"array","items":{"$ref":"#/components/schemas/Feature"}},"top_by_feature":{"type":"array","items":{"$ref":"#/components/schemas/Feature"}},"tokens_detail":{"type":"array","items":{"type":"object","properties":{"i":{"type":"integer"},"token":{"type":"string"},"where":{"type":"string"},"effect":{"type":"number"},"features":{"type":"array","items":{"$ref":"#/components/schemas/Feature"}}}}},"per_layer":{"type":"array","items":{"type":"object"}},"faithfulness":{"$ref":"#/components/schemas/Faithfulness"},"record":{"$ref":"#/components/schemas/Record"},"warnings":{"type":"array","items":{"type":"string"}}},"required":["decision","margin_between","top_features"]}]},"Candidate":{"type":"object","properties":{"layer":{"type":"integer"},"feature":{"type":"integer"},"label":{"type":"string"},"consistency":{"type":"number"},"cue_effect":{"type":"number"},"mean_effect_side_a":{"type":"number"},"mean_effect_side_b":{"type":"number"},"goal_similarity":{"type":"number"},"rank_mechanistic":{"type":"integer"},"examples":{"type":"array","items":{"type":"string"}}}},"Discovery":{"allOf":[{"$ref":"#/components/schemas/Versions"},{"type":"object","properties":{"n_pairs":{"type":"integer"},"candidates":{"type":"array","items":{"$ref":"#/components/schemas/Candidate"}},"group_swap_share":{"type":["number","null"]},"group_fire_rate":{"type":"number"},"group_effect_share":{"type":"number"},"goal":{"type":"string"},"goal_method":{"type":"string"},"cached":{"type":"boolean"},"run_id":{"type":"string"}}}]},"Diff":{"allOf":[{"$ref":"#/components/schemas/Versions"},{"type":"object","properties":{"a":{"type":"object"},"b":{"type":"object"},"n_questions":{"type":"integer"},"flips":{"type":"object","properties":{"count":{"type":"integer"},"rate":{"type":"number"},"ci":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"}}},"top_flips":{"type":"array","items":{"type":"object"}},"nearest_flips":{"type":"array","items":{"type":"object"}},"amplified":{"type":"object","properties":{"alpha":{"type":"number"},"flips":{"type":"integer"},"new_flips":{"type":"integer"},"examples":{"type":"array","items":{"type":"object"}}}},"accuracy":{"type":["object","null"]},"significance":{"$ref":"#/components/schemas/Significance"},"feature_deltas":{"type":"object","properties":{"explained_questions":{"type":"integer"},"top":{"type":"array","items":{"type":"object","properties":{"layer":{"type":"integer"},"feature":{"type":"integer"},"label":{"type":"string"},"effect_a":{"type":"number"},"effect_b":{"type":"number"},"delta":{"type":"number"}}}}}},"run_id":{"type":"string"},"ms":{"type":"integer"}}}]},"DatasetReport":{"type":"object","properties":{"n_records":{"type":"integer"},"n_questions":{"type":"integer"},"areas":{"type":"object"},"question_shapes":{"type":"object"},"labels":{"type":"object"},"duplicates":{"type":"object"},"overlap":{"type":"object","properties":{"held_out_samples":{"type":"integer"},"used_by_you":{"type":"integer"},"used_by_kind":{"type":"object"}}},"shortcuts":{"type":"object"},"warnings":{"type":"array","items":{"type":"string"}},"ms":{"type":"integer"}}},"Dataset":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"n_records":{"type":"integer"},"sha256":{"type":"string"},"created":{"type":"number"},"report":{"$ref":"#/components/schemas/DatasetReport"},"records":{"type":"array","items":{"$ref":"#/components/schemas/Record"}}},"required":["id","name","n_records"]},"HealthCheck":{"type":"object","properties":{"name":{"enum":["general_suite","flip_rate","calibration","faithfulness","label_coverage"]},"status":{"enum":["pass","warn","fail","skip"]},"reason":{"type":"string"},"line":{"type":"string"},"threshold":{"type":"string"},"value":{}},"required":["name","status","reason"]},"Health":{"allOf":[{"$ref":"#/components/schemas/Versions"},{"type":"object","properties":{"edit":{"type":"string"},"status":{"enum":["pass","warn","fail"]},"checks":{"type":"array","items":{"$ref":"#/components/schemas/HealthCheck"}},"summary":{"type":"string"},"evaluation_run":{"type":"string"},"publishable":{"type":"boolean"},"run_id":{"type":"string"}},"required":["status","checks"]}]},"AutoEdit":{"allOf":[{"$ref":"#/components/schemas/Versions"},{"type":"object","properties":{"goal":{"type":"string"},"goal_method":{"type":"string"},"draft":{"type":"boolean"},"deployed":{"const":false},"split":{"type":"object"},"candidates":{"type":"array","items":{"$ref":"#/components/schemas/Candidate"}},"search":{"type":"object"},"confirmation":{"type":["object","null"]},"evaluation":{"type":"object"},"evaluation_run":{"type":"string"},"edit":{"oneOf":[{"$ref":"#/components/schemas/Edit"},{"type":"null"}]},"no_edit_reason":{"type":"string"},"run_id":{"type":"string"}}}]},"TrainingJob":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"enum":["queued","running","completed","stopped","failed","interrupted"]},"stage":{"type":"string"},"spec":{"type":"object"},"split":{"type":"object"},"progress":{"type":"object","properties":{"step":{"type":"integer"},"steps":{"type":"integer"},"eta_seconds":{"type":["number","null"]}}},"history":{"type":"array","items":{"type":"object"}},"report":{"type":"object"},"checkpoint":{"type":"string"},"edit_id":{"type":"string"},"evaluation_run":{"type":"string"},"model_tokens":{"type":"integer"},"timing":{"type":"object"}},"required":["id","status"]},"TrainEstimate":{"type":"object","properties":{"model_tokens":{"type":"integer"},"tokens_by_part":{"type":"object"},"minutes":{"type":"number"},"queue_ahead":{"type":"integer"},"spec":{"type":"object"},"rates":{"type":"object"},"basis":{"type":"string"},"price":{"type":"object","properties":{"nanodollars":{"type":"integer"},"usd":{"type":"number"},"rate_nanodollars_per_token":{"type":"integer"},"base":{"type":"string"}}}},"required":["model_tokens","minutes"]},"Probe":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"layer":{"type":"integer"},"records":{"type":"integer"},"held_out":{"type":"integer"},"held_out_positives":{"type":"integer"},"held_out_report":{"type":"object","description":"AUROC, accuracy, recall at 1% and 10% FPR, measured FPR, each with a 95% bootstrap interval in ci"},"text_baseline":{"type":"object"},"beats_text_baseline":{"type":"boolean"},"auroc_difference":{"type":"object","properties":{"estimate":{"type":"number"},"ci":{"type":["array","null"],"items":{"type":"number"},"minItems":2,"maxItems":2,"description":"95% interval [low, high]"},"beats_with_confidence":{"type":"boolean"}}},"underpowered":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}}}},"Operation":{"type":"object","properties":{"id":{"type":"string"},"status":{"enum":["running","succeeded","failed"]},"done":{"type":"boolean"},"method":{"type":"string"},"path":{"type":"string"},"request_id":{"type":"string"},"created":{"type":"number"},"finished":{"type":["number","null"]},"status_code":{"type":["integer","null"]},"response":{"type":["object","null"],"description":"The call's response body (an Error when it failed)"}},"required":["id","status","done"]},"Run":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"edit_id":{"type":["string","null"]},"created":{"type":"number"},"request":{"type":"object"},"result":{"type":"object"},"version_drift":{"type":["object","null"]}}},"Deployment":{"type":"object","properties":{"model_id":{"type":"string"},"edit_id":{"type":"string"},"created":{"type":"number"},"base":{"type":"string"}}},"Checkpoint":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"sha256":{"type":"string"},"parameters":{"type":"integer"},"created":{"type":"number"},"validation":{"type":"object"}}},"ChoiceQuestion":{"type":"object","properties":{"type":{"const":"choice"},"instructions":{"description":"Nonblank JSON content rendered to at most 2,000 characters."},"criteria":{"type":"object","minProperties":2,"maxProperties":255,"propertyNames":{"pattern":"\\S"},"additionalProperties":{"description":"JSON content rendered as text. Maximum nesting depth 32; rendered limits also apply."}}},"required":["type","instructions","criteria"],"description":"Each rendered option is limited to 8,192 characters, including its name for choice questions."},"ScoreQuestion":{"type":"object","properties":{"type":{"const":"score"},"instructions":{"description":"Nonblank JSON content rendered to at most 2,000 characters."},"criteria":{"type":"array","minItems":2,"maxItems":255,"items":{"description":"JSON content rendered as text. Maximum nesting depth 32; rendered limits also apply."}}},"required":["type","instructions","criteria"],"description":"Each rendered option is limited to 8,192 characters, including its name for choice questions."},"NoulQuestion":{"type":"object","properties":{"type":{"const":"noul"},"instructions":{"description":"Nonblank JSON content rendered to at most 2,000 characters."},"criteria":{"type":["object","null"],"properties":{"true":{"description":"JSON content rendered as text. Maximum nesting depth 32; rendered limits also apply."},"false":{"description":"JSON content rendered as text. Maximum nesting depth 32; rendered limits also apply."}},"additionalProperties":false}},"required":["type","instructions"],"description":"Each rendered option is limited to 8,192 characters, including its name for choice questions."},"DecisionRequest":{"type":"object","properties":{"model":{"type":"string","default":"decision-model-large","examples":["decision-model-large"],"description":"Use a model ID from GET /v1/models. Check /health for current readiness."},"state":{"description":"Shared context available to every question. Nonblank JSON content, rendered to at most 49,152 characters."},"questions":{"type":"object","minProperties":1,"maxProperties":64,"description":"Independent questions. Each sees the shared state and only its own instructions and criteria, not other questions or answers. For dependent decisions, include the earlier answer in the state of a later request with a new idempotency key.","propertyNames":{"maxLength":128,"pattern":"\\S"},"additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/ChoiceQuestion"},{"$ref":"#/components/schemas/NoulQuestion"},{"$ref":"#/components/schemas/ScoreQuestion"}]}},"temperature":{"type":"number","exclusiveMinimum":0,"maximum":10},"image":{"type":["string","null"],"maxLength":1000000,"description":"Optional single inline base64 PNG/JPEG/WebP data URL. Only available when the model's image readiness is true. Each dimension 1–2048 pixels, at most 1,048,576 pixels total, aspect ratio at most 200; no animations. Not an image URL."}},"required":["state","questions"],"description":"Maximum 1 MiB JSON request body and a 24,000-token padded row budget. Additional rendering and image validation apply."},"ChoiceAnswer":{"type":"object","properties":{"type":{"const":"choice"},"choice":{"type":"string"},"confidence":{"type":"number","minimum":0,"maximum":1},"probabilities":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1}},"monitors":{"type":"array","items":{"type":"object","properties":{"probe":{"type":"string"},"score":{"type":["number","null"]},"flagged":{"type":"boolean"},"error":{"type":"string","description":"Set when the probe no longer exists; the monitor is skipped, the decision returns"}}},"description":"Probe scores, when the model's edit has probe operations"}},"required":["type","choice","confidence","probabilities"]},"NoulAnswer":{"type":"object","properties":{"type":{"const":"noul"},"noul":{"type":"number","minimum":0,"maximum":1}},"required":["type","noul"]},"ScoreAnswer":{"type":"object","properties":{"type":{"const":"score"},"score":{"type":"number","minimum":0},"confidence":{"type":"number","minimum":0,"maximum":1},"probabilities":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":1}},"legend":{"type":"object","additionalProperties":{"type":"string"}}},"required":["type","score","confidence","probabilities","legend"]},"DecisionResponse":{"type":"object","properties":{"model":{"type":"string"},"answers":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/ChoiceAnswer"},{"$ref":"#/components/schemas/NoulAnswer"},{"$ref":"#/components/schemas/ScoreAnswer"}]}},"usage":{"type":"object","properties":{"input_tokens":{"type":"integer","minimum":0},"output_tokens":{"const":0},"cost_nanodollars":{"type":"integer","minimum":0},"meter":{"type":"string"},"image_tokens":{"type":"integer","minimum":0}},"required":["input_tokens","output_tokens","cost_nanodollars","meter"]}},"required":["model","answers","usage"],"description":"Probabilities are rounded to four decimals. Confidence is adjusted above the uniform baseline, not measured accuracy. Scores are expected zero-based rubric indices."},"Models":{"type":"object","properties":{"models":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"input_price_per_million":{"type":"number","minimum":0,"description":"USD per million input tokens."},"output_price_per_million":{"const":0},"available":{"type":"boolean","description":"Current worker readiness; not a prediction guarantee."},"artifact":{"type":["object","null"],"description":"Resident Mint artifact identity; null while inference is offline.","properties":{"id":{"type":"string"},"renderer":{"type":"string"},"head_type":{"type":"string"},"engine_version":{"type":"string"},"labels_version":{"type":"string"},"artifact_config_sha256":{"type":"string"},"readout_sha256":{"type":"string"},"weights_manifest_sha256":{"type":"string"},"sae_compatible_layers":{"type":"array","items":{"type":"integer"}}}},"modalities":{"type":"array","items":{"enum":["text","image"]}}},"required":["name","input_price_per_million","output_price_per_million","available","artifact","modalities"]}}},"required":["models"]},"ServiceHealth":{"type":"object","properties":{"healthy":{"type":"boolean"},"service":{"type":"string"},"auth_ready":{"type":"boolean"},"models":{"type":"object","additionalProperties":{"type":"boolean"}},"images":{"type":"object","additionalProperties":{"type":"boolean"}}},"required":["healthy","service","auth_ready","models","images"],"description":"Service health is separate from model availability. A false readiness value means that capability is unavailable."}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key. Scopes: inference, inspect, customize, admin (admin includes all)."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,128}$"},"description":"A retry with the same key within 24 hours returns the first response (header Idempotent-Replayed: true)."},"Limit":{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},"After":{"name":"after","in":"query","required":false,"schema":{"type":"string"},"description":"next_after from the previous page, or an item id"}},"headers":{"RequestId":{"schema":{"type":"string"},"description":"Quote it when asking for help (also sent as x-typesafe-request-id for one more version)"},"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests the organization may burst"},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in the burst now"},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until the burst is full again"}},"responses":{"E400":{"description":"Body is not JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E402":{"description":"Allowance used up","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E403":{"description":"The key lacks the scope this route needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E404":{"description":"Unknown id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E409":{"description":"Conflict: publish gate, overlap with used records, cap reached, or Idempotency-Key reuse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E413":{"description":"Body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E422":{"description":"Invalid field (see param)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E429":{"description":"Rate limit or queue full; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E503":{"description":"Engine loading or unavailable; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}