latestOpenAPI 3.0.02026-08-10380208.8 KB

806c6d31631b

Image Generation

Generate Structured Prompt - Tailored Model

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)
post/structured_prompt/generate/tailored

Headers

api_tokenstring required

Request body

tailored_model_idstring required

The ID of the tailored model.

promptstring

Text-based instruction.

structured_promptstring

JSON string from a previous response for refinement.

seedinteger

Seed for deterministic generation.

syncboolean

If false, returns 202. If true, returns 200.

prompt_content_moderationboolean

Response

Successful operation (Synchronous).

structured_promptstring

The generated structured prompt JSON string.