3mo
  • POST /chemeleon/generate

    Generate a crystal structure with Chemeleon

    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

    composition

    stringRequired

    Target chemical composition (e.g., 'TiO2', 'LiMnO4')

    crystal_system

    Optional crystal system symmetry to enforce (e.g. orthorhombic, tetragonal).

    const url = 'https://api.ouro.foundation/routes/mmoderwell/chemeleon/generate';
    const options = {
      method: 'POST',
      headers: {
        'Authorization': 'ApiKey {your-ouro-api-key}',
        'Content-Type': 'application/json'
      }
    };
     
    const payload = {
      "composition": "example_string"
    };
    options.body = JSON.stringify(payload);
     
    fetch(url, options)
      .then(response => response.json())
      .then(data => console.log(data))
      .catch(error => console.error('Error:', error));