{"uid":"cap_cgV1el_n-AtZ0-iN9_Xtz","slug":"chemeq-balance-equation-e308a432","name":"ChemEq Balance Equation","description":"Balance an equation such as \"H2 + O2 -> H2O\" into the smallest whole-number coefficients using exact rational linear algebra. Equations that cannot be balanced with positive coefficients are clean 400s.","url":"https://chemeq.openverbs.com/v1/balance","method":"POST","headers":{},"bodySchema":{"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":["equation"],"properties":{"equation":{"type":"string","minLength":1,"description":"Unbalanced equation, e.g. \"C3H8 + O2 -> CO2 + H2O\". Arrow may be \"->\" or \"=\"."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6cSFrDjGAwgE6uYpOadY3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Balances a chemical equation (e.g. 'H2 + O2 -> H2O') into the smallest whole-number coefficients using exact rational linear algebra.","exampleAgentPrompt":"Can you balance this chemical equation for me: C3H8 + O2 -> CO2 + H2O? I need the smallest whole-number coefficients.","exampleUseCases":[{"title":"Balance combustion reaction for homework","prompt":"Balance the combustion of propane for me: C3H8 + O2 -> CO2 + H2O, and give me the smallest whole-number coefficients."},{"title":"Verify photosynthesis equation","prompt":"Is this equation balanced correctly? CO2 + H2O -> C6H12O6 + O2 — if not, balance it and tell me the right coefficients."},{"title":"Balance iron oxidation reaction","prompt":"Balance this rust reaction: Fe + O2 -> Fe2O3, using the smallest whole-number coefficients."}],"resultDescription":"Returns the smallest whole-number stoichiometric coefficients for each species in the balanced equation, computed via exact rational linear algebra. Returns a clean 400 error if the equation cannot be balanced with positive integer coefficients.","failureModes":["400 error when equation cannot be balanced with positive integer coefficients (e.g. impossible reaction)","400 error for malformed equation strings missing arrow or valid chemical formulas","Empty or missing 'equation' field returns validation error","Unrecognized element symbols or syntax errors in formula string"],"whenToPreferThis":"Choose this endpoint when you need precise, mathematically exact balancing of chemical equations using rational linear algebra — not heuristic or approximate methods. It handles any well-formed equation with a '->' or '=' arrow and returns guaranteed minimal integer coefficients. Prefer it over general-purpose LLMs or chemistry toolkits when correctness and reproducibility matter, such as in educational tools, stoichiometry calculators, or automated chemistry pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:22.266Z","isFirstParty":false}