Atomic computation endpoints for AI agents.
LogiGrain provides 12 deterministic, single-purpose API endpoints designed to be called by autonomous AI agents. Each endpoint solves a problem that LLMs handle poorly — exact calculation, real-time data, structured constant lookups.
Payment via x402 over Base. No API keys, no signup. Agents pay 0.001 USDC per call and receive structured JSON.
// machine-first · deterministic · stateless
/api/compound
Compound interest. Principal, rate, years, optional monthly deposit.
0.001
/api/convert
Currency conversion with live rates (60s cache).
0.001
/api/convert-unit
Unit conversion across 8 categories, 60+ units.
0.001
/api/json
JSON format, minify, validate. Depth and key analysis.
0.001
/api/math
Math expression evaluation. AST-parsed, injection-safe.
0.001
/api/code
Syntax check for JavaScript, JSON, HTML, CSS.
0.001
/api/feed
Crypto / forex live data (30s / 60s cache).
0.001
/api/date
Date diff, add, unix, business-day calculation (UTC).
0.001
/api/probability
Bayesian inference and combinatorics.
0.001
/api/token-cost
LLM cost comparison across 7 frontier models.
0.001
/api/era
Japanese era ↔ ISO date, fiscal-year conversion.
0.001
/api/moon
Moon phase, illumination, next full/new moon, Japanese lunar trivia.
0.001