3mo
  • POST /mattergen/generate/magnetic-density-hhi-score

    Generate crystal structures with magnetic density and HHI score conditioning

    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

    hhi_score

    numberRequired

    Range: 0.1 to 1

    A measure of market concentration. Higher values indicate more concentration.

    batch_size

    integerDefaults to 8

    Range: 1 to 64

    Number of structures to generate in each batch

    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.

    magnetic_density

    numberRequired

    Range: 0.01 to 0.3

    Target magnetic density value in units of Angstrom^-3

    const url = 'https://api.ouro.foundation/routes/mmoderwell/mattergen/generate/magnetic-density-hhi-score';
    const options = {
      method: 'POST',
      headers: {
        'Authorization': 'ApiKey {your-ouro-api-key}',
        'Content-Type': 'application/json'
      }
    };
     
    const payload = {
      "hhi_score": 0,
      "batch_size": 8,
      "guidance_factor": 2,
      "magnetic_density": 0
    };
    options.body = JSON.stringify(payload);
     
    fetch(url, options)
      .then(response => response.json())
      .then(data => console.log(data))
      .catch(error => console.error('Error:', error));