# Image2svg image to image fal AI

Needs image url.

Image2svg, served by fal.ai. $0.005 per images One submitted item is offered per call; the exact receipt determines the final charge. Asynchronous: returns a request_id; poll fal/status and fetch fal/result with model "fal-ai/image2svg" and that request_id. The exact endpoint/request billing receipt is required before settlement.

- Tool ID: `fal/fal-ai-image2svg`
- Name in the catalog: Image2svg, image to image
- Provider: [fal.ai](/providers/fal.md)
- Capability: [AI image generation](/tools/image-generation.md)
- Price: $0.005 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.005
}
```

Pricing source: [https://fal.ai/models/fal-ai/image2svg/llms.txt](https://fal.ai/models/fal-ai/image2svg/llms.txt). $0.005 per images One submitted item is offered per call; the exact receipt determines the final charge..

Price verification date: 2026-11-03.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "filter_speckle": {
      "description": "Filter out small speckles and noise",
      "minimum": 0,
      "type": "integer",
      "default": 4,
      "maximum": 20,
      "title": "Filter Speckle"
    },
    "splice_threshold": {
      "description": "Splice threshold for joining paths",
      "minimum": 0,
      "type": "integer",
      "default": 45,
      "maximum": 90,
      "title": "Splice Threshold"
    },
    "color_precision": {
      "description": "Color quantization level",
      "minimum": 1,
      "type": "integer",
      "default": 6,
      "maximum": 10,
      "title": "Color Precision"
    },
    "length_threshold": {
      "description": "Length threshold for curves/lines",
      "minimum": 0,
      "type": "number",
      "default": 4,
      "maximum": 10,
      "title": "Length Threshold"
    },
    "colormode": {
      "description": "Choose between color or binary (black and white) output",
      "title": "Colormode",
      "type": "string",
      "default": "color",
      "enum": [
        "color",
        "binary"
      ]
    },
    "hierarchical": {
      "description": "Hierarchical mode: stacked or cutout",
      "title": "Hierarchical",
      "type": "string",
      "default": "stacked",
      "enum": [
        "stacked",
        "cutout"
      ]
    },
    "path_precision": {
      "description": "Decimal precision for path coordinates",
      "minimum": 1,
      "type": "integer",
      "default": 3,
      "maximum": 10,
      "title": "Path Precision"
    },
    "corner_threshold": {
      "description": "Corner detection threshold in degrees",
      "minimum": 0,
      "type": "integer",
      "default": 60,
      "maximum": 180,
      "title": "Corner Threshold"
    },
    "max_iterations": {
      "description": "Maximum number of iterations for optimization",
      "minimum": 1,
      "type": "integer",
      "default": 10,
      "maximum": 20,
      "title": "Max Iterations"
    },
    "mode": {
      "description": "Mode: spline (curved) or polygon (straight lines)",
      "title": "Mode",
      "type": "string",
      "default": "spline",
      "enum": [
        "spline"
      ]
    },
    "layer_difference": {
      "description": "Layer difference threshold for hierarchical mode",
      "minimum": 1,
      "type": "integer",
      "default": 16,
      "maximum": 32,
      "title": "Layer Difference"
    },
    "image_url": {
      "description": "The image to convert to SVG",
      "type": "string",
      "title": "Image Url"
    }
  },
  "required": [
    "image_url"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "fal/fal-ai-image2svg",
  "input": {
    "image_url": "https://v3.fal.media/files/kangaroo/EfqY747bBKy1Ynrgbk5ba_04pwiD1LTsnMZuyEyw757_8f986248a89845d3ba90c23b14089f10.jpg",
    "mode": "spline",
    "filter_speckle": 4,
    "splice_threshold": 45,
    "color_precision": 6,
    "length_threshold": 4,
    "colormode": "color",
    "hierarchical": "stacked",
    "path_precision": 3,
    "corner_threshold": 60,
    "max_iterations": 10,
    "layer_difference": 16
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

This tool uses deferred settlement. Follow its returned task/run instructions; preserve the existing reservation until the result is reconciled.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://fal.ai/models/fal-ai/image2svg)

[REST inspection](https://api.agentik.cc/v1/tools/fal/fal-ai-image2svg) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/fal/fal-ai-image2svg) · [Agent index](/llms.txt)
