APIMODELSAPIMODELS

Unlimited-SVG review: Baidu’s open image-to-SVG model, tested on 17 images

Updated 2026-12-04

TL;DR Unlimited-SVG is an open-source model from Baidu that redraws a raster image as editable SVG code. In our tests on 17 images, logos, icons, line art and diagrams came back almost identical to the original (structural similarity 0.94 to 0.99) in 2 to 10 seconds, with English text kept as real, editable text. Product photos, painted posters and dense infographics were redrawn loosely or lost content and took two to four minutes, and Chinese text came out as meaningless strokes. Run on its own the model sometimes loops until it hits its length limit; the API on apimodels.app stops and retries those runs, crops the result to the original shape and corrects misspelled text, and returned an SVG for all 17 images. Since 4 December it also rewrites Chinese and Japanese lines from an OCR reading of the original. The API costs $0.01 per image.

Model page: Unlimited-SVG API — pricing, specs and the playground

Unlimited-SVG is an image-to-SVG model from Baidu, released with open weights under the MIT licence. Unlike a classic tracer, which follows pixel edges, it looks at the whole picture and writes SVG code from scratch: circles come back as circles, text as text, and a logo as about a dozen clean shapes.

This page reports what we measured before opening it as an API. We converted 17 images in three groups: seven images already published on our site (a logo, line art, a chart, a game icon sheet, an infographic, a painted poster and a product photo); six text-heavy designs we made ourselves, so the correct text is known; and four Twemoji icons. Every number below comes from those runs on 2 and 3 December 2026. The API opened on 4 December 2026; the examples below are the live request format.

We run apimodels.app and host this model ourselves, so treat this as a vendor’s test. We show every image we tried, the failures included, and keep the model’s own behaviour apart from what our processing changes.

What Unlimited-SVG is

Unlimited-SVG is a 3.3-billion-parameter mixture-of-experts model that uses about 0.5 billion parameters per token, which keeps it fast for its size. It takes one image and returns SVG code drawn on a 1024 × 1024 canvas; our API maps that back to the original image’s shape and size.

Unlimited-SVG
MakerBaidu
Released1 December 2026, open weights
LicenceMIT
Size3.3B parameters, about 0.5B active per token
InputOne raster image: PNG, JPEG or WebP
OutputSVG code: paths, basic shapes, gradients and <text> elements
TextEnglish and other Latin text as real <text>; large display titles often as shapes; Chinese unreliable from the model alone (our API repairs it, see below)
Speed in our tests2 to 10 seconds for icons, logos and diagrams; 2 to 4 minutes for photos, posters and infographics

How we tested: 17 images, scored against the original

For each image we rendered the returned SVG at the original size and compared it with the original using structural similarity (SSIM): 1.0 means identical, above 0.9 is hard to tell apart at a glance, and below 0.6 means the picture was redrawn rather than copied. We also counted the drawn elements and the file size, timed each conversion, and for the six text designs checked every text line against the text we put in.

All runs used the settings we will serve: temperature 0 first, up to two retries at 0.3, at most 30,000 output tokens. The numbers in the results table include our processing; the section “What our API adds” shows what the model does on its own.

Results: near-identical for flat graphics, loose for photos and art

Unlimited-SVG is reliable on flat graphics. Eleven of the 17 images scored between 0.89 and 0.99: every icon, both logos, the line art, the flow diagram, the KPI card, the web banner and the event poster. Those files are small (1 to 5 KB, 8 to 24 elements) and took 2 to 10 seconds.

Detail-heavy images are a different job. The line chart kept every label and number but scored 0.83. The game icon sheet lost two icons and merged a row of round badges into one strip (0.63). The product photo became a clean flat illustration of the bottle (0.60), the painted poster was redrawn in a different style (0.19), and the dense infographic lost most of its content (0.38) after almost four minutes.

