Get Compound Image
pubchem_get_compound_imageGet a 2D structural diagram of a compound as a PNG image by providing its PubChem CID.
Instructions
Fetch a 2D structure diagram (PNG image) for a compound by CID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds. | |
| size | No | Image size: "small" (100x100) or "large" (300x300). Default: "large". | large |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | PubChem Compound ID. | |
| width | Yes | Image width in pixels. | |
| height | Yes | Image height in pixels. | |
| mimeType | Yes | MIME type — always "image/png". | |
| imageBase64 | Yes | Base64-encoded PNG image data. |