---
title: "flux generate image"
method: POST
path: "/flux/v1/{model}"
---

# flux generate image

`POST /flux/v1/{model}`

## Path parameters

- `model` string, required

## Headers

- `Content-Type` string

## Request body

- object
  - `prompt` string, required — Text prompt describing the image to generate.
  - `image_prompt` string — URL of a reference image to guide the generation style or content.
  - `width` integer — Output image width in pixels. Must be a multiple of 32. Range varies by model.
  - `height` integer — Output image height in pixels. Must be a multiple of 32. Range varies by model.
  - `steps` integer — Number of diffusion steps. Higher values improve quality but increase latency.
  - `prompt_upsampling` boolean — When `true`, automatically enhances the prompt for more detailed results.
  - `seed` integer — Random seed for reproducible outputs. Omit for random generation.
  - `guidance` number — Guidance scale controlling how closely the output follows the prompt. Higher values increase prompt adherence.
  - `safety_tolerance` integer — Safety filter tolerance level. Higher values are more permissive. Range: 0–6.
  - `interval` integer — Diversity interval. Higher values produce more varied outputs at the cost of prompt adherence.
  - `output_format` string — Output image format. Supported values: `jpeg`, `png`.
  - `webhook_url` string — URL to receive a POST notification when the task completes.
  - `webhook_secret` string — Secret string included in webhook payloads for request verification.

## Response `200`

OK

- object
  - `id` string
  - `polling_url` string

---

[API](https://skmtc.net/deerapi/apis/text-to-audio-api.md) · [All operations](https://skmtc.net/deerapi/apis/text-to-audio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deerapi/text-to-audio-api/versions/b6265ced74a1/schema)
