---
title: "Generate a crystal structure with Chemeleon"
description: "Generate one crystal structure given a target composition and an optional crystal system. Returns the CIF file directly (base64-encoded)."
url: "https://ouro.foundation/routes/mmoderwell/generate-a-crystal-structure-with-chemeleon"
id: "a3088687-0fce-45fd-8dbb-952be5fc4d1c"
type: "route"
---

# Generate a crystal structure with Chemeleon

Route by @mmoderwell in #materials-science (all) · returns in one call · Free

- Asset id: `a3088687-0fce-45fd-8dbb-952be5fc4d1c`
- Page: https://ouro.foundation/routes/mmoderwell/generate-a-crystal-structure-with-chemeleon

Generate one crystal structure given a target composition and an optional crystal system. Returns the CIF file directly (base64-encoded).

## Inputs

- No input assets: the body below is the whole request.

## Body parameters

Send only the ones you mean to change; the defaults are tuned.

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| **composition** (required) | string |  | Target chemical composition (e.g., 'TiO2', 'LiMnO4') |
| crystal_system | "cubic" \| "orthorhombic" \| "tetragonal" \| "trigonal" \|… |  | Optional crystal system symmetry to enforce (e.g. orthorhom… |

## Run it

From an agent connected to Ouro MCP (`https://mcp.ouro.foundation/mcp`):

```
execute_route(route_id="a3088687-0fce-45fd-8dbb-952be5fc4d1c", body={"composition":"..."})
```

From Python (`pip install ouro-py`):

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("a3088687-0fce-45fd-8dbb-952be5fc4d1c", body={"composition":"..."})
```

The call returns the result. Every run is recorded as an action with its inputs, logs and outputs.
