ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Ideogram V4.0q LoRA Trainer

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id ideogram/v4/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/ideogram/v4/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"

ਇਹ ਬੇਨਤੀ: $6.75 6,750 API ਕ੍ਰੈਡਿਟ · ≈ ₽711.88 ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ

ਕੈਪਸ਼ਨ ਵਾਲੀਆਂ ਤਸਵੀਰਾਂ ਦੀ zip ਤੋਂ Ideogram V4 ਲਈ ਕਸਟਮ LoRA ਨੂੰ ਟ੍ਰੇਨ ਕਰਦਾ ਹੈ

Ideogram · ਫ਼ਾਈਲ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ

ਚਿੱਤਰਾਂ ਅਤੇ captions ਵਾਲਾ training-data ZIP URL, ਜਿਸ ਵਿੱਚ ਹਰ caption ਆਪਣੀ ਚਿੱਤਰ ਦੀ filename stem ਵਾਲੀ .txt ਫ਼ਾਈਲ ਵਿੱਚ ਸਟੋਰ ਹੁੰਦਾ ਹੈ। Trainer ਉਸ target-only dataset ਤੋਂ ਕੰਮ ਕਰਦਾ ਹੈ ਜਿਸ ਨੂੰ prepare_dataset_dir ਤਿਆਰ ਕਰਦਾ ਹੈ।

ਡਿਫ਼ਾਲਟ auto

Training ਚਿੱਤਰ ਦੇ ਮਾਪ, ਜੋ preset, auto ਜਾਂ ਕਸਟਮ WIDTHxHEIGHT string ਵਜੋਂ ਦਿੱਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਰ ਮਾਪ 16 ਨਾਲ ਵੰਡਣਯੋਗ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ। Center cropping ਚਿੱਤਰਾਂ ਨੂੰ ਕਦੇ upscaling ਨਹੀਂ ਕਰਦੀ; auto dataset ਵਿੱਚ ਸਾਂਝਾ ਸਭ ਤੋਂ ਵੱਡਾ crop ਚੁਣਦਾ ਹੈ ਜਿਸ ਨੂੰ ਵੱਡਾ ਕਰਨ ਦੀ ਲੋੜ ਨਾ ਹੋਵੇ। ਪ੍ਰੀਸੈਟ ਹਨ 1024x1024 (square), 1536x1024 (landscape), 1024x1536 (portrait), 1920x1088 (widescreen), 2048x768 (ultrawide), 1024x1792 (phone_wallpaper) ਅਤੇ 1584x400 (social_banner)।

ਡਿਫ਼ਾਲਟ 1000

LoRA training ਲਈ steps ਦੀ ਗਿਣਤੀ।

ਉੱਨਤ default_caption · learning_rate

ਜਦੋਂ force_default_caption true ਹੋਵੇ ਤਾਂ ਹਰ ਚਿੱਤਰ 'ਤੇ ਲਾਗੂ ਹੋਣ ਵਾਲਾ caption, ਜੋ caption ਫ਼ਾਈਲਾਂ ਨੂੰ ਓਵਰਰਾਈਡ ਕਰਦਾ ਹੈ; ਨਹੀਂ ਤਾਂ ਇਹ ਸਿਰਫ਼ ਉਹਨਾਂ ਚਿੱਤਰਾਂ ਲਈ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ ਜਿਨ੍ਹਾਂ ਦੀ caption ਫ਼ਾਈਲ ਨਹੀਂ ਹੈ।

ਡਿਫ਼ਾਲਟ 0.0001
POST /run/ideogram/v4/trainer?wait=20 ਕੋਟ → $6.75
# 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/ideogram/v4/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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Ideogram V4.0q LoRA Trainer ਬਾਰੇ

