{"uid":"cap_X5fh4AtU3qzNbLRp5gsEN","slug":"loan-repayment-calculator-e6e1ff6e","name":"Loan Repayment Calculator","description":"Compute monthly repayment, total interest and total cost for a loan. Pure CPU, instant. Use to compare offers.","url":"https://api.gadgethumans.com/loan?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["principal","rate","years"],"properties":{"rate":{"type":"number","description":"Annual interest percent"},"years":{"type":"number","description":"Term in years"},"principal":{"type":"number","description":"Amount borrowed"}}}}},"output":{"type":"object","properties":{"example":{"ok":true}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YTzRfS3mxkR_p2lAVcpnn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes monthly repayment amount, total interest paid, and total loan cost given principal, annual interest rate, and term in years.","exampleAgentPrompt":"How much would my monthly payment be on a $25,000 personal loan at 7.5% annual interest over 5 years, and what's the total interest I'd end up paying?","exampleUseCases":[{"title":"Comparing two mortgage offers","prompt":"I have two mortgage offers — one for $400,000 at 6.2% over 30 years and another at 6.8% over 25 years. Can you calculate the monthly payment and total interest for both so I can compare them?"},{"title":"Car loan affordability check","prompt":"I'm thinking of financing a $22,000 car at 5.9% interest over 4 years. What would my monthly payment be and how much total interest would I pay?"},{"title":"Student loan total cost estimate","prompt":"I'm taking out a $45,000 student loan at 4.5% annual interest with a 10-year repayment term — what's my monthly payment and what will the loan cost me in total including interest?"}],"resultDescription":"Returns a JSON object with the computed monthly repayment amount, total interest paid over the loan term, and the total cost of the loan (principal plus interest).","failureModes":["Missing required parameters (principal, rate, or years) return an error","Non-numeric or negative values for principal, rate, or years may cause computation errors","Zero interest rate edge case may or may not be handled gracefully","Very large principal or very long terms may produce unexpected floating point results"],"whenToPreferThis":"Use this endpoint when you need a fast, serverless computation of standard loan repayment figures with no authentication overhead. Ideal for comparing multiple loan offers in rapid succession or embedding loan cost estimates in financial workflows. Prefer this over building your own amortization logic when you need a quick, reliable, pay-per-call calculation without spinning up infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:45:27.145Z","isFirstParty":false,"canonicalSlug":"loan-repayment-calculator-e6e1ff6e"}