Lumaktaw sa nilalaman

Style Transfer

I-integrate

ID ng modelo image-apps-v2/style-transfer
# 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/image-apps-v2/style-transfer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "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"

Kahilingang ito: $0.04 40 kredito ng API Patakbuhin ito sa page na ito

Kumuha ng API key
Utility · Larawan

Dito mapupunta ang iyong unang resulta

Bumuo ng kahilingan sa ibaba at patakbuhin ito gamit ang iyong API key. Kinokopya ang mga output sa aming storage, na pinananatili nang walang hanggan o 7 araw nang libre.

Bumuo ng kahilingan

Ang mga control ay binubuo mula sa schema ng modelo. Nagbabago ang code at presyo habang ina-adjust mo ang mga ito.

•kinakailangan image_url
Mag-drop ng file, o

URL ng larawang paglilipatan ng style.

Output aspect ratio sa 4K.

advanced style_reference_image_url · target_style
Mag-drop ng file, o

Style source na nangingibabaw sa napiling preset: maaaring magbigay ng larawan URL upang awtomatikong matukoy at magamit ang style nito.

default na impressionist
POST /run/image-apps-v2/style-transfer?wait=20 presyo → $0.04
# 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/image-apps-v2/style-transfer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "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"

Patakbuhin ang kahilingang ito

Nananatili ang iyong key sa browser na ito: ipinapadala lamang ito sa Doitong API at sine-save (localStorage) lamang kung pipiliin mo ang Tandaan. Kumuha ng API key

Tungkol sa Style Transfer

Tumatanggap ng larawan sa pamamagitan ng `image_url` at naglalapat ng isang `target_style` mula sa listahan ng 26 preset, gaya ng anime_character, cartoon_3d, cyberpunk_future, vaporwave at dark_academia. Kapag ipinasa ang `style_reference_image_url`, hinuhulaan ng modelo ang estilo mula sa larawang iyon sa halip na gumamit ng preset. Itinatakda ng `aspect_ratio` ang output frame.

Mga parameter

Ipadala ang canonical na pangalan o ang native na pangalan, hindi pareho. Mga canonical na pangalan

PangalanUri defaultPinapayagan Paglalarawan
image_urlkinakailangan image
Uriurl · image
URL ng larawang paglilipatan ng style.
style_reference_image_urlopsyonal
Uriurl · image
Style source na nangingibabaw sa napiling preset: maaaring magbigay ng larawan URL upang awtomatikong matukoy at magamit ang style nito.
target_styleopsyonal
Urienum
defaultimpressionist
anime_charactercartoon_3dhand_drawn_animationcyberpunk_futureanime_game_stylecomic_book_animationanimated_seriescartoon_animationlofi_aestheticcottagecoredark_academiay2kvaporwaveliminal_spaceweirdcoredreamcore
+10 pasynthwaveoutrunphotorealistichyperrealisticdigital_artconcept_artimpressionistanimepixel_artclaymation
aspect_ratioopsyonal
Uriobject
Output aspect ratio sa 4K.
aspect_ratio.ratioopsyonal
Urienum
default1:1
1:116:99:164:33:4
Output aspect ratio sa 4K resolution.
kinakailangan Canonical na pangalan, tinatanggap din

Tumatanggap ang mga parameter ng file ng pampublikong https:// URL, data: URI na hanggang 10 MB, o file_url ng isang upload. Mga file

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "image-apps-v2/style-transfer",
  "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": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ]
  },
  "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"
  }
}
Ikaw ang pumipili para sa iyong mga fileAng bawat outputs[].url ay kopya sa aming storage: pinananatili nang walang hanggan (sinisingil bawat GB-month) o 7 araw nang libre, ayon sa setting ng iyong account o ?storage=.
Parehong shape sa bawat modelotype, url, content_type, width, height at duration, para sa mga larawan, video at audio. Ang output ay sariling result object ng modelo.
Mga field ng output
images
array of object {url, content_type, file_name, file_size, width, height}Larawan pagkatapos ng style transfer.

Higit pang modelo: Pag-edit ng Larawan

Para sa mga AI agent: nasa Markdown ang pahinang ito sa https://doitong.com/fil/developers/models/image-apps-v2/style-transfer.md. Lahat ng modelo at gabay: https://doitong.com/developers/llms.txt