---
title: "Sample crystal structures with CrystaLLM for GenBench"
description: "GenBench's sample contract with CrystaLLM (small checkpoint): prompts the cell composition with Z of 1, 2, 3, 4, 6 or 8 formula units (up to 40 atoms), draws one formula per sample from the system's stoichiometries, and starts from alone. All samples generate in one batch. Returns post-processed CIF"
url: "https://ouro.foundation/routes/mmoderwell/sample-crystal-structures-with-crystallm-for-genbench"
id: "d9068fe4-1f80-40fc-9f42-c0c967fc4965"
type: "route"
---

# Sample crystal structures with CrystaLLM for GenBench

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

- Asset id: `d9068fe4-1f80-40fc-9f42-c0c967fc4965`
- Page: https://ouro.foundation/routes/mmoderwell/sample-crystal-structures-with-crystallm-for-genbench

GenBench's sample contract with CrystaLLM (small checkpoint): `formula` prompts the cell composition with Z of 1, 2, 3, 4, 6 or 8 formula units (up to 40 atoms), `chemical_system` draws one formula per sample from the system's stoichiometries, and `unconditional` starts from `data_` alone. All samples generate in one batch. Returns post-processed CIFs inline as JSON, dropping any that do not parse; creates no Ouro assets.

## 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 | 0 | Random seed; the same seed and request give the same sample… |
| **task** (required) | "unconditional" \| "chemical_system" \| "formula" |  | What to sample: anything ('unconditional'), structures with… |
| formula | string \| null |  | A formula, e.g. 'LiCoO2'. Required for task 'formula'. |
| num_samples | integer | 32 | How many structures to return. |
| chemical_system | string \| null |  | Elements joined by dashes, e.g. 'Li-Mn-O'. Required for tas… |

## Run it

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

```
execute_route(route_id="d9068fe4-1f80-40fc-9f42-c0c967fc4965", body={"task":"unconditional"})
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("d9068fe4-1f80-40fc-9f42-c0c967fc4965", body={"task":"unconditional"})
```

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