{"uid":"cap_hhywZSmSU1i5HQNevZpI5","slug":"delx-commerce-queue-wait-estimate-7a49ff7c","name":"Delx Commerce — Queue Wait Estimate","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/queue-wait-estimate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"workers":{"type":"number","description":"Number of parallel workers draining the queue."},"service_ms":{"type":"number","description":"Mean service time per item in milliseconds."},"queue_depth":{"type":"number","description":"Items waiting ahead of the new job."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-queue-wait-estimate/v1","workers":2,"service_ms":200,"queue_depth":10,"estimated_wait_ms":1000}},"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_JYQSVuP_zD5lS41h3SCk5","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":"Estimates the wait time for a job entering a queue given the number of workers, mean service time, and current queue depth.","exampleAgentPrompt":"I have a queue with 10 items ahead of my job, 2 parallel workers draining it, and each item takes about 200 ms to process — how long should I expect to wait before my job starts?","exampleUseCases":[{"title":"Pre-submission latency check for agent tasks","prompt":"Before I queue another processing job, tell me the expected wait: there are 25 items ahead of it, 4 workers running in parallel, and each item typically takes 500 ms to handle."},{"title":"Capacity planning for worker pools","prompt":"I'm trying to decide if I need more workers. Right now there are 50 items in the queue, 3 workers, and mean service time is 150 ms — what's the estimated wait for a new item?"},{"title":"Real-time SLA feasibility check","prompt":"My queue currently has 8 items waiting, 1 worker, and each job takes around 300 ms. Can I meet a 5-second SLA for the next job that comes in?"}],"resultDescription":"Returns a JSON object following the 'delx/util-queue-wait-estimate/v1' schema, echoing back the input parameters (workers, service_ms, queue_depth) alongside a computed estimated_wait_ms value representing how long a newly enqueued item should expect to wait before processing begins.","failureModes":["Missing required parameters (workers, service_ms, or queue_depth) result in a 4xx error","Non-positive values for workers or service_ms may produce undefined or infinite estimates","Payment failure via x402 protocol results in a 402 response before computation occurs","Extremely large queue_depth or service_ms values may cause overflow or implausible estimates"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, on-demand queuing theory calculation without standing up your own math library — particularly in agentic workflows where you want to decide whether to submit a job, scale workers, or alert on latency before committing resources. It's ideal when you already know your worker count, mean service time, and current queue depth and just need the expected wait in milliseconds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:17:59.332Z","isFirstParty":false,"canonicalSlug":"delx-commerce-queue-wait-estimate-7a49ff7c"}