# Mole-Mass-Molecule Count Converter

> Mole-Mass-Molecule Count Converter is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Converts a chemical compound's mass (grams) or mole amount into a full set of molar conversions including moles, grams, and molecule count, computed from the exact molar mass of the formula.

## Facts

- Endpoint: POST https://x402.forgemesh.io/mole-mass-converter
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mole-mass-molecule-count-converter-fc33a2b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_axkfNukbPvb7DRERWcstk

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 mole-mass-molecule-count-converter-fc33a2b5 -d '<json body>'
```

Example prompt: I have 25 grams of glucose (C6H12O6) — can you convert that to moles and tell me how many molecules that is?

## When to prefer this

Use this endpoint when you need a fast, single-call molar conversion for any arbitrary chemical formula, especially in lab prep, dosage calculation, or chemistry education contexts where you need grams, moles, and molecule count all at once rather than computing them separately.

## Known failure modes

- Invalid or unrecognized chemical formula returns an error
- Neither grams nor moles provided results in a missing-parameter error
- Malformed formula string (e.g. mismatched brackets) causes a parse failure
- Non-numeric string for grams or moles field returns a validation error

## How this service works

Mole-to-mass-to-molecule-count converter for any chemical formula: supply a mass in grams or an amount in moles and get the full conversion set computed from the compound's exact molar mass. Useful for lab calculations, dosage prep, and chemistry education tools.

## Output

Returns the full conversion set for the given chemical formula: the compound's exact molar mass, the equivalent number of moles (if grams were supplied), the equivalent mass in grams (if moles were supplied), and the total molecule count, all computed from the formula's atomic weights.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "grams": {
   "type": "string"
  },
  "moles": {
   "type": "string"
  },
  "formula": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "moles": 1,
  "molecules": 6.02214076e+23,
  "molar_mass_g_per_mol": 18.015
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mole-mass-molecule-count-converter-fc33a2b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
