{"uid":"cap_J9o-CvAKakPFkxPT8aFoU","slug":"api2ls-com-601a362c","name":"api2ls SVG to PNG Converter","description":"","url":"https://api2ls.com/api/svg2png","method":"POST","headers":{},"bodySchema":{"type":"object","required":["svg","width","height"],"properties":{"svg":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1KbyfuuEdImSyrrTZUbgk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an SVG string to a PNG image at specified width and height dimensions","exampleAgentPrompt":"Convert this SVG markup to a PNG image at 800 pixels wide and 600 pixels tall: <svg xmlns='http://www.w3.org/2000/svg'><circle cx='50' cy='50' r='40' fill='red'/></svg>","exampleUseCases":null,"resultDescription":"Returns a PNG image file rendered from the provided SVG string at the specified width and height dimensions","failureModes":["Invalid or malformed SVG string — returns error indicating parsing failure","Missing required fields (svg, width, height) — returns validation error","Width or height values of zero or negative — may return error or empty image","Extremely large dimensions may cause timeout or memory error","Payment failure via x402 protocol — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to programmatically rasterize SVG content to PNG at a specific resolution, especially within automated workflows where you have SVG markup as a string. Prefer this over client-side rendering when server-side consistency is required or the environment doesn't support SVG natively.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:37:37.875Z","isFirstParty":false}