latestOpenAPI 3.0.02026-08-10380208.8 KB

806c6d31631b

Image Generation

Generate Image - Tailored Model

Description

Generates a new image using a tailored model.

This endpoint translates your input (prompt and/or structured_prompt) into a structured JSON prompt using the state-of-the-art Gemini 2.5 Flash VLM bridge. It internally uses the model's visual schema (backbone) to ensure the generated image matches your trained visual identity.

The response includes both the final image_url and the structured_prompt (JSON).

Input Combination Rules The request body must include one of the following mutually exclusive combinations:

  • prompt: Generates a new image from text.
  • structured_prompt: Recreates a previous image exactly (requires seed).
  • structured_prompt + prompt: Refines a previous image using new text instructions.
post/image/generate/tailored

Headers

api_tokenstring required

Request body

tailored_model_idstring required

The ID of the tailored model.

tailored_model_influencenumber float

Controls the strength of the tailored model's influence (0.0 - 1.5).

promptstring

Text-based instruction for generation or refinement.

structured_promptstring

A string containing the structured prompt in JSON format for precise recreation/refinement.

negative_promptstring

Concepts to exclude from the generated image.

guidance_scaleinteger

Adherence to the prompt (3-5).

aspect_ratio'1:1' | '2:3' | '3:2' | '3:4' | '4:3' | '4:5' | '5:4' | '9:16' | '16:9'
steps_numinteger
seedinteger

Seed for deterministic generation.

syncboolean

If false, returns a 202 and status URL. If true, returns 200 with result.

prompt_content_moderationboolean
visual_output_content_moderationboolean

Response

Successful operation (Synchronous).

image_urlstring
structured_promptstring