We use essential cookies to make our site work. With your consent, we may also use non-essential cookies to improve user experience and analyze website traffic…

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
DeepSeek’s $10.29B Financing Round ExplainedDeepSeek’s $10.29B Financing Round Explained<p>DeepSeek has not taken outside money since it was founded in 2023. For two years it turned down every venture capital firm and major tech company that came calling, funding its research entirely from the returns of its parent hedge fund, Zhejiang High-Flyer Asset Management, which reportedly posted a 56.6% return in 2025. That era [&hellip;]</p>
Lzlv model for roleplaying and creative workLzlv model for roleplaying and creative workRecently an interesting new model got released. It is called Lzlv, and it is basically a merge of few existing models. This model is using the Vicuna prompt format, so keep this in mind if you are using our raw [API](/lizpreciatior/lzlv_70b...
Best SaaS Tools and API Providers for GLM-5.2Best SaaS Tools and API Providers for GLM-5.2<p>GLM-5.2 represents a significant leap forward in open-weight models, particularly for complex reasoning, long-context processing, and agentic coding tasks. Deploying a model of this scale — especially with its massive 1-million token context window and Mixture-of-Experts (MoE) architecture — presents real infrastructure challenges. Managing memory bandwidth, optimizing time to first token (TTFT), and handling quantization [&hellip;]</p>