உள்ளடக்கத்திற்குச் செல்க

Train Flux LoRAs For Portraits

ஒருங்கிணை

மாடல் id flux-lora-portrait-trainer
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-lora-portrait-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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

எடுத்துக்காட்டு போன்ற கோப்புகள்: $6.00 6,000 API கிரெடிட்கள் இயக்குவதற்கு முன் உங்கள் கோப்புகள் அளவிடப்படும் இந்தப் பக்கத்தில் இயக்குங்கள்

API விசையைப் பெறுக
Black Forest Labs பயிற்சி #lora#personalization

உருவப்படங்களுக்கு நுண்மேம்படுத்தப்பட்ட FLUX LoRA பயிற்சியாளர்; பொருள் வெட்டுதல் மற்றும் சேமிப்புப் புள்ளியிலிருந்து தொடருதல் ஆதரவுடன்

Black Forest Labs · கோப்பு

உங்கள் முதல் முடிவு இங்கே வரும்

கீழே ஒரு கோரிக்கையை உருவாக்கி, உங்கள் API விசையுடன் இயக்குங்கள். வெளியீடுகள் எங்கள் சேமிப்பகத்தில் நகலெடுக்கப்பட்டு, நிரந்தரமாக அல்லது இலவசமாக 7 நாட்கள் வைக்கப்படும்.

கோரிக்கையை உருவாக்கு

மாடல் ஸ்கீமாவிலிருந்து கட்டுப்பாடுகள் உருவாக்கப்படுகின்றன. அவற்றை மாற்றும்போது குறியீடும் விலையும் புதுப்பிக்கப்படும்.

•தேவை

சீரான பாணியுள்ள படங்களுக்கான ZIP காப்பக URL-ஐ வழங்கவும்; விருப்பமாக, படங்களுடன் பொருந்தும் பெயர்களைக் கொண்ட தலைப்பு உரைக் கோப்புகளையும் சேர்க்கலாம். தலைப்பு உரையில் `[trigger]` இருக்கலாம்; trigger_word குறிப்பிடப்பட்டால், அந்த இடப்பிடிப்பான் அதன் மதிப்பால் மாற்றப்படும். குறைந்தது 10 படங்களைப் பயன்படுத்தவும்; அதிகமான தொகுப்புகள் விரும்பத்தக்கவை.

இயல்புநிலை 2500

LoRA-க்கான பயிற்சிப் படிகளின் எண்ணிக்கை.

மேம்பட்டவை trigger_phrase · data_archive_format · resume_from_checkpoint · learning_rate · multiresolution_training · subject_crop · create_masks

ஏற்கனவே உள்ள தலைப்புகளில் `[trigger]`-ஐ மாற்ற அல்லது தலைப்புகள் வழங்கப்படாதபோது தலைப்பாகப் பயன்படுத்த ஒரு தூண்டுச் சொற்றொடரை வழங்கவும் (trigger_work). None தூண்டுச் சொல்லை முடக்கும்.

Archive வடிவம்; குறிப்பிடப்படாவிட்டால் அதன் URL-இலிருந்து தீர்மானிக்கப்படும்.

இயல்புநிலை

பயிற்சியைத் தொடர்வதற்கான சோதனைச்சாவடி URL.

இயல்புநிலை 9.0e-05

பயிற்சியின்போது பயன்படுத்தப்படும் கற்றல் விகிதம்.

POST /run/flux-lora-portrait-trainer?wait=20 விலை → $6.00
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-lora-portrait-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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

இந்தக் கோரிக்கையை இயக்கு

உங்கள் key இந்த உலாவியில் மட்டுமே இருக்கும்: அது Doitong API-க்கு மட்டும் அனுப்பப்படும்; Remember-ஐத் தேர்ந்தெடுத்தால் மட்டுமே (localStorage)-ல் சேமிக்கப்படும். API விசையைப் பெறுங்கள்

Train Flux LoRAs For Portraits பற்றி

`images_data_url`-இல் உள்ள படங்களின் zip-இலிருந்து உருவப்பட மைய LoRA-வைப் பயிற்றுவிக்கிறது; குறைந்தது 10 படங்கள் பரிந்துரைக்கப்படுகின்றன. `trigger_phrase`, `learning_rate` (1e-6 முதல் 0.001 வரை), `steps` (இயல்புநிலை 2500, அதிகபட்சம் 10000), `subject_crop`, பல்தெளிவுத்திறன் பயிற்சி மற்றும் `resume_from_checkpoint` ஆகிய விருப்பங்கள் உள்ளன. எடைகளையும் config-ஐயும் திருப்பி வழங்குகிறது.

