惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
B
Blog
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
Jina AI
Jina AI
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
L
LangChain Blog
M
MIT News - Artificial intelligence
Blog — PlanetScale
Blog — PlanetScale
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell
Y
Y Combinator Blog
F
Fortinet All Blogs
H
Help Net Security
B
Blog RSS Feed
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
S
SegmentFault 最新的问题

Replicate's blog

How to make remarkable videos with Seedance 2.0 – Replicate blog How to prompt Seedream 5.0 – Replicate blog Recraft V4: image generation with design taste – Replicate blog Run Isaac 0.1 on Replicate – Replicate blog Run FLUX.2 on Replicate – Replicate blog How to prompt Nano Banana Pro – Replicate blog Retro Diffusion's pixel art models are now on Replicate – Replicate blog Replicate is joining Cloudflare – Replicate blog Extract text from documents and images with Datalab Marker and OCR – Replicate blog How to prompt Veo 3.1 – Replicate blog IBM's Granite 4.0 is now on Replicate – Replicate blog Which image editing model should I use? – Replicate blog Introducing our new search API – Replicate blog Torch compile caching for inference speed – Replicate blog Announcing Replicate's remote MCP server – Replicate blog How to prompt Veo 3 with images – Replicate blog Open source video is back – Replicate blog Generate consistent characters – Replicate blog Bria is now on Replicate – Replicate blog How we optimized FLUX.1 Kontext [dev] – Replicate blog Compare AI video models – Replicate blog The FLUX.1 Kontext hackathon – Replicate blog How to prompt Veo 3 for the best results – Replicate blog Get the most from Google Veo 3 – Replicate blog FLUX.1 Kontext from the community – Replicate blog Use FLUX.1 Kontext to edit images with words – Replicate blog Generate incredible images with Google's Imagen 4 – Replicate blog Run OpenAI’s latest models on Replicate – Replicate blog NVIDIA H100 GPUs are here – Replicate blog Run 30,000+ LoRAs on Hugging Face with Replicate – Replicate blog
Run Stable Diffusion 3 with an API – Replicate blog
2024-06-12 · via Replicate's blog

Stable Diffusion 3 is the latest text-to-image model from Stability . It has greatly improved performance in image quality, typography, complex prompt understanding, and resource-efficiency.

With Replicate, you can run Stable Diffusion 3 with one line of code.


Try Stable Diffusion 3 in our API playground

Before you dive in, try Stable Diffusion 3 in our API playground.

Try tweaking the prompt and see how Stable Diffusion 3 responds. Most models on Replicate have an interactive API playground like this, available on the model page: https://replicate.com/stability-ai/stable-diffusion-3

The API playground is a great way to get a feel for what a model can do, and provides copyable code snippets in a variety of languages to help you get started.

Running Stable Diffusion 3 with JavaScript

You can run Stable Diffusion 3 with our official JavaScript client:

Install Replicate’s Node.js client library

Set the REPLICATE_API_TOKEN environment variable

(You can generate an API token in your account. Keep it to yourself.)

Import and set up the client

Run stability-ai/stable-diffusion-3 using Replicate’s API. Check out the model’s schema for an overview of inputs and outputs.

To learn more, take a look at the guide on getting started with Node.js.

Running Stable Diffusion 3 with Python

You can run Stable Diffusion 3 with our official Python client:

Install Replicate’s Python client library

Set the REPLICATE_API_TOKEN environment variable

(You can generate an API token in your account. Keep it to yourself.)

Import the client

Run stability-ai/stable-diffusion-3 using Replicate’s API. Check out the model’s schema for an overview of inputs and outputs.

To learn more, take a look at the guide on getting started with Python.

Running Stable Diffusion 3 with cURL

Your can call the HTTP API directly with tools like cURL:

Set the REPLICATE_API_TOKEN environment variable

(You can generate an API token in your account. Keep it to yourself.)

Run stability-ai/stable-diffusion-3 using Replicate’s API. Check out the model’s schema for an overview of inputs and outputs.

To learn more, take a look at Replicate’s HTTP API reference docs.

You can also run Stable Diffusion 3 using other Replicate client libraries for Go, Swift, and others.

Keep up to speed

Happy hacking! 🦙