Code Image
Render a syntax-highlighted code snippet as an image.
Call it
The first response is 402 with the exact price and every rail you can
pay with. Pay, repeat the request with the proof, and you get the result.
curl -X POST https://api.glianalabs.com/v1/tools/code-image \
-H 'content-type: application/json' \
-d '{"code":"const x = 42;","title":"app.js"}'When to use it
Use when an agent shares code somewhere that cannot display a code block. Inputs: code (required), title (filename shown in the window bar), language (for highlighting, e.g. ts, py). Returns url and contentType of the PNG.
What it costs
$0.0200 per successful call — flat, with no plan, minimum or monthly fee. A call that fails validation is refused before it runs, so it is never charged.
Not sure this is the right endpoint? GET /v1/consult?intent=… is
free and answers that.
Often used with this
Card
$0.0200Render a social card in a chosen aspect ratio.
OG Image
$0.0200Render a branded 1200x630 social card. Use when an agent publishes a page or post and needs a preview image so the link does not share as a bare URL.
Screenshot
$0.0050Capture a rendered web page as a PNG. Use when an agent needs to show a page rather than read it — a preview, a visual diff, evidence of what a site displayed.