# SMILES Chemistry Validation

> SMILES Chemistry Validation is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.011001/call, status unknown (last checked 2026-10-21).

Parses a SMILES string and reports valence errors, stereochemistry issues, and representation problems before downstream molecular data processing.

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/micro/chemistry-smiles-validation?utm_source=zero.xyz
- Price: $0.011001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/smiles-chemistry-validation-19680e2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tGzu5bExK5qjNiWBPYy9u

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 smiles-chemistry-validation-19680e2d -d '<json body>'
```

Example prompt: Can you validate this SMILES string for me — 'CC(=O)Oc1ccccc1C(=O)O' — and tell me if there are any valence, stereochemistry, or representation problems? This is public data.

## When to prefer this

Choose this endpoint when you need a lightweight, per-call structural validation of a SMILES string before feeding it into a cheminformatics pipeline, molecular database, or simulation tool. It is purpose-built for catching valence, stereochemistry, and representation errors early, and is suitable for both public and synthetic compound data. It does not perform safety or toxicity assessment, so pair it with appropriate downstream checks for those concerns.

## Known failure modes

- SMILES string is empty or exceeds 512 characters — rejected by schema validation
- Invalid or malformed SMILES syntax that cannot be parsed at all — may return parse error in result
- Unknown or unsupported chemical element in SMILES — may trigger representation error
- dataClass field missing or not one of 'public'/'synthetic' — schema validation failure
- Network or service unavailability — HTTP error response

## How this service works

Parse supplied SMILES and report valence, stereochemistry and representation problems before molecular-data processing. Structural parsing does not establish safety.

## Output

Returns a structured result object containing detected valence errors, stereochemistry problems, and representation issues found in the submitted SMILES string, along with metadata including the offer ID, version, input digest, receipt digest, and the amount charged in base units.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "dataClass",
      "smiles"
     ],
     "properties": {
      "smiles": {
       "type": "string",
       "maxLength": 512,
       "minLength": 1
      },
      "dataClass": {
       "enum": [
        "public",
        "synthetic"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "version",
      "offerId",
      "amountBaseUnits",
      "inputDigest",
      "result",
      "boundaries",
      "receiptDigest"
     ],
     "properties": {
      "result": {
       "type": "object"
      },
      "offerId": {
       "enum": [
        "chemistry-smiles-validation"
       ],
       "type": "string"
      },
      "version": {
       "enum": [
        "maha-microproducts/0.1"
       ],
       "type": "string"
      },
      "boundaries": {
       "type": "array",
       "maxItems": 128,
       "minItems": 0
      },
      "inputDigest": {
       "type": "string",
       "maxLength": 71
      },
      "receiptDigest": {
       "type": "string",
       "maxLength": 71
      },
      "amountBaseUnits": {
       "enum": [
        "11001"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/smiles-chemistry-validation-19680e2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.mahastrategies.com](https://www.zero.xyz/host/www.mahastrategies.com/llms.txt)
