Skip to content

Control research spending

OpenSenpai reports provider charges after execution. It does not expose a forecast through MCP or REST because conservative reservations can substantially exceed actual usage.

The optional max_estimated_cost_usd field limits the internal reservation used to admit work. It rejects unpriced selections or reservations above that limit; it is not a predicted price or guaranteed final-charge cap.

{
"repetitions": 1,
"max_estimated_cost_usd": 0.5
}

This fragment illustrates the budget fields to include in a complete run request. The value is an example budget you choose, not a published price. The cap must be positive and at most 1000 USD. It gates the internal reservation before dispatch; it cannot guarantee the upstream provider’s final charge.

Limit prompts, targets, and repetitions before increasing parallel comparisons. Reduce output tokens when a short answer meets your research need. Choose explicit search bounds: native/server max_uses is 1–3, and controlled max_results is 1–10. Controlled retrieval can share a source bundle across compatible observations, so its cost should not be counted repeatedly for every answer.

Check the available balance or MCP get_balance before starting. Hosted execution reserves credit for work and settles reported usage. Pending holds reduce what is available for new work. Concurrent starts can compete for the same balance.

Missing usage remains unknown, not zero. An unknown_outcome can retain its reservation because a dispatched request may have incurred cost. Cancellation stops pending work and requests cancellation of active work; it cannot undo completed provider calls.

If a request times out, read the run before creating replacement work. Replay the exact original input and idempotency key to recover its accepted run. A changed key creates a new experiment that can cost money. Your scheduler or agent should enforce an aggregate budget across runs in addition to each run’s estimate cap.

See credits and checkout for wallet behavior and activity history for reconciliation.