Sign up free
Documentation
Type to search. Use the down arrow to browse results, or Escape to close them.

Responses

Read the SVG document and the measurements returned for a single conversion.

Response body

{
  "conversion_id": "2f781bf2-cb22-4f81-8703-56a59e65a919",
  "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\"><path d=\"M8 8h48v48H8z\" fill=\"#83e3b1\"/></svg>",
  "format": "svg",
  "processing_ms": 123,
  "paths": 1,
  "optimized_bytes": 106
}

This is an illustrative payload. Timing, path count, file size, and SVG content vary with the input; the sample is not a performance benchmark.

Fields

Property Type Meaning
conversion_id string UUID identifying the saved conversion. A completed idempotent replay returns the same ID.
svg string The complete SVG markup. Save this value as UTF-8 to a .svg file.
format string "svg" for the current endpoint.
processing_ms number Duration of the conversion-service request and SVG validation, in milliseconds. It excludes your complete upload/download and subsequent history storage. A replay returns the original measurement.
paths number Number of artwork paths, including recovered detail paths. Excludes clipping paths, masks, definitions and seam-rendering helpers. This is not an anchor-point count or quality score.
allowance_used_this_call 0 or 1 New allowance used by this call. A new conversion returns 1; a completed replay returns 0.
reused_result boolean true when this call reused an existing saved SVG.
optimized_bytes number UTF-8 byte length of the returned SVG document.

The server also returns X-Conversion-Id with the same UUID and Cache-Control: no-store. The SVG is returned in JSON, rather than as a public file URL.

Download in the browser

Use a Blob URL to download or preview the string without inserting markup directly into the page. Revoke the URL when it is no longer needed.

const blob = new Blob([result.svg], { type: "image/svg+xml;charset=utf-8" });
const url = URL.createObjectURL(blob);
const link = document.createElement("a");
link.href = url;
link.download = "logo.svg";
document.body.append(link);
link.click();
link.remove();
setTimeout(() => URL.revokeObjectURL(url), 1_000);

Use the SVG

An SVG can be referenced with a normal img element or opened in a vector editor. Conversion creates vector shapes; it does not restore the original font, editable text, design layers, or the intent of the original artwork.

MCP results

The MCP tools return a download link rather than inline SVG markup. structuredContent includes conversion_id, format, download_url, expires_at, paths, bytes, processing_ms, allowance_used_this_call, reused_result, and allowance_cost_for_request_id. convert_image also returns request_id. The text content provides a ready-to-use Markdown download link.

Use allowance_used_this_call to explain current usage: 1 means a new conversion; 0 means no new allowance was used. reused_result is true for an identical retry or get_conversion. A lost database commit acknowledgment recovered within the original call still counts as one new conversion.

bytes is the SVG’s UTF-8 length, equivalent to REST’s optimized_bytes. allowance_cost_for_request_id is the total cost associated with that ID across calls, not a new charge for each retry. Conversion and replay return 1; get_conversion returns 0 and only refreshes the link. Anyone holding a signed link can download until its ten-minute expiry or conversion deletion. Keep signed links private.

A useful next step? Read the journal