ImageKindSSIMElementsSVG sizeSecondsNotes
House iconTwemoji icon0.9981.2 KB4.1
APIMODELS logoLogo0.99112.0 KB5.1
Upload → Publish flowDiagram0.98121.7 KB2.3All 4 labels as text
NORTHWIND coffee logoText logo0.98132.0 KB3.4Wordmark drawn as shapes, letters correct
Rocket iconTwemoji icon0.9881.4 KB2.7
Fox iconTwemoji icon0.97102.5 KB10.1
Coffee iconTwemoji icon0.95102.1 KB8.1Cup handle dropped
Bird on a branchLine art0.94244.8 KB7.9
Revenue KPI cardChart with text0.93121.6 KB2.4All 7 texts right after our correction
Cloud product bannerWeb banner0.9191.7 KB2.6All 3 texts as text
Summer jazz posterFlat poster0.90212.9 KB4.9Title drawn as shapes, “J” became “u”
Coffee consumption chartLine chart0.83596.9 KB8.6All labels and numbers right
Chinese sale posterPoster with Chinese text0.74305.2 KB9.4Chinese text unreadable
Game icon sheetDetailed icons0.6324138 KB108.52 icons lost, badges merged
Perfume bottleProduct photo0.6014431 KB137.8Redrawn as a flat illustration
Rocket company infographicDense infographic0.3825740 KB229.3Most content lost
Woman in a hatPainted poster0.1939160 KB242.2Redrawn in another style

Twelve conversions, drawn step by step

Left is the image we sent. Right is the SVG the API returned, played back one element at a time in the order the model wrote them: lines are drawn stroke by stroke, and each filled shape is first traced in blue, then filled. This is what separates it from the original pixels: every part is a separate shape you can select, recolour or delete. Click the right-hand image to open the finished SVG file exactly as returned. The four icons are Twemoji by Twitter, licensed CC-BY 4.0; the other images are ours.

Emoji icon

Ten shapes, 2.5 KB, indistinguishable from the original (SSIM 0.97).

Details and run stats

Flat colour icons are the easiest case: every region becomes one filled path with the original colour.

e-fox · SSIM 0.97 · 10 elements · 2.5 KB · 10.1 s

Brand logo

Our own logo came back as 11 shapes with exact colours (SSIM 0.99).

Details and run stats

The rounded bars and the four-point star are rebuilt as clean geometry, so the file scales to any size without jagged edges.

01-logo · SSIM 0.99 · 11 elements · 2.0 KB · 5.1 s

Line art

Strokes kept as strokes; 24 elements, 4.8 KB (SSIM 0.94).

Details and run stats

Line weights and curves follow the original closely, and the file stays under 5 KB.

02-lineart · SSIM 0.94 · 24 elements · 4.8 KB · 7.9 s

Line chart with labels

Every axis label, data label and figure came back as editable text.

Details and run stats

Similarity is 0.83, but the data you would edit is all there and correct, and each value is a separate element.

03-chart · SSIM 0.83 · 59 elements · 6.9 KB · 8.6 s

KPI card

The model wrote “$42-M”; our text check corrected it to “$4.2M”.

Details and run stats

Seven text elements in total. Six were right from the model; the headline figure was fixed by comparing against a reading of the original image.

t6-kpi · SSIM 0.93 · 12 elements · 1.6 KB · 2.4 s · 1 text fix

Flow diagram

Boxes, arrows and four labels, 1.7 KB, in 2.3 seconds (SSIM 0.98).

Details and run stats

Labels are real text, so “Review” can be renamed in any editor without redrawing.

t4-flow · SSIM 0.98 · 12 elements · 1.7 KB · 2.3 s

Poster with a display title

Layout and small text right; the big title was drawn as shapes and “JAZZ” became “uAZZ”.

Details and run stats

Large display type is often drawn as outlines rather than text, so our text check cannot correct it. Proofread titles before you use the file.

t2-poster · SSIM 0.90 · 21 elements · 2.9 KB · 4.9 s

