/mattergen/generate/single
Generate a crystal structure with MatterGen
Chemical system to generate (e.g., 'Li-O' or 'Fe-Co-Ni')
Range: 0 to 10
Diffusion guidance factor. Higher values produce samples that better match the target property but may be less realistic.
const url = 'https://api.ouro.foundation/routes/mmoderwell/mattergen/generate/single';
const options = {
method: 'POST',
headers: {
'Authorization': 'ApiKey {your-ouro-api-key}',
'Content-Type': 'application/json'
}
};
const payload = {
"chemical_system": "example_string",
"guidance_factor": 2
};
options.body = JSON.stringify(payload);
fetch(url, options)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));