{"uid":"cap_wXik_udFlER2lyPyN-Yn5","slug":"delx-commerce-linear-interpolation-lerp-api-c0a26e9f","name":"Delx Commerce — Linear Interpolation (lerp) API","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/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_7uBuzCS-lwnzBmd8ndZ61","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":"Computes a linearly interpolated value between two integers at a given fractional position t","exampleAgentPrompt":"Can you linearly interpolate between 0 and 100 with a t value of 0.75 — I need the exact blended result?","exampleUseCases":[{"title":"Animation keyframe value blending","prompt":"I'm animating a value that goes from 20 to 80 and I need the interpolated result at t=0.4 — what's the in-between value?"},{"title":"Gradient color channel mixing","prompt":"I need to blend a color channel that starts at 0 and ends at 255, and I want the value at 30% of the way through, so t=0.3 — what does the lerp give me?"},{"title":"Progress-based score calculation","prompt":"My progress bar goes from 50 to 200 and the user is 60% through, so t=0.6 — can you compute the interpolated value for me?"}],"resultDescription":"Returns a JSON object echoing the inputs (a, b, t) alongside the computed interpolated value (e.g. value: 2.5 for a=0, b=10, t=0.25), plus a schema identifier string 'delx/util-lerp/v1'.","failureModes":["Missing required fields (a, b, or t) returns an error response","Non-integer values for a or b may cause validation errors","t values outside [0,1] may return extrapolated values or errors","Payment failure via x402 protocol will block request completion"],"whenToPreferThis":"Use this endpoint when you need a simple, stateless, pay-per-call linear interpolation computation with verifiable on-chain payment via USDC — ideal for AI agents that need trustless micro-transactions for mathematical utilities without API key signup overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:07.690Z","isFirstParty":false,"canonicalSlug":"delx-commerce-linear-interpolation-lerp-api-c0a26e9f"}