Skip to main content
POST
Generate synthetic color data

Authorizations

Authorization
string
header
required

Bearer token authentication. Use format: Bearer YOUR_API_KEY

Body

application/x-www-form-urlencoded
count
string

Number of color records to generate (1-100). Passed as string but must be numeric.

Pattern: ^[1-9]\d?$|^100$
Example:

"10"

locale
string

Locale for generated data (e.g., en, es, fr, de, pt_BR, zh_CN)

Example:

"en"

seed
string

Seed for deterministic generation. Same seed produces same results.

Example:

"12345"

method
enum<string>

Color generation method. Defaults to profile.

Available options:
profile,
cmyk,
colorByCSSColorSpace,
cssSupportedFunction,
cssSupportedSpace,
hsl,
human,
hwb,
lab,
lch,
rgb,
space
Example:

"profile"

format
enum<string>

Output format for supported color methods. hex is supported only by rgb and profile.

Available options:
decimal,
css,
binary,
hex
Example:

"css"

includeAlpha
enum<string>

Include alpha in rgb, hsl, or profile output.

Available options:
true,
false
Example:

"false"

casing
enum<string>

Hex output letter casing for rgb or profile output.

Available options:
upper,
lower
Example:

"upper"

prefix
string

Hex output prefix for rgb or profile output. Maximum 4 characters.

Maximum string length: 4
Example:

"#"

cssColorSpace
enum<string>

CSS color space for colorByCSSColorSpace or profile output.

Available options:
sRGB,
display-p3,
rec2020,
a98-rgb,
prophoto-rgb
Example:

"display-p3"

Response

Successfully generated color data

status
enum<string>
required
Available options:
success
data
object
required
performance
object