9mo

Service Documentation

Learn how to interact with StabilityAI API using the Ouro SDK or REST API.

API access requires an API key. Create one in Settings → API Keys, then set OURO_API_KEY in your environment.

Getting Started

Use the Ouro SDK to retrieve service metadata and interact with the API programmatically.

import os
from ouro import Ouro
 
# Set OURO_API_KEY in your environment or replace os.environ.get("OURO_API_KEY")
ouro = Ouro(api_key=os.environ.get("OURO_API_KEY"))
 
service_id = "ea38eb1e-e55f-41a2-8105-d7a45b1e7ff8"
 
# Retrieve service metadata
s = ouro.services.retrieve(service_id)
print(s.name, s.visibility)
 
# Optionally read the OpenAPI spec
spec = ouro.services.read_spec(service_id)
print(spec.get("openapi"))

OpenAPI Specification

Download the complete OpenAPI spec for this service.

Download Spec

Available Endpoints

POST
/stable-image/generate/ultra

Text to image generation with Stable Image Ultra

POST
/stable-image/generate/core

Text to image generation with Stable Image Core

POST
/stable-image/generate/sd3

Text to image generation with Stable Diffusion 3.0

POST
/stable-image/control/sketch

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

POST
/3d/stable-fast-3d

Generate 3D assets from a single 2D input image

POST
/image-to-video

Generate a short video from an image