Run span-02
Answer typed questions about a state with span-02, Respan’s decision model. Each question is choice, noul (yes/no), score or number, and each answer carries its probability distribution and confidence. One request can mix all four types.
Set a thinking deadline with reasoning.budget_ms: span-02 thinks until then and answers with its best decision so far. The body is the System One format, so a System One client works by changing the URL. span-02 runs on Respan credits only and is priced per input and output token; thought tokens aren’t billed. Streaming is unsupported.
Authentication
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.
Request
What the questions are about: text or any JSON value.
Use span-02 or respan/span-02. Omit for span-02.
Up to 4 images, as data URIs or base64. span-02 sees them before the text.
How span-02 thinks before it answers. The thought itself is never returned, and its tokens aren’t billed.
Respan parameters for the request log, such as customer_identifier.
Response headers
Response
Answers keyed by question id. The example is the captured response to the request shown; probabilities can vary slightly between calls.
Answers keyed by the ids in questions.