# amnt.io SVG Lite – Text to SVG (Fast, Lightweight)

> amnt.io SVG Lite – Text to SVG (Fast, Lightweight) is a paid API for AI agents from amnt.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Generates clean, layered SVG code from a text prompt in ~8 seconds, optimized for simple icons, charts, patterns, and flat backgrounds.

## Facts

- Endpoint: POST https://amnt.io/api/agent/amnt/svg-lite?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amnt-io-svg-lite-text-to-svg-fast-lightweight-67f8d1b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MlZ29mt3zGQdAMdwfvQAX

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-io-svg-lite-text-to-svg-fast-lightweight-67f8d1b3 -d '<json body>'
```

Example prompt: Generate a flat-style SVG icon of a camera in a 1:1 square format, and also give me a PNG version.

## When to prefer this

Choose this endpoint when you need fast, lightweight SVG generation for simple use cases like icons, logos, flat backgrounds, charts, or patterns, and speed (~8s) matters more than photorealistic or highly detailed output. Prefer the heavier AMNT SVG model for complex mascots, characters, or NFT art. This endpoint is ideal for programmatic UI asset generation at $0.01/call.

## Known failure modes

- Prompt too long (>2000 chars) — returns validation error
- Unsupported aspect ratio format — returns error
- Invalid style enum value — returns validation error
- Generation timeout — service may return error after ~8s if model fails
- Unsupported format string — silently ignored or returns error

## How this service works

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.

## Output

Returns a JSON object containing: the generated SVG as clean, script-free code with each part as its own named layer; a public URL to the SVG; the time taken in milliseconds; the model name used; and links to any additionally requested formats (PNG, PDF, EPS, DXF, WebP, JPG, icons, small).

## 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": {
      "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 SV
… (truncated)
```

## More

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