---
title: "Run a prompt through Stable Diffusion"
method: POST
path: "/stable_diffusion/"
tags: ["Stable Diffusion"]
---

# Run a prompt through Stable Diffusion

`POST /stable_diffusion/`

Provide a prompt and optionally a negative prompt. The input will be run through Stable Diffusion to return an output image.

## Request body

- RoutersStableDiffusionPrompt
  - `prompt` string, required
  - `negative_prompt` string, nullable, required
  - `model` string
  - `count` integer
  - `steps` integer
  - `guidance_scale` number
  - `width` integer
  - `height` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/texel/apis/texel-api.md) · [All operations](https://skmtc.dev/texel/apis/texel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/texel/texel-api/revisions/b728014efdc8/schema)
