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.
Available Endpoints
/stable-image/generate/ultraText to image generation with Stable Image Ultra
/stable-image/generate/coreText to image generation with Stable Image Core
/stable-image/generate/sd3Text to image generation with Stable Diffusion 3.0
/stable-image/control/sketchImage-to-image generation for controlled variations of existing images or sketches
/3d/stable-fast-3dGenerate 3D assets from a single 2D input image
/image-to-videoGenerate a short video from an image
StabilityAI API
Version v2betaExplore the possibilities of generative AI
Hey everyone! Quick announcement for some new services added to Ouro. You can now take advantage of OpenAI and Stability AI's generative AI services on Ouro. We've worked to make these functionalities
9mo