{"uid":"cap_55u0G0aSMHezvmL5jQYZZ","slug":"delx-lerp-f8a3af4c","name":"Delx Lerp","description":"Linear interpolation between a and b by t. Call when you blend scores, progress, or animation parameters. Returns interpolated value for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/lerp?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"integer","description":"Input field: a."},"b":{"type":"integer","description":"Input field: b."},"t":{"type":"number","description":"Input field: t."}}},"responseSchema":{"type":"json","example":{"a":0,"b":10,"t":0.25,"value":2.5,"schema":"delx/util-lerp/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NO3GSdkjcHVvTZF667u6X","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs linear interpolation between two numeric values a and b by factor t, returning the blended result.","exampleAgentPrompt":"Lerp between 0 and 200 with t=0.75 — I need the interpolated value along that range.","exampleUseCases":[{"title":"Blend two scores by progress","prompt":"I have a starting score of 50 and a target score of 300, and my player is 40% of the way through — what's the blended score at t=0.4?"},{"title":"Animate parameter between keyframes","prompt":"I'm easing an animation from opacity 0 to opacity 255 and I need the value at 65% through the transition, so lerp between 0 and 255 at t=0.65."},{"title":"Calculate weighted mix of two metrics","prompt":"My baseline metric is 10 and my peak is 80 — what's the interpolated value when I'm 90% of the way there?"}],"resultDescription":"Returns the interpolated numeric value computed as a + t*(b-a), representing the blended point between a and b at fraction t.","failureModes":["Missing required parameters (a, b, or t) results in a 400 error","t outside the 0–1 range may produce extrapolated values beyond a or b (not clamped by default)","Non-numeric inputs for a, b, or t will cause a validation error","Network or payment failure via x402 protocol may result in a 402 or 5xx response"],"whenToPreferThis":"Choose this endpoint when you need a simple, stateless, serverless linear interpolation computation without writing code — especially useful in agentic workflows where blending scores, progress bars, animation parameters, or any two numeric endpoints is needed on-the-fly at minimal cost ($0.001 USDC). It's ideal when you want a quick arithmetic result without spinning up a code interpreter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:43:48.401Z","isFirstParty":false,"canonicalSlug":"delx-lerp-f8a3af4c"}