# Chemistry Calculators – Mole Conversion

> Chemistry Calculators – Mole Conversion is a paid API for AI agents from chemistry-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Converts between grams, moles, and molecule counts for a given chemical formula using Avogadro's number and molar mass.

## Facts

- Endpoint: GET https://chemistry-calc.x402tookit.com/mole-convert?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chemistry-calculators-mole-conversion-ec3a3166
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s5kMhNKbdu-79YbX7nN-J

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 chemistry-calculators-mole-conversion-ec3a3166
```

Example prompt: How many moles are in 18 grams of water (H2O)? Give me the full mole conversion including molecules and molar mass.

## When to prefer this

Use this endpoint when you need to convert between grams, moles, and molecule counts for a specific chemical formula. It's ideal for stoichiometry problems, lab prep calculations, and educational chemistry tasks. Prefer this over a general calculator when you need both the molar mass lookup and the unit conversion combined in one call.

## Known failure modes

- Invalid or unparseable chemical formula returns an error or null fields
- None of the optional quantity parameters (grams, moles, molecules) provided — exactly one must be supplied
- Negative or zero input quantities may produce invalid results
- Extremely large molecule counts may lose floating-point precision

## How this service works

Convert between grams, moles and molecule counts for a chemical formula using Avogadro's number.

## Output

Returns the computed values for grams, moles, and molecule count for the given chemical formula, along with the molar mass in g/mol, total atom count, and a human-readable summary. May also include degraded-mode flags and a disclaimer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "formula"
     ],
     "properties": {
      "grams": {
       "type": "number",
       "description": "Mass in grams (give exactly one of grams, moles or molecules)"
      },
      "moles": {
       "type": "number",
       "description": "Amount in moles"
      },
      "formula": {
       "type": "string",
       "description": "Chemical formula"
      },
      "molecules": {
       "type": "number",
       "description": "Number of molecules or formula units"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "grams": {
       "type": [
        "null",
        "number"
       ]
      },
      "moles": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "formula": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "molecules": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "totalAtoms": {
       "type": [
        "null",
        "number"
       ]
      },
      "molarMassGPerMol": {
       "type": [
        "null",
        "number"
       ]
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chemistry-calculators-mole-conversion-ec3a3166/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chemistry-calc.x402tookit.com](https://www.zero.xyz/host/chemistry-calc.x402tookit.com/llms.txt)
