---
title: "POST /v1/images/generations"
method: POST
path: "/v1/images/generations"
tags: ["images"]
---

# POST /v1/images/generations

`POST /v1/images/generations`

Generate an image synchronously using the provided input and model parameters.

## Request body

- object — Standard OpenAI image generation response containing the generated image and metadata.
  - `n` 1
  - `seed` number
  - `size` string
  - `style` string
  - `model` 'Flux.1 [dev]', required
  - `stream` boolean
  - `prompt` string, required
  - `guidance_scale` number
  - `inference_steps` number
  - `response_format` 'url' | 'b64_json'

## Response `200`

Returns the generated image url or base64 string.

- object[] — Returns the generated image url or base64 string.
  - `url` string
  - `b64_json` string
  - `revised_prompt` string, required

## Other responses

- `400` — Default Response
- `404` — Default Response
- `500` — Default Response

---

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