The playground
Try any of 919 endpoints — live.
Pick an endpoint, load a working example, tweak the params, and send — no signup to try. Results render the way the data deserves; raw JSON, headers & code are one tab away.
Playground demo key · api.reefapi.com
post/asset-generate/v1/code_image2 credits
Render a syntax-highlighted code snippet as a PNG with a carbon/ray.so-style window frame. 500+ languages (Pygments), 40+ themes, optional line numbers. Returns an IMAGE (unlike the deprecated NeutrinoAPI code-highlight which only returns HTML).
Working example
Parameters
The source code to render.
Language for highlighting (python, javascript, go, rust, sql…). Omit to auto-detect.
Color theme (Pygments style).
Frame: dark/darker/light window chrome with traffic-light dots, or 'none' for a bare image.
Show line numbers in the gutter.
Font size in px. (10–48)
request preview
curl -X POST https://api.reefapi.com/asset-generate/v1/code_image \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"code":"print('hello')","language":"python"}'Hit Send to run this endpoint live.