Detailed game icons

Top row faithful; the round badges merged into one strip and two icons were lost.

Details and run stats

241 elements, 38 KB and 108 seconds. Dense sheets of small items are where the model starts to drop and merge things; convert icons one at a time instead.

04-game-icons · SSIM 0.63 · 241 elements · 38 KB · 108.5 s

Product photo

The bottle and label are recognisable, but the photo became a flat illustration (SSIM 0.60).

Details and run stats

Reflections and texture are replaced by a few gradients. Useful for a stylised icon of a product, not as a stand-in for the photo.

07-photo · SSIM 0.60 · 144 elements · 31 KB · 137.8 s

Poster with Chinese text

Shapes and colours kept; every Chinese character came out as meaningless strokes.

Details and run stats

This is the model on its own on 3 December; the first attempt also looped and was stopped after 3.7 seconds. Since launch on 4 December our API reads the Chinese in the original with Unlimited-OCR-2 and writes missing or wrong lines back as glyph outlines: re-run on this poster, every Chinese line came back right, at a similarity of 0.83.

t5-zh-sale · SSIM 0.74 · 30 elements · 5.2 KB · 9.4 s · looped once

Dense infographic

Most of the content was lost, after a loop, a broken file and 229 seconds.

Details and run stats

The model alone ran for 293 seconds to its 30,000-token limit and returned nothing usable. With our processing the loop was stopped at 13.9 seconds, the second try returned broken XML, and the third returned this file; ten misspelled words were then corrected. Do not use it for infographics like this.

05-infographic · SSIM 0.38 · 257 elements · 40 KB · 229.3 s · 3 attempts · 10 text fixes

Painted poster

Redrawn as a flat illustration in a different style (SSIM 0.19).

Details and run stats

Painterly images have no clean shapes to recover. 391 elements and four minutes produced a reinterpretation, not a copy.

06-poster · SSIM 0.19 · 391 elements · 60 KB · 242.2 s

Text in the SVG: English stays editable, Chinese does not work

Normal-size English text comes back as real <text> elements, so you can change a word in any editor. Across the six text designs, 19 of the 26 text lines were exact after our correction; the 7 misses were three large title lines drawn as shapes instead of text (one with a wrong letter) and four Chinese lines.

The model does misspell. On the infographic it wrote “MULTIPLARENTOR” for MULTIPLANETARY and “STARLING” for STARLINK. Our API reads the original image with Unlimited-OCR-2 and replaces a text element only when the OCR reading is a close match of similar length and the digits agree. That made 11 corrections on the test set and no wrong ones.

What our API adds on top of the open model

Run on its own, Unlimited-SVG returned an SVG for 6 of our first 7 images; the seventh looped until the length limit. With the steps below, all 17 test images returned a valid SVG.

ProblemModel aloneWith our APIWhat we do
Output repeats until the 30,000-token limitInfographic ran 293 s and returned nothing usableStopped at 13.9 s and 3.7 s on the two images that looped, then retriedWatch the output as it streams; stop on repeated elements; retry at temperature 0.3, up to twice
Square canvasNon-square images come back on a 1:1 canvas with grey bandsCropped back to the original shape and size (10 of 17 images)Set the viewBox to the picture area and the original width and height
Broken or cut-off SVG codeInvalid XML on one attempt; unclosed tags when the limit is hitRepaired and returnedClose open tags, escape stray characters; keep the repair only if at least 80% of elements survive
Misspelled text“MULTIPLARENTOR”, “$42-M”11 corrections, none wrongRead the original with Unlimited-OCR-2 and fix close matches
Chinese textDrawn as meaningless strokesEvery line right on our Chinese poster (re-run on 4 December)Read the original with Unlimited-OCR-2 and write missing or wrong Chinese and Japanese lines as glyph outlines; flag lines it cannot verify

