---
title: "Generate Image"
method: POST
path: "/chat/generate-image"
tags: ["chat"]
---

# Generate Image

`POST /chat/generate-image`

Generate a character image using the MegaNova image generation API

## Request body

- GenerateImageRequest
  - `prompt` string, required
  - `model` string, nullable
  - `negative_prompt` string, nullable
  - `num_steps` integer, nullable
  - `sampling_steps` integer, nullable
  - `num_inference_steps` integer, nullable
  - `guidance_scale` number, nullable
  - `width` integer, nullable
  - `height` integer, nullable
  - `seed` integer, nullable
  - `image` string, nullable
  - `images` string[], nullable
  - `strength` number, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
