Skip to main content

テキストから画像

リクエストボディパラメータのマッピング

V2V3説明
extraobjectextraobject
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_promptstringnegative_promptstring内部へ移動
sampler_namestringsampler_namestring内部へ移動
batch_sizeintegerimage_numinteger変更
num_images request.image_num
n_iter非推奨
stepsstringstepsstring内部へ移動
cfg_scaleintegerguidance_scale
number(float32)
変更
cfg_scale request.guidance_scale
seedintegerseedinteger内部へ移動
heightintegerheightinteger内部へ移動
範囲変更: [128, 2048].
widthintegerwidthinteger内部へ移動
範囲変更: [128, 2048].
model_namestringmodel_namestring内部へ移動
このパラメータは model checkpoint の名前を指定します。query parameter として filter.types=checkpoint を指定して Query Model API を呼び出し、対応する sd_name 値を取得します。
restore_facesboolrestore_facesbool内部へ移動
restore_faces_model非推奨
sd_vaestringsd_vaestring内部へ移動
clip_skipintegerclip_skipinteger内部へ移動
enable_hrbooleanhires_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_upscalerrequest.hires_fix.upscaler
hr_scalenumber非推奨
hr_resize_xintegertarget_widthinteger変更
hr_resize_x request.hires_fix.target_width
hr_resize_yintegertarget_heightinteger変更
hr_resize_y request.hires_fix.target_height
img_expire_ttlinteger非推奨
デフォルト 3600s
sd_refinerobjectrefinerobject変更
sd_refiner request.refiner
checkpointstring非推奨
switch_at
number(float32)
switch_at
number(float32)
変更
sd_refiner.switch_at request.refiner.switch_at
controlnet_unitsobject[]非推奨
img2img のみ

レスポンスパラメータのマッピング

V2V3説明
code非推奨
msg非推奨
data非推奨
task_idtask_id変更
data.task_id task_id
warn非推奨

テキストから画像 V2

  • リクエスト
  • レスポンス

テキストから画像 V3

  • リクエスト
  • レスポンス

画像から画像

リクエストボディパラメータのマッピング

V2V3説明
extraobjectextraobject
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_promptstringnegative_prompt
string
内部へ移動
sampler_namestringsampler_namestring内部へ移動
batch_sizeintegerimage_numinteger変更
batch_size request.image_num
n_iterinteger非推奨
stepsstringstepsstring内部へ移動
cfg_scaleintegerguidance_scale
number(float32)
変更
cfg_scale request.guidance_scale
seedintegerseedinteger内部へ移動
heightintegerheightinteger内部へ移動
範囲変更: [128, 2048].
widthintegerwidthinteger内部へ移動
範囲変更: [128, 2048].
model_namestringmodel_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_vaestringsd_vaestring内部へ移動
clip_skipintegerclip_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_refinerobjectrefinerobject変更
sd_refiner request.refiner
checkpoint非推奨
switch_at
number(float32)
switch_at
number(float32)
内部へ移動
controlnetobject新規フィールド
controlnet_unitsobject[]unitsobject[]変更
controlnet_units request.controlnet.units
modelstringmodel_name
string
変更
controlnet_units.model
request.controlnet.units.model_name
weightnumberstrength
number(float32)
変更
controlnet_units.weight
request.controlnet.units.strength
input_imagestringimage_base64
string
変更
controlnet_units.input_image
request.controlnet.units.image_base64
modulestring,Enumpreprocessor
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非推奨

レスポンスパラメータのマッピング

V2V3説明
code非推奨
msg非推奨
data非推奨
task_idtask_id変更
data.task_id task_id
warn非推奨

画像から画像 V2

  • リクエスト
  • レスポンス

画像から画像 V3

  • リクエスト
  • レスポンス
最終更新日 2026年5月15日