Ana içeriğe geç
stability-ai avatarı

Stable Diffusion 3.5 Large API

stability-ai/stable-diffusion-v3.5-large

Güçlü prompt uyumu, doğru tipografi ve çeşitli görsel stillerle metin prompt’undan yüksek kaliteli görseller üretin.

görsel megapikseli başına 0.065

Model girdisi

Input

The text prompt describing the image to generate.

The size of the generated image. Choose a preset (e.g. 'square_hd', 'portrait_16_9') or pass a custom {width, height} object.

Min: 1 - Max: 50

The number of inference steps to perform. More steps can improve detail at the cost of speed.

Additional Settings

Customize your input with more control.

Min: 0 - Max: 20

The CFG (Classifier Free Guidance) scale. Higher values increase adherence to the prompt.

Describe what you do NOT want to appear in the image.

The same seed and the same prompt given to the same version of the model will output the same image every time.

The format of the generated image.

Safety checker can only be disabled on API call

URL or HuggingFace path to the ControlNet model.

Min: 0 - Max: 1

Fraction of the denoising process at which ControlNet conditioning ends.

Min: 0 - Max: 1

Fraction of the denoising process at which ControlNet conditioning starts.

URL of the control image that guides the generation.

Min: 0 - Max: 2

How strongly the ControlNet conditioning is applied.

Optional ControlNet conditioning. Provide a control model path and a control image to guide structure/composition.

Optional list of LoRA weights to apply. Each entry references a LoRA path and an optional scale.

URL or HuggingFace path to the IP-Adapter weights.

How strongly the IP-Adapter conditioning is applied.

URL of the reference image used for IP-Adapter conditioning.

Optional subfolder within the IP-Adapter repository.

Optional specific weight file name within the IP-Adapter repository.

Optional URL of a mask image restricting where IP-Adapter conditioning applies.

Min: 0.01 - Max: 0.99

Threshold used to binarize the IP-Adapter mask.

URL or HuggingFace path to the image encoder.

Optional subfolder within the image encoder repository.

Optional specific weight file name within the image encoder repository.

Optional IP-Adapter image prompting. Provide an adapter path and a reference image to condition generation on that image.

You need to be logged in to run this model and view results.
Log in

Model çıktısı

Output

Generated image output
Generated in 4.879 seconds
Logs (1 lines)

Örnek istekler

Örnekler

Example output 1Example output 2Example output 3

Stable Diffusion 3.5 Large API

Stable Diffusion 3.5 Large is a text-to-image AI model by stability-ai. On ModelRunner it runs through a REST API or via MCP from any AI assistant, at $0.065 per megapixel.

POST https://queue.modelrunner.run/stability-ai/stable-diffusion-v3.5-large

cURL

# Submit a request to the queue. Input fields go at the top level of the
# body. The optional reserved "metadata" object holds your own flat string
# tags — stored on the request, never sent to the model; filter later with
# GET https://queue.modelrunner.run/requests?metadata=<url-encoded JSON>.
curl -X POST https://queue.modelrunner.run/stability-ai/stable-diffusion-v3.5-large \
  -H "Authorization: Key $MRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "loras": [],
    "prompt": "an ornate Victorian greenhouse filled with tropical plants and butterflies, afternoon sunlight streaming through iron…",
    "image_size": "landscape_4_3",
    "output_format": "jpeg",
    "guidance_scale": 3.5,
    "negative_prompt": "",
    "num_inference_steps": 28,
    "enable_safety_checker": true,
    "metadata": {
      "project": "my-project"
    }
  }'
# → { "request_id": "...", "status_url": "...", "response_url": "..." }

# Poll status_url until "COMPLETED", then fetch the result
curl "https://queue.modelrunner.run/stability-ai/stable-diffusion-v3.5-large/requests/$REQUEST_ID/status" \
  -H "Authorization: Key $MRUN_API_KEY"
curl "https://queue.modelrunner.run/stability-ai/stable-diffusion-v3.5-large/requests/$REQUEST_ID" \
  -H "Authorization: Key $MRUN_API_KEY"

JavaScript

import { modelrunner } from "@modelrunner/client";

const result = await modelrunner.subscribe("stability-ai/stable-diffusion-v3.5-large", {
  input: {
    "loras": [],
    "prompt": "an ornate Victorian greenhouse filled with tropical plants and butterflies, afternoon sunlight streaming through iron…",
    "image_size": "landscape_4_3",
    "output_format": "jpeg",
    "guidance_scale": 3.5,
    "negative_prompt": "",
    "num_inference_steps": 28,
    "enable_safety_checker": true
  },
});
console.log(result);

Python

import os
import requests

headers = {"Authorization": f"Key {os.environ['MRUN_API_KEY']}"}

submitted = requests.post(
    "https://queue.modelrunner.run/stability-ai/stable-diffusion-v3.5-large",
    headers=headers,
    json={
      "loras": [],
      "prompt": "an ornate Victorian greenhouse filled with tropical plants and butterflies, afternoon sunlight streaming through iron…",
      "image_size": "landscape_4_3",
      "output_format": "jpeg",
      "guidance_scale": 3.5,
      "negative_prompt": "",
      "num_inference_steps": 28,
      "enable_safety_checker": true
    },
).json()

# Poll submitted["status_url"] until "COMPLETED", then:
result = requests.get(submitted["response_url"], headers=headers).json()

Input parameters

