Njuolgga sisdollui

Vecglypher · Image to SVG

Integrere

Modealla-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"

Dát ohcamuš: 0,005 $ 5 API-kreditta Vuodje dán siiddu alde

Oza API-čoavdaga
Open model Gova heiveheapmi Referánsa-inputtat

Ráhkada SVG-glyphaid 1 rájes 8 referánsegova stiillas, iige tekstastiiladulkoma vuođul

Open model · Govva

Dát lea du vuosttaš bohtos

Daga jearaldaga vuolábealde ja vuodje dan iežat API-čoavddain. Boađusat kopierejuvvojit min vurkemii, bisuhuvvojit álo dahje 7 beaivvi nuvttá.

Ráhkat jearaldaga

Kontrollat ráhkaduvvojit modealla skeama vuođul. Koda ja haddi ođasmahttojuvvojit go rievddadat daid.

•gáibiduvvo

Teaksta, man mearkkat šaddet vektor-glyph:an, geavahettiin referánsa­govvagiid stiila oahpahan dihte.

•gáibiduvvo reference_image_urls
Luoitte fiilla, dahje · gitta 8

Stiila­referánssat 1–8 govva-URL:ain; juohke govvva čájeha ovtta glyph-mearka. Daid hápmi stivre ráhkaduvvon glyph-stiila.

Viiddiduvvon fill_color · stroke_color · temperature · top_p · top_k · repetition_penalty · max_tokens · output_size · stroke_width · seed · enable_safety_checker
standárda black

Glyph:a deivvohus, geavahuvvon dainna ivdni­notá­šuvnnain maid SVG/CSS doarjja.

Glyph:a rádjeheivehus: lasit dán molssaeaktolaš ivnni, vai juohke ráhkaduvvon glyph-path:a birra boahtá stroke.

standárda 0.1

Temperatuvra samplinga várás.

standárda 0.95

Nucleus-sampling stivren (top-p).

standárda 5

Top-k-sampling heiveheapmi.

standárda 1

Čuoldin geardduheami vuostá.

standárda 8192

Ráhkaduvvon token:aid bajimus lohku.

standárda 512

SVG-sturrodaga rádji pikseliin, geavahuvvon stuorimus dimenšuvnnaide ja seailluhit govtti sturrodagaid gaskavuođa.

standárda 1

Rádje­garrudat, mii doaibmá dušše meroštallojuvvon stroke_color:in ja mihtiduvvo SVG-unitiin.

Seed mii stivre sluččadusa, nu ahte boađus sáhttá ođđasit ráhkaduvvot.

POST /run/vecglypher/image-to-svg?wait=20 haddemearrádus → 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"

Geavat dán ohcamuša

Du key báhcá dán fierpmádatlogan: dat sáddejuvvo dušše Doitong API:ii ja vurkejuvvo (localStorage) dušše jos válljet Remember. Viečča API-keya

Dát lea Vecglypher · Image to SVG birra

Čállá `prompt`-a tekstta vektorglyphan mat leat seammá stiillas go 1 rájes 8 referánsegova `reference_image_urls`-listtus, juohke govas ovtta bustáva. Boađus lea SVG-geaidnu, mas sturrodat mearriduvvo `output_size`-ain 64 rájes 4096 px rádjái. `fill_color`, `stroke_color` ja `stroke_width` mearridit láhttema, ja sampling-stivrenávdnasat nugo `temperature` ja `max_tokens` leat olámuttus.

Parametterat

Sádde kanonala nama dahje iežas nama, ii goappašiid. Kanonala namat

NammaŠládja StandárdaDohkkehuvvon Govvádus
promptgáibiduvvo
Šládjastring
Teaksta, man mearkkat šaddet vektor-glyph:an, geavahettiin referánsa­govvagiid stiila oahpahan dihte.
reference_image_urlsgáibiduvvo images
Šládjaurl[] · image
≤ 8 merki
Stiila­referánssat 1–8 govva-URL:ain; juohke govvva čájeha ovtta glyph-mearka. Daid hápmi stivre ráhkaduvvon glyph-stiila.
temperatureeaktodáhtolaš
Šládjanumber
Standárda0.1
0 – 2
Temperatuvra samplinga várás.
seedeaktodáhtolaš
Šládjainteger | null
Seed mii stivre sluččadusa, nu ahte boađus sáhttá ođđasit ráhkaduvvot.
enable_safety_checkereaktodáhtolaš
Šládjaboolean
Standárdatrue
Aktivere bealu­steami sisa-addi várás.
top_peaktodáhtolaš
Šládjanumber
Standárda0.95
0 – 1
Nucleus-sampling stivren (top-p).
top_keaktodáhtolaš
Šládjainteger
Standárda5
−1 – 100
Top-k-sampling heiveheapmi.
repetition_penaltyeaktodáhtolaš
Šládjanumber
Standárda1
0 – 2
Čuoldin geardduheami vuostá.
max_tokenseaktodáhtolaš
Šládjainteger
Standárda8192
256 – 16 384
Ráhkaduvvon token:aid bajimus lohku.
output_sizeeaktodáhtolaš
Šládjainteger
Standárda512
64 – 4 096
SVG-sturrodaga rádji pikseliin, geavahuvvon stuorimus dimenšuvnnaide ja seailluhit govtti sturrodagaid gaskavuođa.
fill_coloreaktodáhtolaš
Šládjastring
Standárdablack
Glyph:a deivvohus, geavahuvvon dainna ivdni­notá­šuvnnain maid SVG/CSS doarjja.
stroke_coloreaktodáhtolaš
Šládjastring | null
Glyph:a rádjeheivehus: lasit dán molssaeaktolaš ivnni, vai juohke ráhkaduvvon glyph-path:a birra boahtá stroke.
stroke_widtheaktodáhtolaš
Šládjanumber
Standárda1
0,1 – 50
Rádje­garrudat, mii doaibmá dušše meroštallojuvvon stroke_color:in ja mihtiduvvo SVG-unitiin.
gáibiduvvo Kanonala namma, maid sáhttá geavahit

Fiilaparametterat váldet almmolaš https:// URL:a, data: URI:a gitta 10 MB, dahje uploada file_url:a. Fiillat

Boađus

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"
  }
}
Du fiillat, du válljenJuohke outputs[].url lea kopia min vurkemis: bisuhuvvo álo (mákso GB-mánu mielde) dahje 7 beaivvi nuvttá, du konto­o heiveheami dahje ?storage= mielde.
Seammá hápmi juohke modeallastype, url, content_type, width, height ja duration, govvii, videoii ja jienai seammá ládje. output lea modealla iežas boađusobjekta.
Outputa giettit
image
anySVG-fiila, mii sisttisdoallá ráhkaduvvon vektor-glyph:aid.
svg_content
stringString, mii sisttisdoallá raw SVG-markup:a.
seed
integerRáhkadeamis geavahuvvon sádjiárvu.
timings
objectRáhkadanáiggiid mihtideamit, juohkásan gieđahallan­ceahkiid mielde.

Eanet modeallat: Gova heiveheapmi

AI-agenttaide: dán siidu Markdowna lea dáppe https://doitong.com/se/developers/models/vecglypher/image-to-svg.md. Buot modeallat ja ráđit: https://doitong.com/developers/llms.txt