テキストから画像
リクエストボディパラメータのマッピング
| V2 | V3 | 説明 |
|---|---|---|
| extraobject | extraobject | |
| enable_nsfw_detection boolean | enable_nsfw_detection boolean | |
| nsfw_detection_level Enum: 0, 1, 2 | nsfw_detection_level Enum: 0, 1, 2 | |
| enable_progress_info | 非推奨 | |
| response_image_type Enum: png, jpeg | response_image_type Enum: png, webp, jpeg | V3 では webp画像形式のサポートが追加されました |
| requestobject | 新規フィールド V3 では、すべての画像生成パラメータを request経由で渡す必要があります | |
| promptstring <lora:$sd_name:$weight> | promptstring | 内部へ移動 |
| lorasobject[] | 内部へ移動 LoRA の使用方法を移行: prompt から request.loras パラメータへ | |
| model_namestring | 新規フィールド lora の名前。query parameter として filter.types=lora を指定して Get Model API エンドポイントを呼び出し、対応する sd_name_in_api 値を取得します。 | |
| strengthnumber(float32) | 新規フィールド lora の strength 値。値が大きいほど、効果は lora 寄りになります。範囲 [0, 1] | |
| negative_promptstring | negative_promptstring | 内部へ移動 |
| sampler_namestring | sampler_namestring | 内部へ移動 |
| batch_sizeinteger | image_numinteger | 変更num_images → request.image_num |
| n_iter | 非推奨 | |
| stepsstring | stepsstring | 内部へ移動 |
| cfg_scaleinteger | guidance_scale number(float32) | 変更cfg_scale→ request.guidance_scale |
| seedinteger | seedinteger | 内部へ移動 |
| heightinteger | heightinteger | 内部へ移動 範囲変更: [128, 2048]. |
| widthinteger | widthinteger | 内部へ移動 範囲変更: [128, 2048]. |
| model_namestring | model_namestring | 内部へ移動 このパラメータは model checkpoint の名前を指定します。query parameter として filter.types=checkpoint を指定して Query Model API を呼び出し、対応する sd_name 値を取得します。 |
| restore_facesbool | restore_facesbool | 内部へ移動 |
| restore_faces_model | 非推奨 | |
| sd_vaestring | sd_vaestring | 内部へ移動 |
| clip_skipinteger | clip_skipinteger | 内部へ移動 |
| enable_hrboolean | hires_fixobject | 変更enable_hr→ request.hires_fix |
| hr_upscaler Enum: Latent, ESRGAN_4x, R-ESRGAN 4x+, R-ESRGAN 4x+ Anime6B | upscaler Enum: RealESRGAN_x4plus_anime_6B, RealESRNet_x4plus,Latent | 変更hr_upscaler→request.hires_fix.upscaler |
| hr_scalenumber | 非推奨 | |
| hr_resize_xinteger | target_widthinteger | 変更hr_resize_x→ request.hires_fix.target_width |
| hr_resize_yinteger | target_heightinteger | 変更hr_resize_y→ request.hires_fix.target_height |
| img_expire_ttlinteger | 非推奨 デフォルト 3600s | |
| sd_refinerobject | refinerobject | 変更sd_refiner→ request.refiner |
| checkpointstring | 非推奨 | |
| switch_at number(float32) | switch_at number(float32) | 変更sd_refiner.switch_at→ request.refiner.switch_at |
| controlnet_unitsobject[] | 非推奨img2img のみ |
レスポンスパラメータのマッピング
| V2 | V3 | 説明 |
|---|---|---|
| code | 非推奨 | |
| msg | 非推奨 | |
| data | 非推奨 | |
| task_id | task_id | 変更data.task_id→ task_id |
| warn | 非推奨 |
例
テキストから画像 V2
- リクエスト
- レスポンス
テキストから画像 V3
- リクエスト
- レスポンス
画像から画像
リクエストボディパラメータのマッピング
| V2 | V3 | 説明 |
|---|---|---|
| extraobject | extraobject | |
| enable_nsfw_detection boolean | enable_nsfw_detection boolean | |
| nsfw_detection_level Enum: 0, 1, 2 | nsfw_detection_level Enum: 0, 1, 2 | |
| enable_progress_info | 非推奨 | |
| response_image_type Enum: png, jpeg | response_image_type Enum: png, webp, jpeg | V3 では webp画像形式のサポートが追加されました |
| requestobject | 新規フィールド V3 では、すべての画像生成パラメータを request経由で渡す必要があります | |
| promptstring <lora:$sd_name:$weight> | promptstring | 内部へ移動 |
| lorasobject[] | 内部へ移動 LoRA の使用方法を移行: prompt から request.loras パラメータへ | |
| model_namestring | 新規フィールド lora の名前。query parameter として filter.types=lora を指定して Get Model API エンドポイントを呼び出し、対応する sd_name_in_api 値を取得します。 | |
| strength number(float32) | 新規フィールド lora の strength 値。値が大きいほど、効果は lora 寄りになります。範囲 [0, 1] | |
| negative_promptstring | negative_prompt string | 内部へ移動 |
| sampler_namestring | sampler_namestring | 内部へ移動 |
| batch_sizeinteger | image_numinteger | 変更batch_size→ request.image_num |
| n_iterinteger | 非推奨 | |
| stepsstring | stepsstring | 内部へ移動 |
| cfg_scaleinteger | guidance_scale number(float32) | 変更cfg_scale→ request.guidance_scale |
| seedinteger | seedinteger | 内部へ移動 |
| heightinteger | heightinteger | 内部へ移動 範囲変更: [128, 2048]. |
| widthinteger | widthinteger | 内部へ移動 範囲変更: [128, 2048]. |
| model_namestring | model_namestring | 内部へ移動 このパラメータは model checkpoint の名前を指定します。query parameter として filter.types=checkpoint を指定して Query Model API を呼び出し、対応する sd_name 値を取得します。 |
| init_imagesstring[] | image_base64string | 変更init_images→ request.image_base64 |
| denoising_strength number(float) | strength number(float) | 変更denoising_strength→ request.strength |
| restore_facesbool | 非推奨 | |
| sd_vaestring | sd_vaestring | 内部へ移動 |
| clip_skipinteger | clip_skipinteger | 内部へ移動 |
| maskstring | 非推奨 推奨: V3 Inpainting API を使用してください | |
| mask_blurinteger | 非推奨 推奨: V3 Inpainting API を使用してください | |
| resize_modeinteger | 非推奨 | |
| image_cfg_scaleinteger | 非推奨 | |
| inpainting_fillinteger | 非推奨 推奨: V3 Inpainting API を使用してください | |
| inpaint_full_resinteger | 非推奨 推奨: V3 Inpainting API を使用してください | |
| inpaint_full_res_padding integer | 非推奨 推奨: V3 Inpainting API を使用してください | |
| inpainting_mask_invert integer | 非推奨 推奨: V3 Inpainting API を使用してください | |
| initial_noise_multiplier number(float32) | 非推奨 | |
| img_expire_ttlinteger | 非推奨 デフォルト 3600s | |
| sd_refinerobject | refinerobject | 変更sd_refiner→ request.refiner |
| checkpoint | 非推奨 | |
| switch_at number(float32) | switch_at number(float32) | 内部へ移動 |
| controlnetobject | 新規フィールド | |
| controlnet_unitsobject[] | unitsobject[] | 変更controlnet_units→ request.controlnet.units |
| modelstring | model_name string | 変更controlnet_units.model→ request.controlnet.units.model_name |
| weightnumber | strength number(float32) | 変更controlnet_units.weight→ request.controlnet.units.strength |
| input_imagestring | image_base64 string | 変更controlnet_units.input_image→ request.controlnet.units.image_base64 |
| modulestring,Enum | preprocessor string,Enum | 変更controlnet_units.module→ request.controlnet.units.preprocessor |
| control_mode | 非推奨 | |
| mask | 非推奨 推奨: V3 Inpainting API を使用してください | |
| resize_mode | 非推奨 | |
| processor_res | 非推奨 | |
| threshold_a | 非推奨 | |
| threshold_b | 非推奨 | |
| guidance_start number(float32) | guidance_start number(float32) | 内部へ移動 |
| guidance_end number(float32) | guidance_end number(float32) | 内部へ移動 |
| pixel_perfect | 非推奨 |
レスポンスパラメータのマッピング
| V2 | V3 | 説明 |
|---|---|---|
| code | 非推奨 | |
| msg | 非推奨 | |
| data | 非推奨 | |
| task_id | task_id | 変更data.task_id→ task_id |
| warn | 非推奨 |
例
画像から画像 V2
- リクエスト
- レスポンス
画像から画像 V3
- リクエスト
- レスポンス