Image-to-image generation for controlled variations of existing images or sketches
API key required. Sign up for an Ouro account and create an API key to get started.
POST https://api.ouro.foundation/routes/mmoderwell/stable-image/control/sketch
What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results.
A blurb of text describing what you do not wish to see in the output image.
Range: 0 to 1
How much influence, or control, the image has on the generation. Represented as a float between 0 and 1, where 0 is the least influence and 1 is the maximum.
const url = 'https://api.ouro.foundation/routes/mmoderwell/stable-image/control/sketch';
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"
},
"prompt": "example_string",
"control_strength": 0.7
};
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