Input parameters of Stable Diffusion 3.5 Large
NameTypeRequiredDescription
promptstringyesThe text prompt describing the image to generate.
image_sizeenumnoThe size of the generated image. Choose a preset (e.g. 'square_hd', 'portrait_16_9') or pass a custom {width, height} object. One of: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9. Default: "landscape_4_3".
num_inference_stepsintegernoThe number of inference steps to perform. More steps can improve detail at the cost of speed. Default: 28.
guidance_scalenumbernoThe CFG (Classifier Free Guidance) scale. Higher values increase adherence to the prompt. Default: 3.5.
negative_promptstringnoDescribe what you do NOT want to appear in the image. Default: "".
seedintegernoThe same seed and the same prompt given to the same version of the model will output the same image every time.
output_formatenumnoThe format of the generated image. One of: jpeg, png. Default: "jpeg".
enable_safety_checkerbooleannoIf set to true, the safety checker will be enabled. Default: true.
controlnetobjectnoOptional ControlNet conditioning. Provide a control model path and a control image to guide structure/composition.
lorasarraynoOptional list of LoRA weights to apply. Each entry references a LoRA path and an optional scale. Default: [].
ip_adapterobjectnoOptional IP-Adapter image prompting. Provide an adapter path and a reference image to condition generation on that image.

Machine-readable: OpenAPI schema · llms.txt

Use Stable Diffusion 3.5 Large from Claude & Cursor (MCP)

Point Claude Code, Claude Desktop, Cursor, or any MCP client at the ModelRunner MCP server and Stable Diffusion 3.5 Large becomes a tool your assistant can call directly — it authorizes via OAuth (no API key in config) and runs this model with the run_model tool using the endpoint stability-ai/stable-diffusion-v3.5-large.

MCP client config (Claude Desktop, Cursor)

{
  "mcpServers": {
    "modelrunner": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.modelrunner.run/mcp"]
    }
  }
}

Claude Code

claude mcp add --transport http modelrunner https://mcp.modelrunner.run/mcp

Then ask your assistant, for example: “Run stability-ai/stable-diffusion-v3.5-large on ModelRunner to generate image”. MCP setup guide.

Model Detayları

Model Detayları

Stable Diffusion 3.5 Large, bir metin prompt’unu yüksek kaliteli bir görsele dönüştürür. Stability AI’ın 8 milyar parametreli amiral gemisi Multimodal Diffusion Transformer (MMDiT) modelidir; güçlü prompt uyumu, doğru tipografi ve fotogerçekçilikten illüstrasyona ve 3D render’lara uzanan geniş bir stil yelpazesi için geliştirilmiştir. Betimleyici bir prompt verin ve bir görsel boyutu seçin; model bir ya da daha fazla görsel döndürür. En güçlü yanları karmaşık prompt’ları anlaması ve stil çeşitliliğidir; bu da onu genel amaçlı text-to-image işleri için güçlü bir varsayılan tercih yapar.

## En uygun olduğu işler - Ayrıntılı bir metin açıklamasından fotogerçekçi sahneler ve portreler - Görsel içinde okunaklı metin, tabela ve tipografi basmak - Pek çok farklı estetikte konsept çizim, illüstrasyon ve stilize render’lar - Bir prompt’tan pazarlama görselleri, ürün mockup’ları ve sosyal medya görselleri - Prompt’a sadık kalmayı gerektiren karmaşık, çok özneli kompozisyonlar

## Şu durumlarda başka bir model seçin - Sıfırdan üretmek yerine mevcut bir görseli düzenlemek, yeniden tarzlamak ya da inpaint etmek istiyorsanız — bir görsel düzenleme modeli kullanın - Mevcut bir görseli büyütmeniz ya da ona detay eklemeniz gerekiyorsa — bir upscaling modeli kullanın - Video ya da animasyon gerekiyorsa — bir text-to-video modeli kullanın

## İpuçları - Özne, mekân, ışık ve stil konusunda net olun; SD 3.5 Large ayrıntılı prompt’ların karşılığını verir - Prompt’a daha sıkı uyum için `guidance_scale` değerini (varsayılan 3.5) 5-7 aralığına doğru yükseltin; daha fazla yaratıcı serbestlik için düşürün - İstenmeyen öğeleri dışarıda bırakmak için `negative_prompt` kullanın (ör. "blurry, extra fingers, watermark") - `image_size` alanına bir hazır ayar ("square_hd", "portrait_16_9", "landscape_4_3", …) verin ya da özel bir `{ width, height }` nesnesi geçin

## Gelişmiş Yapılandırma - `controlnet` — bir ControlNet model yolu ve bir `control_image_url` ile üretimi bir kontrol görseline (yapı/poz/kenarlar) göre koşullandırır. Yalnızca API üzerinden ayarlanır. - `ip_adapter` — bir IP-Adapter yolu üzerinden, isteğe bağlı olarak maskelenmiş bir referans görseli (`image_url`) üretime görsel prompt olarak verir. Yalnızca API üzerinden ayarlanır. - `loras` — özel stiller ya da özneler için bir veya daha fazla LoRA ağırlığı uygular (`path` ile, isteğe bağlı bir `scale` değeriyle). Yalnızca API üzerinden ayarlanır.

ModelRunner JavaScript client ile çalıştırmak için: ```js import { modelrunner } from "@modelrunner/client";

const result = await modelrunner.subscribe("stability-ai/stable-diffusion-v3.5-large", { input: { prompt: "a serene mountain lake at golden hour, mist over the water, photorealistic", image_size: "landscape_4_3", num_inference_steps: 28, guidance_scale: 3.5, }, }); ```