{"uid":"cap_oTO1k3KviC4yWzbU7msOP","slug":"fly-ai-forecast-pay-per-request-api-4aa174fc","name":"fly.ai Forecast Pay-Per-Request 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/%7Bref%7D?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"horizon":{"type":"integer"},"confidence":{"type":"number"}}},"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_uz9mo4H_2b7DKfmbh6X0u","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":"Returns a single AI-generated forecast answer for a given reference, paid per-call via x402 micropayment, with configurable horizon and confidence parameters.","exampleAgentPrompt":"Get me a fly.ai forecast for reference ID 'stock-42' with a horizon of 7 and a confidence threshold of 0.85.","exampleUseCases":[{"title":"Short-term demand forecast for a product","prompt":"Get me a forecast for reference 'demand-widget-A' with a horizon of 14 and confidence of 0.9 — I want to know the predicted demand over the next two weeks."},{"title":"Single-shot prediction for a risk reference","prompt":"Run a fly.ai forecast on reference 'risk-portfolio-7' with a horizon of 30 and a confidence of 0.75 and return the prediction."},{"title":"Quick AI forecast for a market reference","prompt":"Fetch a forecast from fly.ai for reference 'market-crypto-eth' using a horizon of 5 and confidence of 0.8 — just a single answer, I'll pay per request."}],"resultDescription":"A single forecast answer for the specified reference, reflecting the requested time horizon and confidence parameters. The response is returned immediately after the x402 micropayment is processed; exact response fields are unspecified in the schema but expected to contain the forecast value or prediction output.","failureModes":["Payment not processed or insufficient USDC balance — 402 Payment Required response","Invalid or unknown reference ID (ref) — may return an error or empty result","Horizon value out of supported range — may return a computation error","Confidence value outside 0–1 range — validation error","Service downtime on fly.dev infrastructure — connection or 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a single, on-demand AI forecast answer for a specific reference and want to pay only for that one call via x402 micropayment (USDC). Ideal for agents that need occasional forecasts without a subscription, or for cost-controlled pipelines that pay per result. Use when you have a known reference ID and want to control forecast horizon and confidence.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:38:01.248Z","isFirstParty":false,"canonicalSlug":"fly-ai-forecast-pay-per-request-api-4aa174fc"}