Skip to main content
POST
Gradient Text CSS Generator

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ioSampleText
string

Sample Text

ioFontSize
number

Font Size (px)

Required range: 12 <= x <= 200
ioFontWeight
enum<string>

Font Weight

Available options:
300,
400,
600,
700,
800,
900
ioGradientType
enum<string>

Gradient Type

Available options:
linear,
radial
ioAngle
number

Angle (deg)

Required range: 0 <= x <= 360
ioColor1
string

Color 1

ioPosition1
number

Position 1 (%)

Required range: 0 <= x <= 100
ioColor2
string

Color 2

ioPosition2
number

Position 2 (%)

Required range: 0 <= x <= 100
ioUseColor3
boolean

Add a third color stop

ioColor3
string

Color 3

ioPosition3
number

Position 3 (%)

Required range: 0 <= x <= 100

Response

Tool output

tool
string
required
tool_version
string
required

Output-contract version for this tool. Currently "1" for all tools.

outputs
object
required
credits_used
integer
required

Credits this call consumed, after any settlement refund. 0 when metering is disabled.

request_id
string
credits_remaining
integer | null

Credits left in the current monthly allowance, or null when metering is disabled.