---
title: "Generate a crystal structure with GPSK-300"
description: "Generate novel crystal structures with multimodal property conditioning using a reciprocal-space DiT. Returns CIF data."
url: "https://ouro.foundation/routes/will/generate-a-crystal-structure-with-gpsk-300"
id: "5dea27b6-7d1f-4cb4-9450-109bd7c5ec71"
type: "route"
---

# Generate a crystal structure with GPSK-300

Route by @will in #materials-science (all) · returns in one call · Free · typical run ~3 min

- Asset id: `5dea27b6-7d1f-4cb4-9450-109bd7c5ec71`
- Page: https://ouro.foundation/routes/will/generate-a-crystal-structure-with-gpsk-300

Generate novel crystal structures with multimodal property conditioning using a reciprocal-space DiT. Returns CIF data.

## 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 |
| band_gap | number | 0 | 0 for metallic, >0 for semiconductor/insulator. |
| guidance | number | 5 | Classifier-free guidance. 3-7 recommended for HKL. |
| **composition** (required) | string |  | Chemical composition (e.g. 'FePt', 'BaTiO3', 'LiFePO4'). St… |
| space_group | integer | 1 | Space group number |
| e_above_hull | number | 0 | 0 for on-hull stable structures. |
| n_candidates | integer | 5 | Generate N candidates and return the best. |
| crystal_system | "cubic" \| "tetragonal" \| "orthorhombic" \| "hexagonal" \|… |  | Crystal system |
| formation_energy | number | 0 | Formation energy per atom (eV) |
| magnetic_ordering | "NM" \| "FM" \| "AFM" \| "FiM" \| null |  | NM=non-magnetic, FM=ferromagnetic, AFM=antiferro, FiM=ferri… |

## Run it

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

```
execute_route(route_id="5dea27b6-7d1f-4cb4-9450-109bd7c5ec71", body={"composition":"..."})
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("5dea27b6-7d1f-4cb4-9450-109bd7c5ec71", body={"composition":"..."})
```

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