9mo

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

  • POST /stable-image/generate/core

    Text to image generation with Stable Image Core

    Request body

    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.

    aspect_ratio

    stringDefaults to 1:1
      1:116:921:92:33:24:55:49:169:21

    Controls the aspect ratio of the generated image.

    negative_prompt

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

    const url = 'https://api.ouro.foundation/routes/mmoderwell/stable-image/generate/core';
    const options = {
      method: 'POST',
      headers: {
        'Authorization': 'ApiKey {your-ouro-api-key}',
        'Content-Type': 'application/json'
      }
    };
     
    const payload = {
      "prompt": "example_string",
      "aspect_ratio": "1:1"
    };
    options.body = JSON.stringify(payload);
     
    fetch(url, options)
      .then(response => response.json())
      .then(data => console.log(data))
      .catch(error => console.error('Error:', error));