ਵਿਅਕਤੀਗਤੀਕਰਨ ਜਾਂ ਕਿਸੇ ਖਾਸ ਸ਼ੈਲੀ ਲਈ ਤੁਹਾਡੇ ਆਪਣੇ ਡੇਟਾਸੈੱਟ ਉੱਤੇ LoRA ਫਿਟ ਕਰਦਾ ਹੈ। `images_data_url` ਤਸਵੀਰਾਂ ਦੀ zip ਵੱਲ ਇਸ਼ਾਰਾ ਕਰਦਾ ਹੈ, ਜਿਸ ਦੇ ਕੈਪਸ਼ਨ ਇੱਕੋ ਨਾਮ ਵਾਲੀਆਂ .txt ਫਾਈਲਾਂ ਤੋਂ ਪੜ੍ਹੇ ਜਾਂਦੇ ਹਨ, ਅਤੇ `default_caption` ਗੁੰਮ ਕੈਪਸ਼ਨਾਂ ਨੂੰ ਭਰਦਾ ਹੈ। `steps` 100 ਤੋਂ 40000 ਤੱਕ ਹੁੰਦਾ ਹੈ (ਡਿਫ਼ਾਲਟ 1000), ਅਤੇ `learning_rate` ਅਤੇ `resolution` ਬਦਲੇ ਜਾ ਸਕਦੇ ਹਨ। ਇਹ LoRA ਵਜ਼ਨ ਫਾਈਲ ਅਤੇ ਇੱਕ ਕੌਂਫਿਗ ਫਾਈਲ ਵਾਪਸ ਕਰਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
images_data_urlਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਚਿੱਤਰਾਂ ਅਤੇ captions ਵਾਲਾ training-data ZIP URL, ਜਿਸ ਵਿੱਚ ਹਰ caption ਆਪਣੀ ਚਿੱਤਰ ਦੀ filename stem ਵਾਲੀ .txt ਫ਼ਾਈਲ ਵਿੱਚ ਸਟੋਰ ਹੁੰਦਾ ਹੈ। Trainer ਉਸ target-only dataset ਤੋਂ ਕੰਮ ਕਰਦਾ ਹੈ ਜਿਸ ਨੂੰ prepare_dataset_dir ਤਿਆਰ ਕਰਦਾ ਹੈ।
stepsਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ1000
100 – 40,000
LoRA training ਲਈ steps ਦੀ ਗਿਣਤੀ।
default_captionਵਿਕਲਪਿਕ
ਕਿਸਮstring | null
ਜਦੋਂ force_default_caption true ਹੋਵੇ ਤਾਂ ਹਰ ਚਿੱਤਰ 'ਤੇ ਲਾਗੂ ਹੋਣ ਵਾਲਾ caption, ਜੋ caption ਫ਼ਾਈਲਾਂ ਨੂੰ ਓਵਰਰਾਈਡ ਕਰਦਾ ਹੈ; ਨਹੀਂ ਤਾਂ ਇਹ ਸਿਰਫ਼ ਉਹਨਾਂ ਚਿੱਤਰਾਂ ਲਈ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ ਜਿਨ੍ਹਾਂ ਦੀ caption ਫ਼ਾਈਲ ਨਹੀਂ ਹੈ।
resolutionਵਿਕਲਪਿਕ
ਕਿਸਮstring
ਡਿਫ਼ਾਲਟauto
Training ਚਿੱਤਰ ਦੇ ਮਾਪ, ਜੋ preset, auto ਜਾਂ ਕਸਟਮ WIDTHxHEIGHT string ਵਜੋਂ ਦਿੱਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਰ ਮਾਪ 16 ਨਾਲ ਵੰਡਣਯੋਗ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ। Center cropping ਚਿੱਤਰਾਂ ਨੂੰ ਕਦੇ upscaling ਨਹੀਂ ਕਰਦੀ; auto dataset ਵਿੱਚ ਸਾਂਝਾ ਸਭ ਤੋਂ ਵੱਡਾ crop ਚੁਣਦਾ ਹੈ ਜਿਸ ਨੂੰ ਵੱਡਾ ਕਰਨ ਦੀ ਲੋੜ ਨਾ ਹੋਵੇ। ਪ੍ਰੀਸੈਟ ਹਨ 1024x1024 (square), 1536x1024 (landscape), 1024x1536 (portrait), 1920x1088 (widescreen), 2048x768 (ultrawide), 1024x1792 (phone_wallpaper) ਅਤੇ 1584x400 (social_banner)।
learning_rateਵਿਕਲਪਿਕ
ਕਿਸਮnumber
ਡਿਫ਼ਾਲਟ0.0001
0.000001 – 0.01
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ideogram/v4/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": 6750,
    "usd": "6.75",
    "charged": 6750,
    "refunded": 0
  },
  "input": {
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "diffusers_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
    }
  },
  "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"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
diffusers_lora_file
object {url, content_type, file_name, file_size}Training ਨਾਲ ਤਿਆਰ ਕੀਤੇ Ideogram V4 LoRA weights ਦਾ URL।
config_file
object {url, content_type, file_name, file_size}ਜਨਤਕ ਤੌਰ 'ਤੇ ਉਪਲਬਧ training configuration ਦਾ URL।

ਹੋਰ ਮਾਡਲ: ਟ੍ਰੇਨਿੰਗ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/ideogram/v4/trainer.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt