Skip to main content

Schema panel

The Schema panel is generated from the selected model schema. The panel header shows these elements:
ElementWhat it shows
Schema titleThe schema section label
Field count badgeTotal number of fields for the current model
Copy buttonCopies the full schema JSON
The endpoint row under the header shows:
ElementExample
Method badgePOST
Path/v1/generate/image/bfl/flux-schnell
Required countn required
Optional countn optional
Each field row can show:
Row elementWhat it means
Field nameActual request property name
Type badgeField type such as string, number, boolean, or array
required badgeThe field must be present before sending
DescriptionHuman-readable field explanation
Constraint rowmin, max, default, and enum values when available

Request Body panel

The Request Body panel uses the same current endpoint path and lets you edit the payload interactively. The header includes these actions:
ElementWhat it does
Request Body titleLabels the form area
Method badgeShows POST
Route badgeShows /v1/generate/{model_type}/{model_identifier}
Copy buttonCopies the current request JSON
Reset buttonResets all fields for the current model

Field input behavior

The page renders form controls based on the field type.
Field typeUI behavior
StringText input or textarea depending on the field
NumberNumeric text input with custom stepper buttons
BooleanToggle-style control
EnumSelect control with allowed values
Array URL fieldMulti-row URL list with add and remove controls

Validation rules used by the page

Before sending, the page validates the request body against the current model schema and additional safety rules.
Validation areaRule
Allowed keysUnknown keys are ignored and not sent
String lengthStandard string fields are capped at 10,000 characters
Prompt lengthgeneration_prompt is capped at 5,000 characters
Number valuesMust be finite and stay within the field min and max when defined
Enum valuesMust match one of the field enum values
URL fieldsMust be valid public https:// URLs
URL arraysOnly valid public https:// URLs are kept
Array sizeArray fields are capped by the field max or the page default max

Model selector

The model selector is searchable and uses the actual model_identifier values available to the page. The dropdown includes these behaviors:
BehaviorWhat happens
Search inputFilters the visible model list as you type
Keyboard navigationSupports ArrowDown, ArrowUp, Enter, and Escape
Vendor iconShows an inline vendor icon for supported model prefixes
Empty search stateShows No models found.
The model catalog is auto-derived from the real model schemas used by the app. When BabySea adds a model schema to the catalog, the playground picks it up automatically. For the model list itself and model-level capabilities, visit the model schema page.