You're looking at a specific version of this model. Jump to the model overview.

vetkastar /gradient-overlay:f9bc8c39

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_ratio
integer
50

Max: 100

Balance between start and end colors (0 to 100). 0 shows only the start color, 100 shows only the end color.
sharpness
integer
50

Max: 100

Sharpness of the transition between colors (0 to 100). 0 is a very smooth transition, 100 is a sharp transition.
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'}