அளவுருக்கள்

பெயர்வகை இயல்புநிலைஅனுமதிக்கப்பட்டது விளக்கம்
images_data_urlதேவை
வகைstring
சீரான பாணியுள்ள படங்களுக்கான ZIP காப்பக URL-ஐ வழங்கவும்; விருப்பமாக, படங்களுடன் பொருந்தும் பெயர்களைக் கொண்ட தலைப்பு உரைக் கோப்புகளையும் சேர்க்கலாம். தலைப்பு உரையில் `[trigger]` இருக்கலாம்; trigger_word குறிப்பிடப்பட்டால், அந்த இடப்பிடிப்பான் அதன் மதிப்பால் மாற்றப்படும். குறைந்தது 10 படங்களைப் பயன்படுத்தவும்; அதிகமான தொகுப்புகள் விரும்பத்தக்கவை.
trigger_phraseவிருப்பத்தேர்வு
வகைstring | null
ஏற்கனவே உள்ள தலைப்புகளில் `[trigger]`-ஐ மாற்ற அல்லது தலைப்புகள் வழங்கப்படாதபோது தலைப்பாகப் பயன்படுத்த ஒரு தூண்டுச் சொற்றொடரை வழங்கவும் (trigger_work). None தூண்டுச் சொல்லை முடக்கும்.
learning_rateவிருப்பத்தேர்வு
வகைnumber
இயல்புநிலை9.0e-05
0.000001 – 0.001
பயிற்சியின்போது பயன்படுத்தப்படும் கற்றல் விகிதம்.
stepsவிருப்பத்தேர்வு
வகைinteger
இயல்புநிலை2500
1 – 10,000
LoRA-க்கான பயிற்சிப் படிகளின் எண்ணிக்கை.
multiresolution_trainingவிருப்பத்தேர்வு
வகைboolean
இயல்புநிலைtrue
True ஆக இருக்கும்போது பல தெளிவுத்திறன்களில் பயிற்சியை இயக்கும்.
subject_cropவிருப்பத்தேர்வு
வகைboolean
இயல்புநிலைtrue
True ஆக இருக்கும்போது படத்திலிருந்து பொருளை வெட்டி எடுப்பதை இயக்கும்.
data_archive_formatவிருப்பத்தேர்வு
வகைstring | null
Archive வடிவம்; குறிப்பிடப்படாவிட்டால் அதன் URL-இலிருந்து தீர்மானிக்கப்படும்.
resume_from_checkpointவிருப்பத்தேர்வு
வகைstring
இயல்புநிலை
பயிற்சியைத் தொடர்வதற்கான சோதனைச்சாவடி URL.
create_masksவிருப்பத்தேர்வு
வகைboolean
இயல்புநிலைfalse
True ஆக இருக்கும்போது பொருள் முகமூடி உருவாக்கத்தை இயக்கும்.
தேவை

வெளியீடு

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-lora-portrait-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": 6000,
    "usd": "6.00",
    "charged": 6000,
    "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
உங்கள் கோப்புகள், உங்கள் தேர்வுஒவ்வொரு outputs[].url-ம் எங்கள் சேமிப்பகத்தில் உள்ள ஒரு நகல்: நிரந்தரமாக (GB-மாதத்திற்கு கட்டணம்) அல்லது உங்கள் கணக்கு அமைப்பு அல்லது ?storage= மூலம் இலவசமாக 7 நாட்கள் வைக்கப்படும்.
ஒவ்வொரு மாடலிலும் ஒரே வடிவம்படங்கள், வீடியோ மற்றும் ஆடியோ ஆகிய அனைத்திற்குமான type, url, content_type, width, height மற்றும் duration. output என்பது மாதிரியின் சொந்த முடிவு பொருளாகும்.
வெளியீட்டின் புலங்கள்
diffusers_lora_file
object {url, content_type, file_name, file_size}diffusers வடிவில் பயிற்சி செய்யப்பட்ட LoRA எடைகளுக்குச் செல்லும் URL.
config_file
object {url, content_type, file_name, file_size}பயிற்சி உள்ளமைவு கோப்பு URL.

AI ஏஜெண்டுகளுக்கு: இந்தப் பக்கம் Markdown வடிவில் இங்கே உள்ளது https://doitong.com/ta/developers/models/flux-lora-portrait-trainer.md. அனைத்து மாடல்களும் வழிகாட்டிகளும்: https://doitong.com/developers/llms.txt