---
title: "De novo generation"
description: "Generate novel crystal structures by sampling atom types, fractional coordinates, and lattice parameters. Optionally restrict elements."
url: "https://ouro.foundation/routes/mmoderwell/de-novo-generation"
id: "51b7ab31-b2d2-4a97-9a44-b554058585a5"
type: "route"
---

# De novo generation

Route by @mmoderwell in #materials-science (all) · returns in one call · Free · typical run ~37 s

- Asset id: `51b7ab31-b2d2-4a97-9a44-b554058585a5`
- Page: https://ouro.foundation/routes/mmoderwell/de-novo-generation

Generate novel crystal structures by sampling atom types, fractional coordinates, and lattice parameters. Optionally restrict elements.

## 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 |
| --- | --- | --- | --- |
| seed | integer | 123 | Random seed |
| n_samples | integer | 8 | How many novel structures to generate |
| fixed_num_atoms | integer \| null |  | If set, every sample uses this many atoms (1–20). Otherwise… |
| allowed_elements | string[] \| null |  | Optional whitelist of element symbols or atomic numbers (e.… |
| sample_num_steps | integer | 150 | EDM sampler steps. More steps are slower but can improve qu… |

## Run it

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

```
execute_route(route_id="51b7ab31-b2d2-4a97-9a44-b554058585a5")
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("51b7ab31-b2d2-4a97-9a44-b554058585a5")
```

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