{"uid":"cap_mqo3Ucyws5OMj_ogaQ2nH","slug":"glianaai-code-image-tool-8702e0be","name":"GlianaAI Code-Image Tool","description":"GlianaAI - pay-per-call AI models, live market data and identity APIs (90+ models incl. LLM chat), no signup, USDC. This resource: tools/code-image. Render a syntax-highlighted code snippet as an image. 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. https://ai.glianalabs.com","url":"https://api.glianalabs.com/x402/tools/code-image","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"tool":"tools/code-image"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_X0QXlTSmwxIEIFVkVEac_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates or retrieves a code-related image via GlianaAI's pay-per-call inference platform, settled in USDC with no API key required.","exampleAgentPrompt":"Can you turn this Python snippet into a clean, shareable code image using GlianaAI? I'll pay $0.02 USDC per call — no API key needed, just settle via x402.","exampleUseCases":null,"resultDescription":"Returns a JSON response confirming the tool used (tools/code-image) along with the generated image output, such as a rendered or styled visual representation of code content.","failureModes":["Missing required 'input' field returns validation error","Invalid 'method' value (must be GET) causes rejection","Malformed body or unsupported bodyType enum causes parse error","Insufficient USDC balance or failed x402 payment results in 402 Payment Required","Network timeout on inference backend returns 5xx error"],"whenToPreferThis":"Choose this endpoint when you need to generate a visual image from code content without managing API keys or subscriptions, and when your agent can settle micropayments in USDC via x402 protocol on Base, Tempo, or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:57:59.284Z","isFirstParty":false}