Response body
{
"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 |
|---|---|---|
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 |
Server-side processing duration for this request, in milliseconds. It does not include the complete browser upload and download time. |
paths |
number |
Number of path elements in the returned SVG. This is not an anchor-point count or quality score. |
optimized_bytes |
number |
UTF-8 byte length of the returned SVG document. |
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.