API key required. Sign up for an Ouro account and create an API key to get started.
/3d/stable-fast-3d
Generate 3D assets from a single 2D input image
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.
1024
2048
512
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));
Discover other routes like this one