Skip to content
GET /v1/meta

Spec

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/gradient-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/gradient-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gradient-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gradient-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/gradient-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "name": "Gradient API",
        "notes": "Interpolating in lab/lch/oklab/oklch is perceptually smoother than rgb. Colours accept hex (#rgb, #rrggbb) or CSS names.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/scale",
                "params": {
                    "mode": "rgb|lrgb|hsl|hsv|lab|lch|oklab|oklch, default lab",
                    "steps": "2-256, default 7",
                    "colors": "comma-separated stops (required)"
                },
                "returns": "array of N hex colours"
            },
            {
                "path": "/v1/interpolate",
                "params": {
                    "t": "0-1 (required)",
                    "mode": "colour space, default lab",
                    "colors": "exactly two stops (required)"
                },
                "returns": "a single interpolated colour"
            },
            {
                "path": "/v1/css",
                "params": {
                    "type": "linear|radial",
                    "angle": "degrees (linear, default 90)",
                    "colors": "comma-separated stops (required)"
                },
                "returns": "a CSS gradient string + stops"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Generate colour gradients and scales — interpolate between colour stops in a chosen colour space, produce evenly-spaced colour scales, and build ready-to-use CSS gradient strings. Powered by chroma-js. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-02T16:51:48.693Z",
        "request_id": "6a3c718b-30a9-473d-a01c-9a943b6371ac"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}