# x402.forgemesh.io Stoichiometry Calculator

> x402.forgemesh.io Stoichiometry Calculator 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-15).

Converts a chemical formula between grams, moles, and molecule count using molar mass and Avogadro's number

## Facts

- Endpoint: POST https://x402.forgemesh.io/stoichiometry-calculator
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-forgemesh-io-stoichiometry-calculator-055ee22c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z1E6h4bW8R3CjqCxpWo8K

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 x402-forgemesh-io-stoichiometry-calculator-055ee22c -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need exact stoichiometric conversions between mass, moles, and molecule count for any chemical formula — ideal for chemistry tutoring agents, automated lab reagent preparation workflows, or homework-assistance tools that require precise values rather than approximations.

## Known failure modes

- Invalid or unrecognized chemical formula returns an error
- Neither grams nor moles provided results in missing-input error
- Formula with ambiguous element symbols may fail to parse
- Extremely large or small values may hit floating-point precision limits

## How this service works

Converts between grams, moles, and molecule count for any chemical formula using its molar mass and Avogadro's number — give either grams or moles and get all three back. For stoichiometry problem sets, lab reagent prep, and chemistry-tutoring agents that need exact conversions, not approximations.

## Output

Returns all three interconverted values: grams, moles, and molecule count, computed using the formula's molar mass and Avogadro's number (6.022×10²³).

## 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/x402-forgemesh-io-stoichiometry-calculator-055ee22c/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)
