---
title: "Generate a crystal structure with GPSK-01"
description: "Generate novel crystal structures for a given chemical composition using a 1.2B parameter diffusion transformer. Returns CIF file data with structural metrics."
url: "https://ouro.foundation/routes/will/generate-a-crystal-structure-with-gpsk-01"
id: "48a995e2-79c6-491c-8c6a-bcf1a8a16cf5"
type: "route"
---

# Generate a crystal structure with GPSK-01

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

- Asset id: `48a995e2-79c6-491c-8c6a-bcf1a8a16cf5`
- Page: https://ouro.foundation/routes/will/generate-a-crystal-structure-with-gpsk-01

Generate novel crystal structures for a given chemical composition using a 1.2B parameter diffusion transformer. 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 | ODE integration steps. More steps = higher quality but slow… |
| guidance | number | 3 | Classifier-free guidance scale. Higher = stronger compositi… |
| n_samples | integer | 1 | Number of structures to generate |
| **composition** (required) | string |  | Chemical composition (e.g. 'FePt', 'BaTiO3', 'GaAs') |
| 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="48a995e2-79c6-491c-8c6a-bcf1a8a16cf5", body={"composition":"..."})
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("48a995e2-79c6-491c-8c6a-bcf1a8a16cf5", body={"composition":"..."})
```

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