Dža ko lil

Krea 2 Trainer

Integriruj

Modelosko id krea-2-trainer
# 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/krea-2-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Fajlo sar o misalo: $0.30 300 API krediti · ≈ ₽31.97 tire fajlo si merime angl-o phiripen Phir les kate

Lel API klidin
Krea Sikavipen #lora#personalization

Trenirinel custom Krea 2 LoRA andar zip fotografijendar, opcionalne auto-captioning-esa

Krea · Fajlo

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.

resolution standardno 768

Rezolucija baši sikavipen, kaj 1024 favorizinel maksimalno fino detalo, thaj 768 del približno 1.7x maj sigutno sikavipen, maj cikno VRAM thaj skoro identikano stilo-kvaliteto. O kipo skalirinelaspe te pherel o target square, pale cropinelaspe ande o centro.

•trubul

URL e treningoske-kiposke .zip-eske savo si les PNG/JPG/JPEG/WebP fajlura; mangipen phagerel 422-esa te varesavo kipo na si leske caption fajlo vaj na-empty `trigger_phrase`. Captionura si opcionalne kana `trigger_phrase` del e fallback, thaj averčhandes istiv matching filename stemura: ROOT.EXT phandel pes ROOT.txt-esa, sar 001.jpg thaj 001.txt.

standardno 100

Gendo e nevešaripaski fazako vaš LoRA trening.

Lučhe auto_captioning · trigger_phrase · learning_rate · debug_dataset
auto_captioning standardno Off

Opcionalno modos vaś kipo-deskripcie: Object/Character, Style thaj Custom akharen dataset-captioner e google/gemma-4-31B-it modelosa, numa Off mukhel e akanutni kondicia kaj sakone kipos te ovel .txt deskripcia e sajekh bazutne anavesa, vaj te lel pes trigger_phrase sar rezervno varianta. Vaś generisarde deskripcie, trigger_phrase del pes ando prompto vaś deskripcie thaj normaliziril pes ande rezultirime paśutne fajlura palal e alosardi LoRA konvencia vaś deskripcie.

standardno

DreamBooth-stilosko instance phrase manglo kana `auto_captioning` si Off thaj varesave kiposke na si caption fajlo. Del captionura kotar na-sas .txt fajlura thaj del angluno teksto standardnone validaciake promptonge.

standardno 0.0005

Sikavipaski rata e LoRA B-factor-eski, savi priminelaspe vi pe A te `lora_a_lr_multiplier=1`; tel muon, reprezentinelas e AdamW-ekvivalentna ratake skalate pala match_rms_adamw. Baši konstantno schedule, Krea rekomendinel o interval 3e-4–7e-4.

POST /run/krea-2-trainer?wait=20 hesab → $0.30
# 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/krea-2-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_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.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 Krea 2 Trainer

Kerel fine-tuning pe jekh LoRA pe kipengo .zip ko `images_data_url`, opcionalno .txt caption-enca e sajekh anavesa thaj jekh `trigger_phrase`. E `auto_captioning` modura si Off, Object/Character, Style thaj Custom. `steps` si 50 dži ko 10000 (standardno 100), `resolution` si 768 vaj 1024. Del LoRA pharipen thaj jekh konfiguracijako fajlo.

Parametra

NavTip standardnoMuklo Vakeripe
images_data_urltrubul
Tipstring
URL e treningoske-kiposke .zip-eske savo si les PNG/JPG/JPEG/WebP fajlura; mangipen phagerel 422-esa te varesavo kipo na si leske caption fajlo vaj na-empty `trigger_phrase`. Captionura si opcionalne kana `trigger_phrase` del e fallback, thaj averčhandes istiv matching filename stemura: ROOT.EXT phandel pes ROOT.txt-esa, sar 001.jpg thaj 001.txt.
trigger_phraseopcionalno
Tipstring
standardno
DreamBooth-stilosko instance phrase manglo kana `auto_captioning` si Off thaj varesave kiposke na si caption fajlo. Del captionura kotar na-sas .txt fajlura thaj del angluno teksto standardnone validaciake promptonge.
auto_captioningopcionalno
Tipenum
standardnoOff
OffObject/CharacterStyleCustom
Opcionalno modos vaś kipo-deskripcie: Object/Character, Style thaj Custom akharen dataset-captioner e google/gemma-4-31B-it modelosa, numa Off mukhel e akanutni kondicia kaj sakone kipos te ovel .txt deskripcia e sajekh bazutne anavesa, vaj te lel pes trigger_phrase sar rezervno varianta. Vaś generisarde deskripcie, trigger_phrase del pes ando prompto vaś deskripcie thaj normaliziril pes ande rezultirime paśutne fajlura palal e alosardi LoRA konvencia vaś deskripcie.
stepsopcionalno
Tipinteger
standardno100
50 – 10,000
Gendo e nevešaripaski fazako vaš LoRA trening.
learning_rateopcionalno
Tipnumber
standardno0.0005
0.000001 – 0.01
Sikavipaski rata e LoRA B-factor-eski, savi priminelaspe vi pe A te `lora_a_lr_multiplier=1`; tel muon, reprezentinelas e AdamW-ekvivalentna ratake skalate pala match_rms_adamw. Baši konstantno schedule, Krea rekomendinel o interval 3e-4–7e-4.
resolutionopcionalno
Tipenum
standardno768
7681024
Rezolucija baši sikavipen, kaj 1024 favorizinel maksimalno fino detalo, thaj 768 del približno 1.7x maj sigutno sikavipen, maj cikno VRAM thaj skoro identikano stilo-kvaliteto. O kipo skalirinelaspe te pherel o target square, pale cropinelaspe ande o centro.
debug_datasetopcionalno
Tipboolean
standardnofalse
Opcija baši dataset-esko download, savi sikavel sa so o sikavipen përdizal, paketinime sar archive palal caption backfill vaj automatikano caption keripe.
trubul

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "krea-2-trainer",
  "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": 300,
    "usd": "0.30",
    "charged": 300,
    "refunded": 0
  },
  "input": {
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "lora_file": {
      "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
    },
    "config_file": {
      "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
    },
    "prompt_enhancement_system_prompt": "string",
    "debug_dataset": {
      "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
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "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
lora_file
object {url, content_type, file_name, file_size}Download URL baši e sikavde Krea-2 LoRA weights ande safetensors formato.
config_file
object {url, content_type, file_name, file_size}Link ko JSON fajlo savo si les konfiguracija e sikavipaski/LoRA.
prompt_enhancement_system_prompt
string | nullSystem prompto sikavdo kana `auto_captioning` si aktivno, te žutil te irinel vaj te lačharel inference promptura khetane e konvencijasa e automatikane caption-ime sikavipase.
debug_dataset
object {url, content_type, file_name, file_size} | nullDownload e sikavipasko data, sikavdo kana `debug_dataset` si aktivno: archive ande savo si o prigotovitome dataset thaj leske automatikane kerde captionura.

Bute modeli: Sikavipen

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