Chemistry tools search PubChem, one of the world’s largest free chemistry databases with millions of compounds.
What You Can Do
Search Molecules
Find molecules by name, formula, or SMILES
Render Structures
Generate 2D molecular diagrams as SVG
Add to Content
Embed diagrams in websites and PDFs
Searching for Molecules
The AI can search for molecules in three ways:- By Name
- By Formula
- By SMILES
What You’ll Get
When the AI finds a molecule, it returns:- CID - PubChem Compound ID (unique identifier)
- Name - Common name of the molecule
- Formula - Chemical formula (e.g., C8H10N4O2)
- Molecular Weight - Mass in g/mol
- SMILES - Structure notation (needed for rendering)
Rendering Structures
Once you’ve found a molecule (or if you already know its SMILES), the AI can render it as a 2D diagram.Basic Rendering
- Search for the molecule to get its SMILES
- Render a 2D diagram (default 300x300 pixels)
- Save it and embed it in your content
Custom Size
You can request specific dimensions between 100-1000 pixels:Output Formats
- For Websites
- For PDFs (Typst)
Diagrams are rendered as SVG (vector graphics):
- Scales to any size without losing quality
- Loads quickly
- Works on all devices
- Saved to
/public/molecules/in your project
Common Use Cases
Organic Chemistry
Biochemistry
Pharmacology
General Chemistry
Example Prompts
Adding Single Structures
Comparing Structures
In Context
For Assessments
Tips for Chemistry Content
Be Specific
Use the full molecule name or formula to avoid confusion between similar compounds
Consider Context
Think about whether students need to see the structure or draw it themselves
Size Appropriately
Use 400-600px for teaching, 200-300px for inline reference
Search First
Search by name to get the correct SMILES before rendering
How It Works
Behind the scenes, the chemistry tools use:- PubChem - NCBI’s open chemistry database with millions of compounds
- RDKit - Industry-standard cheminformatics library for rendering
- SMILES notation - A text string that encodes molecular structure
1
Search
The AI searches PubChem for your molecule by name, formula, or SMILES
2
Get SMILES
PubChem returns the canonical SMILES notation for the structure
3
Render
RDKit generates a 2D SVG diagram from the SMILES
4
Embed
The diagram is saved and embedded in your content
Limitations
If a molecule isn’t found:- Try an alternative name (common vs IUPAC)
- Use the chemical formula instead
- Check the spelling
- Try searching by SMILES if you have it from another source