---
title: "Generate a crystal structure with CrystaLLM"
description: "Generate a crystal structure with CrystaLLM"
url: "https://ouro.foundation/routes/lantunes/generate-a-crystal-structure-with-crystallm"
id: "2443b425-a2bf-4a6f-8202-3ba8b36c921f"
type: "route"
---

# Generate a crystal structure with CrystaLLM

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

- Asset id: `2443b425-a2bf-4a6f-8202-3ba8b36c921f`
- Page: https://ouro.foundation/routes/lantunes/generate-a-crystal-structure-with-crystallm

Generate a crystal structure with CrystaLLM

## 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 |
| --- | --- | --- | --- |
| **composition** (required) | string |  | Chemical composition (e.g., 'PbTe' or 'Bi2Se3') |
| space_group | "P1" \| "P-1" \| "P2" \| "P2_1" \| "C2" \| "Pm" \| "Pc" \|… |  | Space group symbol (e.g., 'Fd3m', 'P4_2/n', etc.) |
| temperature | number | 0.8 | Sampling temperature. 1.0 = no change, < 1.0 = less random,… |
| max_new_tokens | integer | 3000 | Number of tokens generated in each sample |

## Run it

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

```
execute_route(route_id="2443b425-a2bf-4a6f-8202-3ba8b36c921f", body={"composition":"..."})
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("2443b425-a2bf-4a6f-8202-3ba8b36c921f", body={"composition":"..."})
```

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