{"uid":"cap_rd9WhB7MMms4-zIrnq-xI","slug":"delx-commerce-step-budget-plan-13c1e0cf","name":"Delx Commerce Step Budget Plan","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/step-budget-plan?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"steps":{"type":"array","description":"Ordered workflow step names to allocate the total budget across."},"weights":{"type":"array","description":"Optional relative weights aligned with steps; equal weights if omitted."},"total_budget_ms":{"type":"number","description":"Total millisecond budget to split across steps."}}},"responseSchema":{"type":"json","example":{"plan":[{"step":"fetch","weight":1,"budget_ms":750},{"step":"parse","weight":2,"budget_ms":1500},{"step":"decide","weight":1,"budget_ms":750}],"schema":"delx/util-step-budget-plan/v1","step_count":3,"total_budget_ms":3000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Z79eb_N8DsRI1ZV6uayPz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits a total millisecond time budget proportionally across ordered workflow steps using optional weights","exampleAgentPrompt":"I have a 3-step agent pipeline — fetch, parse, and decide — with a total budget of 3000ms; can you split the budget so parse gets twice the time as the other two steps?","exampleUseCases":[{"title":"Weighted pipeline timeout planning","prompt":"I have four steps in my agent: search, fetch, summarize, and respond. Summarize should get 3x the time of the others. Split a total budget of 8000ms across them accordingly."},{"title":"Equal-weight step scheduling","prompt":"My workflow has five stages: load, validate, transform, enrich, and store. Give each stage an equal share of a 10-second total budget."},{"title":"Two-step latency budget for SLA compliance","prompt":"I need to stay under 2000ms total across my agent's two steps — 'retrieve' and 'generate'. Allocate the budget so retrieve gets half the time of generate."}],"resultDescription":"Returns a JSON object containing a plan array where each element includes the step name, its assigned weight, and its computed budget in milliseconds; also includes total step count, total budget in ms, and a schema identifier string.","failureModes":["Missing or empty steps array returns an error","Mismatched length between steps and weights arrays may cause incorrect allocation","Non-numeric total_budget_ms causes a validation error","Payment failure via x402 (insufficient USDC balance) blocks the request","Zero or negative total_budget_ms produces undefined behavior"],"whenToPreferThis":"Choose this endpoint when an AI agent or orchestrator needs to programmatically split a known total latency or time budget across named pipeline stages with optional weighting — particularly useful for enforcing SLA-aware step-level timeouts in multi-step agent workflows. It is ideal over manual math when weights are uneven or step counts change dynamically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:59.432Z","isFirstParty":false,"canonicalSlug":"delx-commerce-step-budget-plan-13c1e0cf"}