Catalog/chem-solution-prep

Chemistry

Grams to hit molarity API

Computes grams of solute needed to make a target molarity in a given volume via grams = M × V(L) × molar mass (formula parsed automatically). Answers 'How many grams of NaCl make 0.5 L of 1 M?', 'mass of solute for a target concentration'.

Price$0.04per request
MethodPOST
Route/v1/chemistry/solution-prep
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
chemistrysolution-prepmolaritygrams-neededstock-solutionlabrecipeconcentration
API URLhttps://x402.hexl.dev/v1/chemistry/solution-prep
Integration docs
Example request
{
  "targetMolarity": 1,
  "volumeL": 0.5,
  "formula": "NaCl"
}
Example response
{
  "targetMolarity": 1,
  "volumeL": 0.5,
  "molarMass": 58.4398,
  "molesNeeded": 0.5,
  "gramsNeeded": 29.2199,
  "formula": "grams = molarity × volume(L) × molarMass"
}
Input schema
{
  "type": "object",
  "required": [
    "targetMolarity"
  ],
  "properties": {
    "targetMolarity": {
      "type": "number",
      "examples": [
        1
      ]
    },
    "volumeL": {
      "type": "number",
      "examples": [
        0.5
      ]
    },
    "volumeMl": {
      "type": "number"
    },
    "formula": {
      "type": "string",
      "examples": [
        "NaCl"
      ]
    },
    "molarMass": {
      "type": "number"
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}