{"uid":"cap_ZPSvwkSitjtQelJW2Qamg","slug":"svg-lite-text-to-svg-generator-7910bb63","name":"SVG Lite – Text-to-SVG Generator","description":"Text to SVG code in about 8 seconds. Best for simple icons, charts, patterns and flat backgrounds. Returns clean SVG, each part its own layer.","url":"https://svg-lite.agent.amnt.io/api/agent/amnt/svg-lite?utm_source=zero.xyz","method":"POST","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":{"type":"object","required":["prompt"],"properties":{"style":{"enum":["auto","icon","logo","flat","illustration","pixel"],"type":"string","default":"auto","description":"Style"},"aspect":{"type":"string","default":"1:1","examples":["1:1"],"maxLength":12,"description":"\"auto\", a preset (1:1, 4:5, 3:4, 2:3, 9:16, 1:2, 5:4, 4:3, 3:2, 16:9, 2:1) or any W:H up to 3:1. Same price in every shape."},"prompt":{"type":"string","examples":["a camera icon"],"maxLength":2000,"description":"What to draw, in plain words."},"formats":{"type":"string","examples":["pdf,png"],"maxLength":80,"description":"Any of png, pdf, eps, dxf, icons, small, webp, jpg. Comma separated. SVG always comes back."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ms":{"type":"integer","description":"Time taken."},"ran":{"type":"string","description":"The model that made it (Auto picks one per request)."},"svg":{"type":"string","description":"The SVG, as clean code: real shapes, strokes and editable text. No scripts, no outside links."},"url":{"type":"string","description":"A public link to the same SVG."},"files":{"type":"object","description":"Links to any extra formats asked for."},"model":{"type":"string","description":"The AMNT SVG model asked for."},"layers":{"type":"array","description":"Each part as its own named layer."}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/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_U2cBduRI_6T-sOJtItPhy","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 a plain-text prompt into clean, layered SVG code (and optionally PNG, PDF, EPS, DXF, WebP, JPG) in about 8 seconds, optimised for icons, charts, patterns and flat backgrounds.","exampleAgentPrompt":"Generate a flat-style SVG of a camera icon in a 1:1 square aspect ratio, and also give me a PNG version.","exampleUseCases":[{"title":"App icon asset from description","prompt":"Create a flat-style SVG icon of a lightning bolt for my mobile app, square format, and export a PNG version too so I can use it right away."},{"title":"Decorative background pattern","prompt":"Generate a repeating geometric pattern SVG — think interlocking hexagons in a flat style — in a 16:9 landscape aspect ratio, suitable for a website hero background."},{"title":"Simple logo concept for startup","prompt":"Make me a simple SVG logo concept for a coffee brand called Morning Bloom — use the icon style, square format, and give me a PDF copy as well."}],"resultDescription":"Returns a JSON object containing the generated SVG as clean inline code (real shapes, strokes, editable text — no scripts or external links), a public URL to the SVG file, an array of named layers (one per visual element), links to any additionally requested formats (png, pdf, eps, dxf, webp, jpg), the model variant used, and the time taken in milliseconds.","failureModes":["Prompt too long (>2000 chars) — request rejected with validation error","Invalid aspect ratio string — falls back to 1:1 or returns error","Unsupported format string in formats field — unknown formats silently ignored or error returned","Generation timeout if model is overloaded — may return partial or error response","Ambiguous or overly complex prompts may produce unexpected or low-quality SVG","Payment failure (x402) — request blocked before generation begins"],"whenToPreferThis":"Choose this endpoint when you need a scalable vector graphic generated from a text description quickly (~8 s) and cheaply ($0.01), especially for simple subjects like icons, logos, flat illustrations, charts or repeating patterns. It stands out by returning clean, script-free SVG with every visual element isolated as its own named layer, making the output directly editable in design tools. Prefer it over raster image generators when you need resolution-independent output, over full illustration AI when simplicity and speed matter, and when you also need multi-format exports (PNG, PDF, EPS, DXF) in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:35:36.206Z","isFirstParty":false,"canonicalSlug":"svg-lite-text-to-svg-generator-7910bb63"}