Peke ki ngā ihirangi

Telestyle V2 Style Transfer

Whakauru

id tauira telestyle-v2
# 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/telestyle-v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "style_image_url": "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.071 71 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Open model Whakatika Atahanga #stylized#transform#editing

He whakawhiti kāhua e tā-hoahoa anō ana i tētahi atahanga ihirangi mā te āhua o tētahi atahanga tohutoro kāhua tuarua

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
Whakataka he kōnae,

URL e tohu ana ki te atahanga e whakarato ana i te kaupapa me te hanganga mō te whakawhiti āhua. Ka pupuritia ēnei e rua i te wā ka whiwhi āhua te atahanga.

•e hiahiatia ana
Whakataka he kōnae,

URL o tētahi atahanga hei whakarerekē i te āhua o te atahanga ihirangi. Mā te tohutoro e whakarato te rauemi me te āhua toi, me te tae me te rama.

image_size

Ngā rahinga atahanga putanga, ka whakakapi i ngā rahinga o te atahanga ihirangi ina tukuna anake.

num_images taunoa 1

Te tatau atahanga e tonoa ana mō te whakaputanga.

Arā atu negative_prompt · acceleration · output_format · lora_scale · lightning_lora_scale · num_inference_steps · guidance_scale · seed · use_lightning_lora · use_content_description · use_style_description · enable_safety_checker
taunoa

Te tohutohu tōraro e whakamahia ana i te whakaputanga.

acceleration taunoa none

Aratau whakatere whakaputa atahanga: ka whakamahi a 'regular' i te ara whakatere whakararo me ngā hīkoi 10 kua pūmau, motuhake i num_inference_steps. Ko te aratau taunoa, 'none', ka whai kē i num_inference_steps; nō reira ka whakamahi te tatūnga Lightning taunoa i ōna hīkoi 4 kua whirihorahia.

output_format taunoa png

Te hōputu kōnae mō te atahanga ka puta.

taunoa 1

Te kaha pūurutau TeleStyleV2, ka taea te whakaheke i raro i te uara 1.0 o te whakatinanatanga tohutoro mō te pānga āhua māmā ake.

taunoa 1

Te kaha Lightning LoRA, ka taea te whakaheke i raro i te uara 1.0 o te whakatinanatanga tohutoro mō te pānga āhua māmā ake.

taunoa 4

Tau o ngā hipanga whakatauira hei whakahaere.

taunoa 1

Tautuhia te kaha o te whai a te whakaputanga i tō tohutohu mā te CFG, he whakapoto mō te ārahitanga kore whakarōpū.

Kākano mō ngā putanga atahanga ka taea te tukurua. Kia whakaputa anō ai i te atahanga i ia wā, kaua e whakarerekē i te kākano, ngā tāuru katoa me te putanga o te tauira.

POST /run/telestyle-v2?wait=20 utu → $ 0.071
# 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/telestyle-v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "style_image_url": "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ō Telestyle V2 Style Transfer

Ka whakamahi i `content_image_url`, ka pupuritia te kaupapa me te whakatakotoranga, me `style_image_url`, ka whakamahia tōna kāhua, rauemi, rama me te tae. Mā `lora_scale` (0 ki te 4) e whakahaere te kaha kāhua, ā, ka whakakā taunoa te Lightning LoRA me te taunoa 4-taahiraa. Ka taea te whakarite te rahi whakaputa mā ngā tatūkē `image_size`, ā, ka taea te whakaputa 1 ki te 4 atahanga ia karanga hei jpeg, png rānei.

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
content_image_urle hiahiatia ana
Momourl · image
URL e tohu ana ki te atahanga e whakarato ana i te kaupapa me te hanganga mō te whakawhiti āhua. Ka pupuritia ēnei e rua i te wā ka whiwhi āhua te atahanga.
style_image_urle hiahiatia ana
Momourl · image
URL o tētahi atahanga hei whakarerekē i te āhua o te atahanga ihirangi. Mā te tohutoro e whakarato te rauemi me te āhua toi, me te tae me te rama.
lora_scalekōwhiringa
Momonumber
Taunoa1
0 – 4
Te kaha pūurutau TeleStyleV2, ka taea te whakaheke i raro i te uara 1.0 o te whakatinanatanga tohutoro mō te pānga āhua māmā ake.
use_lightning_lorakōwhiringa
Momoboolean
Taunoatrue
Ka whakahaere mēnā ka whakamahia a Lightning LoRA ki te taha o te LoRA taunoa ina true.
lightning_lora_scalekōwhiringa
Momonumber
Taunoa1
0 – 4
Te kaha Lightning LoRA, ka taea te whakaheke i raro i te uara 1.0 o te whakatinanatanga tohutoro mō te pānga āhua māmā ake.
use_content_descriptionkōwhiringa
Momoboolean
Taunoatrue
Whakanuia te tohutohu ki te whakamārama o te atahanga ihirangi ina true; mā tētahi VLM e tuhi te whakamārama.
use_style_descriptionkōwhiringa
Momoboolean
Taunoatrue
Whakanuia te tohutohu ki te whakamārama o te atahanga āhua ina true; mā tētahi VLM e tuhi te whakamārama.
image_sizekōwhiringa
Momoobject
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Ngā rahinga atahanga putanga, ka whakakapi i ngā rahinga o te atahanga ihirangi ina tukuna anake.
negative_promptkōwhiringa
Momostring
Taunoa
Te tohutohu tōraro e whakamahia ana i te whakaputanga.
num_inference_stepskōwhiringa
Momointeger
Taunoa4
2 – 50
Tau o ngā hipanga whakatauira hei whakahaere.
guidance_scalekōwhiringa
Momonumber
Taunoa1
0 – 20
Tautuhia te kaha o te whai a te whakaputanga i tō tohutohu mā te CFG, he whakapoto mō te ārahitanga kore whakarōpū.
accelerationkōwhiringa
Momoenum
Taunoanone
noneregular
Aratau whakatere whakaputa atahanga: ka whakamahi a 'regular' i te ara whakatere whakararo me ngā hīkoi 10 kua pūmau, motuhake i num_inference_steps. Ko te aratau taunoa, 'none', ka whai kē i num_inference_steps; nō reira ka whakamahi te tatūnga Lightning taunoa i ōna hīkoi 4 kua whirihorahia.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 4
Te tatau atahanga e tonoa ana mō te whakaputanga.
seedkōwhiringa
Momointeger | null
Kākano mō ngā putanga atahanga ka taea te tukurua. Kia whakaputa anō ai i te atahanga i ia wā, kaua e whakarerekē i te kākano, ngā tāuru katoa me te putanga o te tauira.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Whakahohe kaitaki haumaru; mā true e whakahohe te tirotiro.
output_formatkōwhiringa
Momoenum
Taunoapng
jpegpng
Te hōputu kōnae mō te atahanga ka puta.
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": "telestyle-v2",
  "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": 71,
    "usd": "0.071",
    "charged": 71,
    "refunded": 0
  },
  "input": {
    "content_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "style_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
      }
    ],
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "",
    "seed": 42
  },
  "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
images
array of object {url, content_type, file_name, file_size, width, height}Atahanga, atahanga rānei kua hoatu te kāhua.
has_nsfw_concepts
array of booleanE tohu ana mēnā ka kitea ngā ariā NSFW i te atahanga kua whakaputaina.
prompt
stringTohutohu i hangaia mai i te atahanga ihirangi me te atahanga kāhua.
seed
integerTe uara kākano i whakamahia i te whakaputanga.

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