# GCD & LCM Calculator

> GCD & LCM Calculator is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-22).

Computes the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of two integers

## Facts

- Endpoint: POST https://kihustle.tech/bot-bazaar/api/v1/gcd-lcm-calculator?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gcd-lcm-calculator-e57375be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zg111PJD-Nnn8T4JRhh_p

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gcd-lcm-calculator-e57375be -d '<json body>'
```

Example prompt: What are the GCD and LCM of 48 and 180?

## When to prefer this

Choose this endpoint when you need a quick, paid microservice call to compute GCD and LCM of two integers without running local code. Useful for agents that cannot execute arbitrary math code client-side or need a deterministic, stateless computation service accessible via HTTP with x402 micropayment.

## Known failure modes

- Non-integer inputs may cause validation errors or unexpected results
- Missing required fields 'a' or 'b' may return an error or null result
- Input of zero may cause undefined behavior (GCD/LCM with zero is mathematically edge-case)
- Very large integers may cause overflow or timeout
- Malformed JSON body returns a 400-level error

## How this service works

Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.

## Output

Returns a JSON object containing the computed GCD and LCM of the two input integers, along with a status field indicating success or failure of the operation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "integer"
  },
  "b": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gcd-lcm-calculator-e57375be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
