{"uid":"cap_df9hnwfZ8dzkOPi0HgJqY","slug":"amnt-text-to-svg-generator-69744e7a","name":"AMNT Text-to-SVG Generator","description":"Text to clean, editable SVG. Send a prompt; get back the SVG, a link, extra files (PNG, PDF, DXF) and a quality score. Any shape up to 3:1. About 35 s.","url":"https://www.amnt.io/api/agent/amnt/text-to-svg?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":{"mode":{"enum":["stacked","cutout"],"type":"string","default":"stacked","description":"Shapes"},"style":{"enum":["auto","flat","icon","logo","illustration","pixel"],"type":"string","default":"auto","description":"Flat, icon and logo trace cleanest."},"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."},"colors":{"type":"integer","maximum":64,"minimum":2,"examples":["32"],"description":"Cap the palette. Leave empty for automatic."},"detail":{"enum":["low","medium","high"],"type":"string","default":"medium","description":"How much small detail survives. Medium is clean and smooth."},"prompt":{"type":"string","examples":["a friendly fox mascot waving"],"maxLength":2000,"description":"What to draw, in plain words."},"formats":{"type":"string","examples":["pdf,png,dxf"],"maxLength":80,"description":"Any of png, pdf, eps, dxf, icons, small. Comma separated. SVG always comes back."},"background":{"enum":["transparent","keep"],"type":"string","description":"Transparent removes a plain backdrop cleanly, with no white ring."}}},"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."},"svg":{"type":"string","description":"The SVG document. Only <g> groups and filled <path>s: no scripts, no embedded bitmap."},"url":{"type":"string","description":"A public link to the same SVG."},"files":{"type":"object","description":"Links to any extra formats asked for: png, pdf, eps, dxf, icons (zip), small (simplified SVG)."},"paths":{"type":"integer","description":"Number of paths."},"score":{"type":"object","description":"How close the SVG is to the source picture: fidelity (0-1, higher is better), edge (colour error on edges, lower is better), holes and spill (per mille, lower is better)."},"width":{"type":"integer","description":"Display width in pixels. The picture's own shape is kept."},"colors":{"type":"array","description":"Every fill colour used, most used first."},"height":{"type":"integer","description":"Display height in pixels."}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JgNGhQvvWsxOiV3IuhcVc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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 a clean, editable SVG with optional PNG, PDF, DXF exports and a quality score","exampleAgentPrompt":"Draw me a friendly fox mascot waving as a clean SVG — flat style, square format, transparent background, medium detail, and also export a PNG and PDF while you're at it.","exampleUseCases":[{"title":"App icon SVG from description","prompt":"Generate a flat-style SVG icon of a lightning bolt inside a shield for my app — square format, transparent background, medium detail, and cap the palette at 8 colors."},{"title":"Laser-cutter DXF from prompt","prompt":"I need a SVG and DXF file of a geometric mountain range silhouette in a 2:1 wide format, high detail, stacked shapes, so I can use it for laser cutting."},{"title":"Logo vector for brand","prompt":"Create a logo SVG of a coffee cup with steam rising from it — icon style, 1:1 aspect ratio, keep the background, medium detail, and give me a PNG export too."}],"resultDescription":"Returns a JSON object containing the full SVG markup (clean paths and groups, no scripts or embedded bitmaps), a public URL to the generated SVG, optional file URLs for PNG/PDF/DXF formats if requested, a quality score for the generation, and the processing time in milliseconds.","failureModes":["Invalid or empty prompt returns validation error","Unsupported aspect ratio format (beyond 3:1 limit) returns error","Requested output format not in allowed list returns error","Color count outside 2–64 range returns validation error","Generation timeout if server is overloaded (typical time ~35s)","Prompt too long (over 2000 characters) rejected","Payment failure returns 402 if x402 payment not provided"],"whenToPreferThis":"Choose this endpoint when you need a clean, editable vector SVG generated purely from a text description, especially when you also need derivative formats like PNG, PDF, or DXF in the same call. Prefer it over raster image generators when editability, scalability, or CNC/laser-cutting compatibility (DXF) is required. It is purpose-built for logos, icons, mascots, and flat illustrations and returns structured SVG with no embedded bitmaps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:44:21.301Z","isFirstParty":false,"canonicalSlug":"amnt-text-to-svg-generator-69744e7a"}