{"uid":"cap_2hxEQYIma6V8YdbzhHFvY","slug":"delx-commerce-ratio-api-891d1ad1","name":"Delx Commerce Ratio 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/ratio?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."}}},"responseSchema":{"type":"json","example":{"a":2,"b":4,"ratio":0.5,"schema":"delx/util-ratio/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_24dcjvKhfPbpLcUuGd95l","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 the ratio of two integers (a divided by b) and returns the decimal result","exampleAgentPrompt":"What is the ratio of 3 to 12? Use the Delx ratio API to compute it.","exampleUseCases":[{"title":"Revenue-to-cost ratio check","prompt":"What is the ratio of our revenue 850 to our cost 2000? Use the Delx ratio endpoint to get the decimal."},{"title":"Performance metric ratio","prompt":"Compute the ratio of 47 successful requests to 200 total requests so I can see our success rate as a decimal."},{"title":"Quick fraction decimal conversion","prompt":"I need to know the decimal ratio of 1 to 8 — can you call the Delx ratio API and give me the result?"}],"resultDescription":"A JSON object containing the original inputs (a, b), the computed ratio as a decimal float (a/b), and a schema identifier string (delx/util-ratio/v1).","failureModes":["Division by zero if b=0 (likely returns an error or undefined ratio)","Non-integer inputs rejected by schema validation","Missing required fields a or b returns a 400-style error","Payment failure via x402 if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when an agent needs a lightweight, pay-per-use ratio or division computation with no signup, verifiable delivery, and micropayment billing via USDC on Base or Solana. Ideal for agents that need simple arithmetic as a composable primitive without standing up their own math service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:48.573Z","isFirstParty":false,"canonicalSlug":"delx-commerce-ratio-api-891d1ad1"}