x402
utility

Split a model token budget into system, output reserve, and available input — call when reserving system and output tokens from a context window. Use for SRE/ops math agents buy from broad utility catalogs: SLA, error budget, success rate, and health scores with zero upstream cost. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.

post/api/v1/x402/token-budget-split

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/token-budget-split
  • Auth: none declared

Request body

total_tokensnumber required

Model context window size in tokens.

system_tokensnumber

Tokens already reserved for system/instructions.

reserved_output_tokensnumber

Tokens reserved for model output.

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

schemastring
total_tokensinteger
system_tokensinteger
reserved_output_tokensinteger
available_input_tokensinteger
feasibleboolean

Changes

No recorded changes to this operation across all 1 revision of this API.