Parameter configuration
Common parameters for all parameter types are String name
, String description
, Boolean required
, Boolean hidden
and Object defaultValue
.
Additional parameters depend on parameter type.
Parameters
Parameter Type | Description | ||
---|---|---|---|
|
Basic text parameter type. Supports all common parameters. |
||
|
Special string type for AI model prompts.
Usually used to render a |
||
|
Numeric parameter type.
Supports all common parameters plus optional |
||
|
Parameter with predefined options.
Requires an additional |
||
|
Special string type for handling URLs or resource links.
Usually used to render a |
||
|
True/false parameter type. Supports all common parameters with boolean values. |
||
|
Complex parameter type for nested configurations in JSON format.
The JSON schema is defined in the
|
||
|
Special string type for handling image URLs. ImageUrl can either be a URL or a base64 encoded image. |
||
|
Special string type for handling base64 encoded images. |
||
|
A list of parameters.
Use
|
||
|
Complex parameter type for nested configurations. Supports all common parameters. This is used for complex input parameters without any specific type.
|
||
'switchable' |
Special parameter type for handling switchable parameters. This can be used when a model or task accepts different types of input in the same parameter. Below a more complex example where an image model allows to either use a preset (type
|