---
title: "Generate Structured Prompt - Tailored Model"
method: POST
path: "/structured_prompt/generate/tailored"
tags: ["Image Generation"]
---

# Generate Structured Prompt - Tailored Model

`POST /structured_prompt/generate/tailored`

**Description**

Creates a new detailed, machine-readable structured prompt in JSON format or refines an existing one using text inputs and a tailored model's visual schema (backbone).

This endpoint uses the state-of-the-art **Gemini 2.5 Flash** VLM bridge. The tailored model's visual schema is provided as input to Gemini along with the user prompt to generate the structured prompt.

**It returns ONLY the JSON string and does not generate an image.**

**Use Cases:**
* **Control & Auditability:** Inspect or programmatically edit the JSON *before* generating an image.
* **Consistency:** Generate one `structured_prompt` and pass it to `/image/generate/tailored` multiple times.
* **Hybrid Deployment:** Use Bria's VLM bridge via API while hosting the FIBO image model on a private cloud.

**Input Combination Rules**
The request body must use exactly one of the following combinations:
* **Text Only**: `prompt`
* **Structured Prompt and Text**: `structured_prompt` and `prompt` (Refinement)

## Headers

- `api_token` string, required

## Request body

- object
  - `tailored_model_id` string, required — The ID of the tailored model.
  - `prompt` string — Text-based instruction.
  - `structured_prompt` string — JSON string from a previous response for refinement.
  - `seed` integer — Seed for deterministic generation.
  - `sync` boolean — If false, returns 202. If true, returns 200.
  - `prompt_content_moderation` boolean

## Response `200`

Successful operation (Synchronous).

- object
  - `structured_prompt` string — The generated structured prompt JSON string.

## Other responses

- `202` — Accepted (Asynchronous).
- `400` — Bad request. Invalid parameters.
- `403` — Forbidden. Model does not belong to organization.
- `422` — Unprocessable Entity (Moderation failure).
- `429` — Request limit exceeded.
- `500` — Internal Server Error.

---

[API](https://skmtc.net/bria-ai/apis/tailored-generation-api-reference.md) · [All operations](https://skmtc.net/bria-ai/apis/tailored-generation-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bria-ai/tailored-generation-api-reference/revisions/806c6d31631b/schema)
