You're looking at a specific version of this model. Jump to the model overview.
vetkastar /gradient-overlay:6b32dd26
Input schema
The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
image |
string
|
Upload the image to which the gradient will be applied.
|
|
gradient_type |
string
(enum)
|
Options: linear, radial |
Choose the gradient type: linear or radial. Linear gradient changes in one direction, radial changes from center to edges.
|
start_color |
string
|
#000000
|
Starting color of the gradient in HEX format. For example, #FF0000 for red.
|
end_color |
string
|
#FFFFFF
|
Ending color of the gradient in HEX format. For example, #0000FF for blue.
|
angle |
integer
|
0
Max: 360 |
Angle of the gradient in degrees (0 to 360). Applies only to linear gradient. 0 is horizontal, 90 is vertical.
|
opacity |
integer
|
50
Max: 100 |
Overall opacity of the gradient from 0 to 100. 0 is fully transparent, 100 is fully opaque.
|
color_boundary |
integer
|
50
Max: 100 |
Position of the boundary between start and end colors (0 to 100). 0 shows only the end color, 100 shows only the start color, 50 places the boundary in the middle.
|
blur_amount |
integer
|
0
Max: 100 |
Amount of blur applied to the gradient (0 to 100). 0 is no blur, 100 is maximum blur. This affects the softness of the transition between colors.
|
gradient_only |
boolean
|
False
|
If enabled, outputs only the gradient on a transparent background without overlaying on the original image.
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}