[Integrations](https://spiral.ai/integrations) › [Gemini](https://spiral.ai/integrations/gemini) › [Image to SVG](https://spiral.ai/integrations/gemini/image-to-svg)

# How to Use Image to SVG in Gemini

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.

|  |  |
| --- | --- |
| Model | Image to SVG |
| Available through | fal |
| Category | Image |
| Price | $0.0065 per image. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Image to SVG in Gemini

- Convert this logo with Image to SVG and help me inspect the result before I use it on a poster.
- Use Image to SVG on this rounded badge with curved tracing, then compare its silhouette with the original.
- Trace this geometric symbol with Image to SVG using straight lines, then check whether the corners match.
- Use Image to SVG to make a black-and-white version of this illustration for a single-color design draft.
- Convert this speckled drawing with Image to SVG using noise filtering, then help me check the small dots I want preserved.

## How to set up Image to SVG in Gemini

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

### Use the Gemini connector

1. **Open Connected Apps**: On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

3. **Sign in to Spiral and approve**: Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Gemini 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.

```bash
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.

```bash
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: Gemini finds Image to SVG on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini

## Image to SVG tools and prices

- [Image to SVG](https://spiral.ai/tools/fal/fal-ai/image2svg) (fal): $0.0065 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| colormode | color, binary | color | Choose between color or binary (black and white) output |
| hierarchical | stacked, cutout | stacked | Hierarchical mode: stacked or cutout |
| mode | spline, polygon | spline | Mode: spline (curved) or polygon (straight lines) |
| filter_speckle | 0 to 20 | 4 | Filter out small speckles and noise |
| color_precision | 1 to 10 | 6 | Color quantization level |
| layer_difference | 1 to 32 | 16 | Layer difference threshold for hierarchical mode |

## What can you do with Image to SVG in Gemini?

Turn supplied artwork into vector assets you can resize and edit. Ask the chat agent to compare the trace with the original and point out details worth checking.

### 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.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Gemini guides](https://spiral.ai/integrations/gemini)

## Image to SVG in other agents

- [Amp](https://spiral.ai/integrations/amp/image-to-svg)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/image-to-svg)
- [Claude](https://spiral.ai/integrations/claude-desktop/image-to-svg)
- [Claude Code](https://spiral.ai/integrations/claude-code/image-to-svg)
- [Cline](https://spiral.ai/integrations/cline/image-to-svg)
- [Codex](https://spiral.ai/integrations/codex/image-to-svg)
- [Cursor](https://spiral.ai/integrations/cursor/image-to-svg)
- [Devin](https://spiral.ai/integrations/devin/image-to-svg)
- [dots](https://spiral.ai/integrations/dots/image-to-svg)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/image-to-svg)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/image-to-svg)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/image-to-svg)
- [goose](https://spiral.ai/integrations/goose/image-to-svg)
- [Grok](https://spiral.ai/integrations/grok/image-to-svg)
- [Grok Build](https://spiral.ai/integrations/grok-build/image-to-svg)
- [Hermes](https://spiral.ai/integrations/hermes/image-to-svg)
- [Instinct](https://spiral.ai/integrations/instinct/image-to-svg)
- [Manus](https://spiral.ai/integrations/manus/image-to-svg)
- [Muse](https://spiral.ai/integrations/muse/image-to-svg)
- [Muse Code](https://spiral.ai/integrations/muse-code/image-to-svg)
- [n8n](https://spiral.ai/integrations/n8n/image-to-svg)
- [Notion](https://spiral.ai/integrations/notion/image-to-svg)
- [OpenClaw](https://spiral.ai/integrations/openclaw/image-to-svg)
- [opencode](https://spiral.ai/integrations/opencode/image-to-svg)
- [Perplexity](https://spiral.ai/integrations/perplexity/image-to-svg)
- [Raycast](https://spiral.ai/integrations/raycast/image-to-svg)
- [VS Code](https://spiral.ai/integrations/vscode/image-to-svg)
- [Windsurf](https://spiral.ai/integrations/windsurf/image-to-svg)
- [Zapier](https://spiral.ai/integrations/zapier/image-to-svg)

## More Gemini guides

- [Image Editing Time of Day](https://spiral.ai/integrations/gemini/image-editing-time-of-day)
- [Juggernaut Flux Base](https://spiral.ai/integrations/gemini/juggernaut-flux-base)
- [Image Editing Reframe](https://spiral.ai/integrations/gemini/image-editing-reframe)
- [Juggernaut Flux Base Image to Image](https://spiral.ai/integrations/gemini/juggernaut-flux-base-image-to-image)
- [Image Editing Realism](https://spiral.ai/integrations/gemini/image-editing-realism)
- [Juggernaut Flux Lightning](https://spiral.ai/integrations/gemini/juggernaut-flux-lightning)

## Questions about Image to SVG in Gemini

**Can Gemini use Image to SVG?**

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

**How much does Image to SVG cost in Gemini?**

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

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

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 Gemini?**

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

**Does Gemini wait while Image to SVG runs?**

Image to SVG runs in the background. Gemini 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.

