---
title: "Generate crystal structures for target compositions"
description: "Generate crystal structures for specific chemical compositions using Chemeleon"
url: "https://ouro.foundation/routes/mmoderwell/generate-crystal-structures-for-target-compositions"
id: "26117dd1-cfcb-46f8-907e-1225588ccaee"
type: "route"
---

# Generate crystal structures for target compositions

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

- Asset id: `26117dd1-cfcb-46f8-907e-1225588ccaee`
- Page: https://ouro.foundation/routes/mmoderwell/generate-crystal-structures-for-target-compositions

Generate crystal structures for specific chemical compositions using Chemeleon

## 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 |
| --- | --- | --- | --- |
| factor | integer | 1 | Multiplication factor for the composition's stoichiometry |
| n_samples | integer | 4 | How many structures to generate |
| **target_composition** (required) | string |  | Target chemical composition (e.g., 'TiO2', 'LiMnO4') |

## Run it

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

```
execute_route(route_id="26117dd1-cfcb-46f8-907e-1225588ccaee", body={"target_composition":"..."})
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("26117dd1-cfcb-46f8-907e-1225588ccaee", body={"target_composition":"..."})
```

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