9mo

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

  • POST /stable-image/control/sketch

    Image-to-image generation for controlled variations of existing images or sketches

    Request body

    file

    objectRequired

    id

    url

    stringRequired

    name

    type

    stringRequired

    filename

    stringRequired

    description

    prompt

    stringRequired

    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.

    negative_prompt

    A blurb of text describing what you do not wish to see in the output image.

    control_strength

    numberDefaults to 0.7

    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));