Spiral gives your agent every tool with one account. Browse the tools →

Amp · Image

How to Use Image to SVG in Amp

Image to SVG turns existing raster artwork into scalable vector graphics for logos, icons, and illustrations. Use curved tracing for rounded artwork or straight-line tracing for angular designs, then check the result against the original.

Prompts to try with Image to SVG in Amp

Copy an example into Amp, or ask in your own words.

Use Image to SVG on public/logo.png, then preview the result in our header at mobile and desktop sizes.

Image to SVGAmp
Try asking
  • Convert assets/badge.png with Image to SVG using curved tracing, then compare its rounded contours with the original.

  • Use Image to SVG on assets/geometric-mark.png with straight-line tracing, then show an enlarged comparison of the corners.

  • Trace assets/ink-symbol.png with Image to SVG in black and white, then inspect it in our existing icon component.

  • Use Image to SVG on assets/scanned-emblem.png with speckle filtering, then flag any small details that need review.

How to set up Image to SVG in Amp

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    No header and no client ID or secret: Amp registers itself with Spiral.

    amp mcp add spiral https://api.spiral.ai/mcp
  2. Sign in

    Start amp. Amp opens Spiral's sign-in page in your browser: sign in, pick the organization and click Authorize. No API key.

  3. Check it
    amp mcp doctor

Use the Spiral skill

  1. Send Amp this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Image to SVG

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "fal",
        "model": "fal-ai/image2svg",
        "input": {
          "image_url": "https://v3.fal.media/files/kangaroo/EfqY747bBKy1Ynrgbk5ba_04pwiD1LTsnMZuyEyw757_8f986248a89845d3ba90c23b14089f10.jpg"
        }
      }'

Then paste one of the prompts above: Amp finds Image to SVG on Spiral, shows the price and runs it.

Image to SVG providers and prices

Spiral runs Image to SVG through fal. Open a card for today's price, with every fee included.

falImage
Image to SVG
fal-ai/image2svg

Settings you can ask for

Image to SVG works from your image URL. Ask Amp for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Colormodecolor or binarycolor

Choose between color or binary (black and white) output

Hierarchicalstacked or cutoutstacked

Hierarchical mode: stacked or cutout

Modespline or polygonspline

Mode: spline (curved) or polygon (straight lines)

Filter speckle0 to 204

Filter out small speckles and noise

Color precision1 to 106

Color quantization level

Layer difference1 to 3216

Layer difference threshold for hierarchical mode

Corner threshold0 to 18060

Corner detection threshold in degrees

Length threshold0 to 104

Length threshold for curves/lines

Max iterations1 to 2010

Maximum number of iterations for optimization

Splice threshold0 to 9045

Splice threshold for joining paths

Path precision1 to 103

Decimal precision for path coordinates

Every API field of Image to SVG is on its tool page: open its card above.

What can you do with Image to SVG in Amp?

Turn raster artwork in your project into editable SVG assets. Have the coding agent preview the trace in the interface and compare it with the source before replacing an asset.

Resize an existing logo

Convert a raster logo into SVG, then inspect its contours before using it across different layouts.

Recover editable interface icons

Trace existing icon images into vectors for inspection and further editing in drawing software.

Prepare monochrome artwork

Convert an existing illustration to black-and-white SVG for a single-color design draft.

Trace geometric symbols

Use straight-line tracing on angular source artwork, then check corners against the original.

Convert rounded badge artwork

Use curved tracing on a raster badge and review its outer contour and interior shapes.

Reuse diagram symbols

Convert individual raster symbols into SVG assets that you can resize and arrange in a diagram.

Clean up speckled artwork

Try speckle filtering during conversion, then compare small details with the source before accepting the trace.

Questions about Image to SVG in Amp

Can Amp use Image to SVG?

Yes. Add Spiral to Amp as an MCP server, and Amp can find and run Image to SVG like any built-in tool.

How much does Image to SVG cost in Amp?

$0.0065 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Amp plan is separate.

Do I need a fal account to use Image to SVG in Amp?

No. Spiral runs Image to SVG on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Image to SVG in Amp?

About two minutes: add the server, then sign in, then check it.

Does Amp wait while Image to SVG runs?

Image to SVG runs in the background. Amp starts the run, checks on it and gives you the image when it's ready.

What is Image to SVG useful for?

Use it to turn existing raster artwork into vector assets. Practical uses include logos, interface icons, diagram symbols, and illustrations you want to resize or edit.

What resolution should I use for the output?

SVG vector graphics scale without losing quality, so you can reuse the result at different display sizes. Inspect the trace at its intended size before using it.

How should I choose between curved and straight-line tracing?

Choose curved tracing for rounded contours, such as a circular badge. Choose straight-line tracing for angular artwork, such as a geometric symbol.

How can I clean up stray dots?

Try the speckle filter, which removes small speckles and noise. Compare the result with the original, especially around small details you want to keep.

Can I edit the SVG afterward?

Yes. SVG files can be edited in drawing software or a text editor, which is useful for checking shapes and making final adjustments.

Get started

Start using Image to SVG in Amp

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Amp:

Set up Amp

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options