Quickstart
Answer typed questions about a state with one API call.
Get an API key
Create a key under API keys, then export it:
span-02 runs on Respan credits. Add credits under Credits before your first call.
Send a request
state is what the questions are about: text or any JSON value. questions is keyed by your own ids, and the answers come back under the same ids.
Read the response
Question types has a full request and response for each type.
Every call is logged in Respan. The response’s X-Respan-Log-Id header is the ID of its log.
Set a thinking deadline
Add reasoning to choose how span-02 thinks. With "mode": "on" and budget_ms, it thinks for up to that many milliseconds, then answers with its best decision so far:
Use "mode": "off" to answer without thinking. Without reasoning, span-02 thinks only when it’s unsure. See span-02 for every option.