3mo
  • POST /mattergen/generate/single

    Generate a crystal structure with MatterGen

    Parameters

    ouro-route-id

    in header

    ouro-route-org-id

    in header

    ouro-route-team-id

    in header

    ouro-action-id

    in header

    Request body

    chemical_system

    stringRequired

    Chemical system to generate (e.g., 'Li-O' or 'Fe-Co-Ni')

    guidance_factor

    numberDefaults to 2

    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));