Img Open English
  1. train model
Img Open English
  • AI image generation
    • sd text2image
      POST
    • sd Image to Image
      POST
    • sd controlnet
      POST
    • QueryModelList
      POST
    • QueryLoralList
      POST
    • QueryVaeList
      POST
    • queryEmbeddingList
      POST
  • task query
    • queryTaskInfoV1.0
      POST
    • queryTaskInfoV2.0
      POST
    • queryImageToolTaskInfo
      POST
  • train model
    • Submit training task
      POST
    • Training result query
      POST
  • image tool
    • Flux text2image
      POST
    • Single Face Swap V1.0
      POST
    • Single Face Swap V2.0
      POST
    • instantID
      POST
    • Face restoration
      POST
    • Super Resolution
      POST
    • image description
      POST
    • Multiple Face Swap
      POST
    • Face Detection
      POST
    • Prompt expansion
      POST
    • Hairstyle changer
      POST
    • Object Removal
      POST
    • Style recognition
      POST
    • Outpainting
      POST
    • CNT preview
      POST
    • background remove
      POST
    • image enlarge
      POST
    • image watermark
      POST
  1. train model

Submit training task

POST
/AIGCImgOpenServ/saas/modelTraining/submitTraining/Job

Request

Header Params

Body Params application/json

Example
{
    "file_url_list": [],
    "max_epochs": 20,
    "batch_size": 2,
    "learning_rate": "0.0001",
    "max_token_length": 225,
    "clip_skip": 2,
    "random_crop": 0,
    "repeats": 10,
    "mixedPrecision": "bf16",
    "savePrecision": "bf16",
    "numCpuThreadsPerProcess": 4,
    "seed": 1234,
    "cacheLatents": true,
    "cacheLatentsToDisk": false,
    "lrScheduler": "constant",
    "lrWarmupSteps": 0,
    "optimizerType": "Lion",
    "resolution": 384,
    "enableBucket": true,
    "minBucketReso": 256,
    "maxBucketReso": 2048,
    "textEncoderLr": "5e-05",
    "unetLr": "0.0001",
    "networkDropout": 0,
    "rankDropout": 0,
    "moduleDropout": 0,
    "networkModule": "networks.lora",
    "networkDim": 128,
    "networkAlpha": 128,
    "networkArgs": "",
    "v2": false,
    "flipAug": false,
    "colorAug": false,
    "noiseOffset": 0.05,
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zhiqite.com/AIGCImgOpenServ/saas/modelTraining/submitTraining/Job' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "file_url_list": [],
    "max_epochs": 20,
    "batch_size": 2,
    "learning_rate": "0.0001",
    "max_token_length": 225,
    "clip_skip": 2,
    "random_crop": 0,
    "repeats": 10,
    "mixedPrecision": "bf16",
    "savePrecision": "bf16",
    "numCpuThreadsPerProcess": 4,
    "seed": 1234,
    "cacheLatents": true,
    "cacheLatentsToDisk": false,
    "lrScheduler": "constant",
    "lrWarmupSteps": 0,
    "optimizerType": "Lion",
    "resolution": 384,
    "enableBucket": true,
    "minBucketReso": 256,
    "maxBucketReso": 2048,
    "textEncoderLr": "5e-05",
    "unetLr": "0.0001",
    "networkDropout": 0,
    "rankDropout": 0,
    "moduleDropout": 0,
    "networkModule": "networks.lora",
    "networkDim": 128,
    "networkAlpha": 128,
    "networkArgs": "",
    "v2": false,
    "flipAug": false,
    "colorAug": false,
    "noiseOffset": 0.05,
}'

Responses

🟢200OK
application/json
Body

Example
{
    "code": "string",
    "msg": "string"
}
Modified at 2024-08-08 12:04:01
Previous
queryImageToolTaskInfo
Next
Training result query
Built with