DeepInfra raises $107M Series B to scale the inference cloud — read the announcement

A short intro on running Stable Diffusion on DeepInfra

Published on 2023.03.08 by Iskren
A short intro on running Stable Diffusion on DeepInfra

Pick a model

You can browse available text-to-image models on the models page.

For example, we'll use runwayml/stable-diffusion-v1-5.

Using the API

curl -X POST \
    -d '{"prompt": "A photo of a cube floating in space"}' \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -o cube.jpg \
    'https://api.deepinfra.com/v1/inference/runwayml/stable-diffusion-v1-5'
copy

And check out the output in cube.jpg.

Advanced options

You can check all the available settings on the model page or via the API documentation tab.

Related articles
Qwen3.8-27B: Frontier-Level Vision-Language AIQwen3.8-27B: Frontier-Level Vision-Language AI<p>Qwen3.8-27B is a 27-billion parameter dense vision-language model built to close the gap between compact deployment and frontier-level performance. It is engineered for complex, multi-step tasks, including coding, professional research, and long-horizon agentic workflows. The model pairs a native vision encoder with a 262,144-token context window, extensible to 1,000,000 tokens. It reads both text and [&hellip;]</p>
Gemma 4 Model Overview: Features, Architecture & Use CasesGemma 4 Model Overview: Features, Architecture & Use Cases<p>Gemma 4 is Google DeepMind&#8217;s latest family of open-weight models, released on April 3, 2026 under the Apache 2.0 license. The family spans four model sizes — from edge-optimized variants for mobile devices to a 31B dense model for server-side deployments — with every model supporting multimodal input, built-in reasoning, and a context window of [&hellip;]</p>
Best API Providers for Granite-4.2-8B in 2026Best API Providers for Granite-4.2-8B in 2026<p>IBM&#8217;s Granite-4.2-8b is an 8-billion-parameter reasoning model built for enterprise and developer use cases. It offers a 131,072-token context window and an Apache 2.0 license, which suits complex reasoning and long-context data processing in production. Running an 8B model with a long context window means balancing inference cost, output throughput, time to first token (TTFT), [&hellip;]</p>