format · svg

SVG Generation

Scalable vector graphics

Generate clean, optimized SVG files from natural language prompts. Ideal for logos, icons, and illustrations that need to scale across any resolution.

Features

Optimized output

Output paths are cleaned and minimized — no bloat, no unnecessary attributes.

Full color control

Supply a color scheme to constrain generation to your brand palette.

Transparent background

SVGs default to transparent backgrounds.

Custom dimensions

Set arbitrary viewBox dimensions; SVGs scale infinitely regardless.

Example Request

bash
curl -X POST https://api.assetforge.io/v1/generate \
  -H "Authorization: Bearer af_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "abstract geometric lettermark for a fintech app",
    "formats": ["svg"],
    "style": "minimal",
    "color_scheme": ["#FF6B1A", "#06080c"],
    "background": "transparent"
  }'

Example Response

json
{
  "assets": [
    {
      "format": "svg",
      "url": "https://cdn.assetforge.io/.../logo.svg",
      "size_bytes": 2456
    }
  ]
}

NOTES

  • SVG files are returned as clean XML — no embedded raster images.
  • Use the style parameter to guide visual complexity.