Unlimited-SVG vs StarVector, OmniSVG, VTracer and vectorizer APIs

Unlimited-SVG has no published benchmark yet, so the numbers on this page are ours. StarVector-8B, the closest open model, publishes DinoScore results of 0.959 to 0.984 on SVG-Bench for icons, fonts, emoji and diagrams, and says it will not work for natural images or illustrations. Like Unlimited-SVG it writes SVG code rather than tracing pixels.

Tracing tools take the opposite approach. VTracer and Potrace follow the edges of each colour or black region, so they are deterministic, run on an ordinary CPU and never redraw an object in a different style; the trade-off is that text and shapes come back as outlines rather than editable elements. Hosted vectorizers such as Vectorizer.AI also export PDF, EPS and DXF for print and cutting machines, which Unlimited-SVG does not.

ApproachLicencePublished quality figuresNotes
Unlimited-SVGModel writes SVG codeMITNone yet; our 17-image test aboveEnglish text as <text>; 1 to 5 KB for simple images; needs a GPU
StarVector-8BModel writes SVG codeApache-2.0DinoScore 0.959–0.984 on SVG-BenchNot for natural images or illustrations, per its model card
OmniSVG 1.1Model, from an image or a text promptApache-2.0—Also generates SVG from text; the 8B model needs 26 GB of GPU memory
VTracerTraces colour regionsMIT—Deterministic, runs on a CPU; outlines only, no <text>
PotraceTraces black-and-white shapesGPL—Exports SVG, PDF, EPS, DXF and more; colour images need pre-processing
Vectorizer.AIHosted APICommercial—Exports SVG, PDF, EPS, DXF and PNG
Recraft VectorizeHosted APICommercial—Part of a wider image-generation API

When not to use Unlimited-SVG

Photos. A product photo came back as a flat illustration at 0.60 similarity. If you need the photo, keep the photo.

Paintings and textured artwork. The painted poster was redrawn in another style at 0.19. There are no clean shapes for the model to recover.

Dense infographics and icon sheets. Content gets dropped or merged and a conversion can take four minutes. Split the image into single items first.

Chinese, Japanese or Korean text. It comes out as unreadable strokes. Convert the graphic and set the text yourself.

Exact tracing for print or cutting. The model redraws rather than traces, so edges can shift. For a pixel-faithful outline, use a tracing tool.

Limits on apimodels.app

Not every conversion is usable, even when the call succeeds: in our tests 3 of 17 SVGs scored below 0.6. A request that fails with an error is not charged; a successful one costs $0.01, text check included.

SupportedNot supported
InputOne image per request: PNG, JPEG, WebP, up to 20 MB and 40 megapixelsSeveral images in one request; PDF; animated GIF
OutputOne SVG file at the original aspect ratioLayers named by object; animation
TextEnglish and other Latin text as <text>; Chinese and Japanese lines repaired as glyph outlinesKorean text; editable Chinese text by default (pass cjk_mode "text")
LengthUp to 30,000 output tokensImages that need more are cut and repaired
Speed2 to 10 seconds for icons, logos and diagramsGuaranteed latency; complex images take 2 to 4 minutes

Sources

Model facts: Baidu’s Unlimited-SVG GitHub repository, model card and project page, read on 3 December 2026. Other tools: their own model cards, repositories and API documentation, read the same day. Test images: our own designs and images from this site, plus four Twemoji icons by Twitter, licensed CC-BY 4.0.

Início rápido

cURL

curl https://api.apimodels.app/v1/chat/completions \
  -H "Authorization: Bearer $APIMODELS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "unlimited-svg",
    "messages": [{"role": "user", "content": [
      {"type": "image_url", "image_url": {"url": "https://apimodels.app/unlimited-svg-review/01-logo-original.webp"}}
    ]}]
  }'

Python

from openai import OpenAI

client = OpenAI(base_url="https://api.apimodels.app/v1", api_key="YOUR_API_KEY")

