Skip to content

Vecglypher · Image to SVG

Integrate

Model id vecglypher/image-to-svg
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/vecglypher/image-to-svg?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.005 5 API credits Run it on this page

Get API key
Open model Image Editing Reference inputs

Generates SVG glyphs in the style of 1 to 8 reference glyph images instead of a text style description

Open model · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Text whose characters become vector glyphs, using the reference images as the style to reproduce.

•required reference_image_urls
Drop a file, or · up to 8

Style references supplied as 1 to 8 image URLs, with a single glyph character shown in each image. Their appearance guides the generated glyph style.

Advanced fill_color · stroke_color · temperature · top_p · top_k · repetition_penalty · max_tokens · output_size · stroke_width · seed · enable_safety_checker
default black

Glyph fill specified using any color notation supported by SVG/CSS.

Glyph outline setting: supplying this optional color adds a stroke around every generated glyph path.

default 0.1

Temperature used for sampling.

default 0.95

Nucleus sampling control (top-p).

default 5

Setting for top-k sampling.

default 1

Penalty applied to repetition.

default 8192

Upper limit on generated tokens.

default 512

SVG size limit in pixels, applied to whichever dimension is larger while keeping width and height proportional.

default 1

Outline thickness, effective only with a specified stroke_color and measured using SVG units.

Seed controlling randomness for reproducible results.

POST /run/vecglypher/image-to-svg?wait=20 quote → $0.005
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/vecglypher/image-to-svg?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Vecglypher · Image to SVG

Writes the text in `prompt` as vector glyphs that match the style of 1 to 8 reference glyph images in `reference_image_urls`, each showing an individual character. Output is SVG paths, sized by `output_size` from 64 to 4096 px. `fill_color`, `stroke_color` and `stroke_width` set the look, and sampling controls such as `temperature` and `max_tokens` are available.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
promptrequired
Typestring
Text whose characters become vector glyphs, using the reference images as the style to reproduce.
reference_image_urlsrequired images
Typeurl[] · image
≤ 8 items
Style references supplied as 1 to 8 image URLs, with a single glyph character shown in each image. Their appearance guides the generated glyph style.
temperatureoptional
Typenumber
Default0.1
0 – 2
Temperature used for sampling.
seedoptional
Typeinteger | null
Seed controlling randomness for reproducible results.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Enables safety checks on the input.
top_poptional
Typenumber
Default0.95
0 – 1
Nucleus sampling control (top-p).
top_koptional
Typeinteger
Default5
-1 – 100
Setting for top-k sampling.
repetition_penaltyoptional
Typenumber
Default1
0 – 2
Penalty applied to repetition.
max_tokensoptional
Typeinteger
Default8192
256 – 16,384
Upper limit on generated tokens.
output_sizeoptional
Typeinteger
Default512
64 – 4,096
SVG size limit in pixels, applied to whichever dimension is larger while keeping width and height proportional.
fill_coloroptional
Typestring
Defaultblack
Glyph fill specified using any color notation supported by SVG/CSS.
stroke_coloroptional
Typestring | null
Glyph outline setting: supplying this optional color adds a stroke around every generated glyph path.
stroke_widthoptional
Typenumber
Default1
0.1 – 50
Outline thickness, effective only with a specified stroke_color and measured using SVG units.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "vecglypher/image-to-svg",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 5,
    "usd": "0.005",
    "charged": 5,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "reference_image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "output": {
    "svg_content": "string",
    "seed": 42,
    "timings": {}
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
image
anySVG file holding the generated vector glyphs.
svg_content
stringString containing the raw SVG markup.
seed
integerSeed value applied during generation.
timings
objectGeneration timings broken down by processing stage.

More models: Image Editing

For AI agents: this page as Markdown is at https://doitong.com/developers/models/vecglypher/image-to-svg.md. All models and guides: https://doitong.com/developers/llms.txt