# AMNT Text-to-SVG Generator

> AMNT Text-to-SVG Generator is a paid API for AI agents from www.amnt.io, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-12).

Converts a plain-text prompt into a clean, editable SVG with optional PNG, PDF, DXF exports and a quality score

## Facts

- Endpoint: POST https://www.amnt.io/api/agent/amnt/text-to-svg?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amnt-text-to-svg-generator-69744e7a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_df9hnwfZ8dzkOPi0HgJqY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability amnt-text-to-svg-generator-69744e7a -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amnt-text-to-svg-generator-69744e7a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.amnt.io](https://www.zero.xyz/host/www.amnt.io/llms.txt)
