runwayml/
Most widely used version of Stable Diffusion. Trained on 512x512 images, it can generate realistic images given text description
This document provides an overview of the DeepInfra-compatible OpenAI image generation API. It allows users to generate AI-created images based on text prompts using DeepInfra models.
curl https://api.deepinfra.com/v1/openai/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DEEPINFRA_TOKEN" \
-d '{
"prompt": "A photo of an astronaut riding a horse on Mars.",
"size": "1024x1024",
"model": "runwayml/stable-diffusion-v1-5",
"n": 1
}'
The API returns a JSON object containing the generated image(s).
{
"created": 1707000000,
"data": [
{
"revised_prompt": "A photo of an astronaut riding a horse on Mars.",
"b64_json": "/9j/4AAQS..."
}
]
}
Run models at scale with our fully managed GPU infrastructure, delivering enterprise-grade uptime at the industry's best rates.