# One image per request; the reply is the SVG code, cropped to the original aspect ratio
resp = client.chat.completions.create(
    model="unlimited-svg",
    messages=[{"role": "user", "content": [
        {"type": "image_url", "image_url": {"url": "https://apimodels.app/unlimited-svg-review/01-logo-original.webp"}},
    ]}],
)
with open("logo.svg", "w", encoding="utf-8") as f:
    f.write(resp.choices[0].message.content)

Perguntas frequentes

Can AI convert an image to SVG?

Yes, and for flat graphics the result can be almost identical. Unlimited-SVG redrew 11 of our 17 test images at a structural similarity of 0.89 to 0.99, including every icon and logo, line art, a flow diagram, a KPI card, a banner and a poster, in 2 to 10 seconds each. Photos, painted art and dense infographics came back as loose reinterpretations.

Which AI model is best for SVG?

It depends on the image, and few models publish numbers. StarVector-8B publishes the strongest benchmark figures for icons, fonts, emoji and diagrams (DinoScore 0.959 to 0.984 on SVG-Bench). Unlimited-SVG has no published benchmark yet; in our test it kept English text as editable text and produced 1 to 5 KB files for simple images. Neither is meant for photos. To create a new SVG from a text prompt rather than convert an image, use a text-to-SVG model such as GPT Image 2.6.

What advantages does Unlimited-SVG have over VTracer?

Structure you can edit. VTracer traces the outline of every colour region, so its file follows the pixels but is made only of paths. Unlimited-SVG rewrites the image as shapes, gradients and real <text>: our logo came back as 11 elements, and the flow diagram’s labels as words you can retype. VTracer wins on predictability: it is deterministic, runs on an ordinary CPU and does not drop or redraw objects, while Unlimited-SVG needs a GPU and lost two icons on a dense sheet.

Why does a simple diagram fail with “Incomplete SVG”?

It means the output ended before the SVG was closed. One common cause is the model repeating itself until it reaches its length limit, which leaves a file that is not valid XML. Our API watches the output, stops a loop early, retries, and closes unfinished tags; in our test all 17 images returned a valid SVG, including a flow diagram in 2.3 seconds.

Can I get the drawing process, stroke by stroke?

Not as a video, but the file keeps the drawing order. Elements appear in the SVG in the order the model wrote them, so you can animate the drawing by revealing them one at a time with CSS or JavaScript; the animations on this page were made that way from the returned files. Our API returns the finished SVG only.

Can it convert illustrations or anime faces?

Flat, outlined illustrations yes; shaded artwork no. Emoji-style icons and line art came back at 0.94 to 0.99 similarity. Our painted poster was redrawn in a different style at 0.19, and a product photo became a flat illustration at 0.60, because shading and texture have no clean shapes to recover.

Does converting an image to SVG keep the colours?

Unlimited-SVG keeps them. It fills shapes with the original colours and uses gradients where the image has them, and our icons and logos came back with matching colours. Fine colour texture, as in a photo, is simplified into a few flat or gradient areas. Transparent areas are placed on white before conversion, so the SVG comes back with a white background.

Is Unlimited-SVG just a DeepSeek-OCR fine-tune?

It is built on DeepSeek-OCR, as Baidu says in its README. It uses the DeepSeek-OCR encoder, which compresses a 2048 × 2048 image into 1,024 vision tokens, and is trained to write SVG code instead of text. Baidu’s Unlimited-OCR-2 document parsing model comes from the same line of work.

How do I call an image-to-SVG API from Python?

Send the image as an OpenAI-compatible chat request and save the reply as an .svg file. With the official openai package, point base_url at https://api.apimodels.app/v1, set the model to unlimited-svg, put the image URL in the message, and write the reply text to disk. The Python example on this page does exactly that.

Relacionado

Presente em
APIMODELS on Product HuntAPIMODELS featured on ToolifyAPIMODELS featured on There's An AI For That