---
title: "Generate Gallery Image"
method: POST
path: "/image/v1/generate_gallery_image"
tags: ["Image Generation"]
---

# Generate Gallery Image

`POST /image/v1/generate_gallery_image`

Creates a personalized gallery-style image based on an identity image and a descriptive prompt.

It is ideal for generating visually appealing images with particular human identity
that align with specific themes or contexts, making it suitable
for applications like personalized marketing, content creation, and more.

## Headers

- `X-Request-Id` string

## Request body

- GalleryImageRequestSchema
  - `identity_image_b64` string, required — Human appearance to generate image with as Base64 string.
  - `prompt` string, required — Text prompt describing an image to generate.
  - `model_name` 'persona-2' | 'persona-3' — Model to use for image generation.
  - `style` 'realistic' | 'anime' — Artistic style for generating the gallery image. If not specified, the style is automatically detected based on the identity image.
  - `nsfw_policy` 'filter' | 'allow' — Policy for handling NSFW content.

## Response `200`

Successful Response

- GalleryImageResponseSchema
  - `image_b64` string, required — Image encoded in Base64 format
  - `contains_nsfw` boolean, required — Flag indicating if the image contains NSFW content

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/exh/apis/ex-human.md) · [All operations](https://skmtc.dev/exh/apis/ex-human/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/exh/ex-human/revisions/cd3ee850caf2/schema)
