{"uid":"cap_LLV_OL8tFL49YZmRwoEMA","slug":"fly-ai-time-series-forecast-api-80c09f8d","name":"fly.ai Time-Series Forecast API","description":"Single answers, each paid on its own over x402. Guide: https://www.flyaiworld.com/x402-api.md","url":"https://flyai-x402.fly.dev/forecast?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["series"],"properties":{"series":{"type":"array","description":"The numbers to forecast, oldest first"},"horizon":{"type":"integer","description":"Steps ahead to forecast"},"confidence":{"type":"number","description":"Width of the prediction band, 0.5 to 0.99"},"step_seconds":{"type":"integer","description":"Seconds between two numbers"}}},"responseSchema":{},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_N1PdH3nvzL6MSg3O6qcii","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Forecasts future values of a numeric time series with configurable horizon and confidence interval, billed per-request via x402","exampleAgentPrompt":"I have this sequence of daily sales numbers (oldest first): [120, 134, 128, 145, 160, 155, 170] — each measured 86400 seconds apart — can you forecast the next 7 steps with a 0.9 confidence band?","exampleUseCases":[{"title":"Sales trend forecasting for planning","prompt":"Here are my last 30 days of daily revenue figures oldest first: [4200, 4350, 4100, 4500, 4700, 4650, 4800, 5000, 4900, 5100, 5200, 5050, 5300, 5400, 5250, 5500, 5600, 5450, 5700, 5800, 5750, 5900, 6000, 5950, 6100, 6200, 6150, 6300, 6400, 6350] measured every 86400 seconds — forecast the next 14 days with a 0.95 confidence interval."},{"title":"Server CPU load prediction","prompt":"I have 48 hourly CPU usage readings from my server (oldest first): [32,35,38,40,42,45,43,41,39,38,36,34,33,32,31,30,34,38,42,47,50,52,49,46,44,41,39,37,36,34,33,32,33,37,41,46,51,55,52,48,45,42,40,38,36,35,34,33] — each step is 3600 seconds — predict the next 12 hours with a 0.8 confidence band so I can plan capacity."},{"title":"IoT sensor anomaly anticipation","prompt":"I have temperature sensor readings taken every 300 seconds for the past hour: [21.1, 21.3, 21.2, 21.4, 21.6, 21.5, 21.7, 21.9, 22.1, 22.0, 22.3, 22.5] — can you forecast the next 6 steps with 0.9 confidence so I can detect if it's heading out of safe range?"}],"resultDescription":"The endpoint returns forecasted numeric values for the requested number of steps ahead, along with a prediction band (upper and lower bounds) at the specified confidence level, allowing the agent to understand both the point forecast and the uncertainty range.","failureModes":["Missing required 'series' field returns a 400/422 validation error","Series array too short for meaningful forecasting may return an error or low-quality result","Confidence value outside 0.5–0.99 range triggers validation rejection","Payment failure over x402 protocol results in 402 Payment Required before forecast is returned","Invalid data types (non-numeric series values) cause schema validation errors","Very large horizons relative to series length may yield high uncertainty or degenerate forecasts"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use numeric time series forecast without provisioning a dedicated ML infrastructure. It is ideal for agents that occasionally need forward projections on sensor data, business metrics, or any ordered numeric sequence, and want to avoid subscription costs. The x402 micropayment model at $0.03 USDC per call makes it cost-effective for low-to-medium frequency forecasting tasks where you only pay when you actually need a prediction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:30:09.545Z","isFirstParty":false,"canonicalSlug":"fly-ai-time-series-forecast-api-80c09f8d"}