---
title: "Generate a crystal structure with GPSK-05"
description: "Generate novel crystal structures for a given chemical composition using a diffusion transformer with periodic representation, AdaLN conditioning, density-based element classification, and learned lattice prediction. Returns CIF file data with structural metrics."
url: "https://ouro.foundation/routes/will/generate-a-crystal-structure-with-gpsk-05"
id: "bfa00fd6-1949-4ff2-ba60-6ce7476d0b33"
type: "route"
---

# Generate a crystal structure with GPSK-05

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

- Asset id: `bfa00fd6-1949-4ff2-ba60-6ce7476d0b33`
- Page: https://ouro.foundation/routes/will/generate-a-crystal-structure-with-gpsk-05

Generate novel crystal structures for a given chemical composition using a diffusion transformer with periodic representation, AdaLN conditioning, density-based element classification, and learned lattice prediction. Returns CIF file data with structural metrics.

## 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 |
| --- | --- | --- | --- |
| steps | integer | 50 | Integration steps |
| reduce | boolean | false | Fold the 2x2x2 supercell to a unit cell. |
| guidance | number | 1.5 | Classifier-free guidance. 1.0-2.0 optimal for v12. |
| **composition** (required) | string |  | Chemical composition (e.g. 'FePt', 'BaTiO3', 'LiFePO4') |
| n_candidates | integer | 20 | Generate N candidates and return the best. |
| crystal_system | "cubic" \| "tetragonal" \| "orthorhombic" \| "hexagonal" \|… |  | Optional crystal system constraint |

## Run it

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

```
execute_route(route_id="bfa00fd6-1949-4ff2-ba60-6ce7476d0b33", body={"composition":"..."})
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("bfa00fd6-1949-4ff2-ba60-6ce7476d0b33", body={"composition":"..."})
```

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