← Back to directory

All AI Data API - Newsvendor and safety stock: optimal order quantity from critical ratio, service level safety stock and expect

https://allai-api.allaihq.workers.dev/v1/tools/newsvendor_calc

Overview

Computes the single-period optimal stock level from underage and overage cost (critical ratio) with normally distributed demand, the expected sales, leftover and shortage, expected profit, and the safety stock and reorder point for a service level under variable demand and lead time. Handles a discrete demand list as well. $0.003 per successful call (USDC on Base). 3 free trial calls a day. Operated by All AI LLC.

Protocol x402 (POST)
Price $0.0030
Payment Asset USDC
Payment Network base
Category data
Provider All AI LLC (All AI Data API)
Source self-registered
Indexed 2026-12-04 16:43:39

Health

Status healthy
Latency (p50) 846ms
Uptime (30d) 100.0%
Reliability Score 82/100
Last Checked 2026-12-05 08:38:46
Last Healthy 2026-12-05 08:38:46
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Recent Health Checks

Time Status HTTP Latency Error
2026-12-05 08:38:46 healthy 402 839ms
2026-12-05 07:35:04 healthy 402 861ms
2026-12-05 06:32:43 healthy 402 702ms
2026-12-05 05:32:33 healthy 402 1164ms
2026-12-05 03:44:43 healthy 402 677ms
2026-12-05 02:34:18 healthy 402 846ms
2026-12-05 01:33:17 healthy 402 676ms
2026-12-04 17:46:35 healthy 402 2464ms