latestOpenAPI 3.0.02026-08-10380208.8 KB

806c6d31631b

Dataset

Generate Visual Schema

Generates a structured JSON visual schema (backbone) based on the provided sample images.

The visual schema represents mutual characteristics (style, IP, colors, etc.) across training images and is used for:

  1. Caption generation during image upload.
  2. Prompt translation (user text → structured prompt) during generation.

Usage:

  • Provide 5-10 representative images of your style/IP.
  • The returned visual_schema string must be added to your dataset using PUT /tailored-gen/datasets/{dataset_id}.

This endpoint supports content moderation via an optional parameter.

post/tailored-gen/generate_visual_schema

Headers

api_tokenstring required

Request body

imagesstring[] required

An array of 5-10 images. Supports base64-encoded strings or public URLs. Supported formats are png, jpg, jpeg, webp.

content_moderationboolean

Response

Successfully generated visual schema.

visual_schemastring

A string containing the structured JSON visual schema.