Dža ko lil

Optimized Latent Consistency (SDv1.5)

Integriruj

Modelosko id lcm-sd15-i2i
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/lcm-sd15-i2i?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",
    "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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Kava mangipen: ≈$0.007 7 API krediti · ≈ ₽0.74 Phir les kate

Lel API klidin
Open model Editime e kipesko Sig #diffusion#lcm#real-time

Sikavno image-to-image transformo pe Stable Diffusion 1.5, latentno konsistencijasa thaj kontrolasa e zorako

Open model · Kip

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul

Phen o kipo savo kames te kerel pes, use but detail sar šaj te avel maj lačho rezultato.

•trubul image_url
Čhiv jekh fajl, vaj

Base kipo baši processing.

num_images standardno 1

Baripen e listosko e rezultujime kiponge, kerde le khetane promptosa thaj negative promptosa, numa jekh aver seed baši sako kipo.

Lučhe negative_prompt · mask · request_id · strength · guidance_scale · num_inference_steps · seed · enable_safety_checks · enable_safety_checker
standardno

Negativno prompto savo phenel save detajura na kamen pe o kipo. Šaj te isključil boje, objektura, pejzažo vaj maj cikne detajura thaj kvalitetura, sar mustaći, mutno dikhimos vaj teluni rezolucija.

mask_url
Čhiv jekh fajl, vaj

URL ko mask savo dino baši generic LCM processing kompatibiliteto.

standardno

Mangipnasko identifikator vaš jekh response-sa jekh mangipnasa savo les kerda.

standardno 0.8

Setting e kiposke zorako.

standardno 1

Zor e promptoske pačajipaski vaś izbor e kiposko, sikavdi sar CFG (Classifier Free Guidance).

standardno 4

Gendo e inferencake stepengo vaš kipo keripe; maj bare genda den maj lačhi kipo kvaliteta, numa lengo keripe si maj lungo.

Seed vaš reprodukcia e kipengo ande Stable Diffusion. O kipo šaj te reprodukčarel pes ekzaktno pe sa keripena te mukhes isto o modelesko version, prompto thaj seed.

POST /run/lcm-sd15-i2i?wait=20 hesab → $0.007
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/lcm-sd15-i2i?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",
    "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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Optimized Latent Consistency (SDv1.5)

Paruvel o stilo vaj o bazako kipo andar jekh tekstosko prompto, jekhe latentno konsistencijake metodosa saveske trubun numaj cara pasa. `num_inference_steps` standardno si 4 thaj džal dži ko 12. `strength` (0 dži ko 1) thovel keci o rezultato durǎrel pes andar o inputo, thaj šaj te del dži ko 8 kipa pe svako akharipe. Lel opcionalno `mask_url`, `negative_prompt` thaj `seed`.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
Phen o kipo savo kames te kerel pes, use but detail sar šaj te avel maj lačho rezultato.
image_urltrubul image
Tipurl · image
Base kipo baši processing.
mask_urlopcionalno mask
Tipurl · image
URL ko mask savo dino baši generic LCM processing kompatibiliteto.
strengthopcionalno
Tipnumber
standardno0.8
0 – 1
Setting e kiposke zorako.
negative_promptopcionalno
Tipstring
standardno
Negativno prompto savo phenel save detajura na kamen pe o kipo. Šaj te isključil boje, objektura, pejzažo vaj maj cikne detajura thaj kvalitetura, sar mustaći, mutno dikhimos vaj teluni rezolucija.
seedopcionalno
Tipinteger | null
Seed vaš reprodukcia e kipengo ande Stable Diffusion. O kipo šaj te reprodukčarel pes ekzaktno pe sa keripena te mukhes isto o modelesko version, prompto thaj seed.
guidance_scaleopcionalno
Tipnumber
standardno1
0 – 16
Zor e promptoske pačajipaski vaś izbor e kiposko, sikavdi sar CFG (Classifier Free Guidance).
num_inference_stepsopcionalno
Tipinteger
standardno4
1 – 12
Gendo e inferencake stepengo vaš kipo keripe; maj bare genda den maj lačhi kipo kvaliteta, numa lengo keripe si maj lungo.
num_imagesopcionalno num_outputs
Tipinteger
standardno1
1 – 8
Baripen e listosko e rezultujime kiponge, kerde le khetane promptosa thaj negative promptosa, numa jekh aver seed baši sako kipo.
enable_safety_checksopcionalno
Tipboolean
standardnotrue
Toggle baši rezultatoski sigurnost, savo numa autorizime kontura šaj te phanden; sa mangipena bi autorizacijasa keren kontrolura. Kana si true, screeninela o kerdo kipo baši šajutno unsafe soderžaj thaj zameninela les kalo kiposa kana vareso avel detektime.
request_idopcionalno
Tipstring
standardno
Mangipnasko identifikator vaš jekh response-sa jekh mangipnasa savo les kerda.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Screening šaj te avel relaksirime te postavil pes false, numa kana o manglo si autorizuime.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "lcm-sd15-i2i",
  "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": 7,
    "usd": "0.007",
    "charged": 7,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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",
        "width": 1024,
        "height": 768,
        "content_type": "image/jpeg"
      }
    ],
    "timings": {},
    "seed": 42,
    "num_inference_steps": 4,
    "request_id": "",
    "nsfw_content_detected": [
      false
    ]
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
images
array of object {url, width, height, content_type}Fajloskere informacie vaš e kerde kipura.
timings
object
seed
integerKipo-generiripeqo seed, inkludirindoj o randomno kidlo valoro kana o inputo na sas seed; averčes, repetirisar o dindo valoro.
num_inference_steps
integerRezolvirime gendo e inference steps-ongo baši kiposko keripe, lelpe katar o inputo kana si dino, vaj katar o standardno.
request_id
stringMangipnasko identifikator vaš jekh response-sa jekh mangipnasa savo les kerda.
nsfw_content_detected
array of booleanRezultatura e sigurnoske po kipo sar boolean lista: sako zapis sikavel šajutno unsafe soderžaj, vaj si false kana o safety checking si phando.

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/lcm-sd15-i2i.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt