---
title: "Text To Image"
method: POST
path: "/api/v1/aiPhotoshoot/text-to-image"
tags: ["aiPhotoshoot"]
---

# Text To Image

`POST /api/v1/aiPhotoshoot/text-to-image`

## Request

- Base URL: `https://api.brandbooster.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brandbooster.ai/api/v1/aiPhotoshoot/text-to-image`
- Auth: HTTP bearer

Generate image from text prompt using AI models (async).

Args:
    request: TextToImageRequestDTO with prompt, style, and model parameters
    background_tasks: FastAPI background tasks
    db: Database session
    user: User object

Returns:
    dict: Contains task ID for polling

## Request body

- TextToImageRequestDTO
  - `prompt` string, required
  - `style` string, nullable
  - `image_model` string, nullable
  - `domain_id` string, required
  - `aspect_ratio` string, nullable
  - `steps` integer, nullable
  - `seed` integer, nullable
  - `width` integer, nullable
  - `height` integer, nullable
  - `numSamples` integer, nullable
  - `ignore_credits` boolean, nullable
  - `ugc_character` UgcCharacterPayload: Optional UGC character from frontend (id, name, imageUrl).
    - `id` string, required
    - `name` string, required
    - `imageUrl` string, required
  - `product_image` string, nullable
  - `reference_image_url` string, nullable
  - `vertex_model` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

> 37 revisions in range; 1 not diffed.

- **2026-09-28** `461ae7e5d079`: 1 info
  - added the new optional request property `vertex_model`

[Operation history](https://skmtc.dev/brandbooster/apis/brandbooster-api/changes/api/v1/aiPhotoshoot/text-to-image/post.md)

---

[API](https://skmtc.dev/brandbooster/apis/brandbooster-api.md) - [All operations](https://skmtc.dev/brandbooster/apis/brandbooster-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brandbooster/apis/brandbooster-api/revisions/02d28bde684c?raw)
