vetkastar / gradient-overlay

  • Public
  • 1.5K runs

Run vetkastar/gradient-overlay with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

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.
start_color
string
Starting color of the gradient in HEX format (e.g., #FF0000 for red). Leave empty for transparent.
end_color
string
Ending color of the gradient in HEX format (e.g., #0000FF for blue). Leave empty for transparent.
angle
integer
0

Max: 360

Angle of the gradient in degrees (0 to 360).
opacity
integer
50

Max: 100

Overall opacity of the gradient from 0 to 100.
color_boundary
integer
50

Max: 100

Position of the boundary between start and end colors (0 to 100).
gradient_only
boolean
False
If enabled, outputs only the gradient 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
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}