Peke ki ngā ihirangi

Vecglypher · Image to SVG

Whakauru

id tauira 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"

Tēnei tono: $ 0.005 5 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Open model Whakatika Atahanga Ngā tāuru tohutoro

Ka whakaputa glyph SVG i te kāhua o 1 ki te 8 atahanga glyph tohutoro, kaua ko tētahi whakaahuatanga kāhua kuputuhi

Open model · Atahanga

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana

Kuputuhi ka noho ōna pūāhua hei glyph vector, mā ngā atahanga tohutoro hei kāhua hei tārua.

•e hiahiatia ana reference_image_urls
Whakataka he kōnae, · tae atu ki 8

Ngā tohutoro kāhua i tukuna hei 1 ki te 8 URL atahanga, kotahi pūāhua glyph e whakaaturia ana i ia atahanga. Mā tō rātou āhua e arataki te kāhua glyph i whakaputaina.

Arā atu fill_color · stroke_color · temperature · top_p · top_k · repetition_penalty · max_tokens · output_size · stroke_width · seed · enable_safety_checker
taunoa black

Whakakī glyph kua tohua mā ngā tuhipoka tae e tautokona ana e SVG/CSS.

Tautuhinga tapa glyph: mā te tuku i tēnei tae kōwhiringa ka tāpirihia he whiu huri noa i ia ara glyph i whakaputaina.

taunoa 0.1

Pāmahana i whakamahia mō te sampling.

taunoa 0.95

Whakahaere sampling nucleus (top-p).

taunoa 5

Te tautuhinga mō te tīpako top-k.

taunoa 1

Whiu mō te tukurua.

taunoa 8192

Te mōrahi o ngā tohu i whakaputaina.

taunoa 512

Tepe rahinga SVG ki ngā pika, ka pā ki te ahunga nui ake me te pupuri i te ōwehenga o te whānui me te teitei.

taunoa 1

Mātotoru tapa, ka whai hua anake ina tohua he stroke_color, ā, ka inea mā ngā wae SVG.

Kākano hei whakahaere i te matapōkeretanga mō ngā putanga ka taea te tārua.

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

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Vecglypher · Image to SVG

Ka tuhi i te kuputuhi kei `prompt` hei glyph ahunga e rite ana ki te kāhua o ngā atahanga glyph tohutoro 1 ki te 8 kei `reference_image_urls`, e whakaatu ana ia mea i tētahi pūāhua. Ko te putanga he ara SVG, ka rahingia e `output_size` mai i te 64 ki te 4096 px. Mā `fill_color`, `stroke_color` me `stroke_width` e whakarite te āhua, ā, kei te wātea ngā mana tīpako pēnei i `temperature` me `max_tokens`.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
Kuputuhi ka noho ōna pūāhua hei glyph vector, mā ngā atahanga tohutoro hei kāhua hei tārua.
reference_image_urlse hiahiatia ana images
Momourl[] · image
≤ 8 tūemi
Ngā tohutoro kāhua i tukuna hei 1 ki te 8 URL atahanga, kotahi pūāhua glyph e whakaaturia ana i ia atahanga. Mā tō rātou āhua e arataki te kāhua glyph i whakaputaina.
temperaturekōwhiringa
Momonumber
Taunoa0.1
0 – 2
Pāmahana i whakamahia mō te sampling.
seedkōwhiringa
Momointeger | null
Kākano hei whakahaere i te matapōkeretanga mō ngā putanga ka taea te tārua.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka whakakā i ngā taki-haumaru mō te tāuru.
top_pkōwhiringa
Momonumber
Taunoa0.95
0 – 1
Whakahaere sampling nucleus (top-p).
top_kkōwhiringa
Momointeger
Taunoa5
-1 – 100
Te tautuhinga mō te tīpako top-k.
repetition_penaltykōwhiringa
Momonumber
Taunoa1
0 – 2
Whiu mō te tukurua.
max_tokenskōwhiringa
Momointeger
Taunoa8192
256 – 16,384
Te mōrahi o ngā tohu i whakaputaina.
output_sizekōwhiringa
Momointeger
Taunoa512
64 – 4,096
Tepe rahinga SVG ki ngā pika, ka pā ki te ahunga nui ake me te pupuri i te ōwehenga o te whānui me te teitei.
fill_colorkōwhiringa
Momostring
Taunoablack
Whakakī glyph kua tohua mā ngā tuhipoka tae e tautokona ana e SVG/CSS.
stroke_colorkōwhiringa
Momostring | null
Tautuhinga tapa glyph: mā te tuku i tēnei tae kōwhiringa ka tāpirihia he whiu huri noa i ia ara glyph i whakaputaina.
stroke_widthkōwhiringa
Momonumber
Taunoa1
0.1 – 50
Mātotoru tapa, ka whai hua anake ina tohua he stroke_color, ā, ka inea mā ngā wae SVG.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
image
anyKōnae SVG kei roto ngā glyph vector i whakaputaina.
svg_content
stringHe aho kei roto te tohu SVG mata.
seed
integerTe uara kākano i whakamahia i te whakaputanga.
timings
objectNgā wā whakaputa kua wāwāhia ki ia wāhanga tukatuka.

Ētahi atu tauira: Whakatika Atahanga

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/vecglypher/image-to-svg.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt