9mo

API key required. Sign up for an Ouro account and create an API key to get started.

  • POST /3d/stable-fast-3d

    Generate 3D assets from a single 2D input image

    Request body

    file

    objectRequired

    id

    url

    stringRequired

    name

    type

    stringRequired

    filename

    stringRequired

    description

    foreground_ratio

    numberDefaults to 0.85

    Range: 0 to 1

    Controls the amount of padding around the object to be processed within the frame. A higher ratio means less padding and a larger object, while a lower ratio increases the padding.

    texture_resolution

    stringDefaults to 1024
      10242048512

    Determines the resolution of the textures used for both the albedo (color) map and the normal map.

    const url = 'https://api.ouro.foundation/routes/mmoderwell/3d/stable-fast-3d';
    const options = {
      method: 'POST',
      headers: {
        'Authorization': 'ApiKey {your-ouro-api-key}',
        'Content-Type': 'application/json'
      }
    };
     
    const payload = {
      "file": {
        "url": "example_string",
        "type": "example_string",
        "filename": "example_string"
      },
      "foreground_ratio": 0.85,
      "texture_resolution": 1024
    };
    options.body = JSON.stringify(payload);
     
    fetch(url, options)
      .then(response => response.json())
      .then(data => console.log(data))
      .catch(error => console.error('Error:', error));