V2 | V3 | Description |
---|---|---|
**extra**object | **extra**object | |
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 | Deprecated | |
response\_image\_type Enum: `png`, `jpeg` |
response\_image\_type Enum: `png, webp, jpeg` |
V3 adds support for `webp`image format |
**request**object | New Field All image generation parameters must be passed via the `request`in V3 |
|
**prompt**string \ |
promptstring | Moved Inside |
lorasobject\[] | Moved Inside **Migrate LoRA usage: From **`prompt`** to **`request.loras`** parameter** |
|
model\_namestring | New Field Name of lora, retrieve the corresponding sd\_name\_in\_api value by invoking the [Get Model API](https://novita.ai/docs/api-reference/model-apis-get-model) endpoint with filter.types=lora as the query parameter. |
|
strengthnumber(float32) | New Field The strength value of lora. The larger the value, the more biased the effect is towards lora, Range \[0, 1] |
|
**negative\_prompt**string | negative\_promptstring | Moved Inside |
**sampler\_name**string | sampler\_namestring | Moved Inside |
**batch\_size**integer | image\_numinteger | Changed `num_images` **→** `request.image_num` |
**n\_iter** | Deprecated | |
**steps**string | stepsstring | Moved Inside |
**cfg\_scale**integer | guidance\_scale number(float32) |
Changed `cfg_scale`**→** `request.guidance_scale` |
**seed**integer | seedinteger | Moved Inside |
**height**integer | heightinteger | Moved Inside Range Change: \[128, 2048]. |
**width**integer | widthinteger | Moved Inside Range Change: \[128, 2048]. |
**model\_name**string | model\_namestring | Moved Inside This parameter specifies the name of the model checkpoint. Retrieve the corresponding sd\_name value by invoking the [Query Model](https://novita.ai/docs/api-reference/model-apis-get-model) API with filter.types=checkpoint as the query parameter. |
**restore\_faces**bool | restore\_facesbool | Moved Inside |
**restore\_faces\_model** | Deprecated | |
**sd\_vae**string | sd\_vaestring | Moved Inside |
**clip\_skip**integer | clip\_skipinteger | Moved Inside |
**enable\_hr**boolean | hires\_fixobject | Changed `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` |
Changed `hr_upscaler`**→**`request.hires_fix.upscaler` |
**hr\_scale**number | Deprecated | |
**hr\_resize\_x**integer | target\_widthinteger | Changed `hr_resize_x`**→** `request.hires_fix.target_width` |
**hr\_resize\_y**integer | target\_heightinteger | Changed `hr_resize_y`**→** `request.hires_fix.target_height` |
**img\_expire\_ttl**integer | Deprecated Default 3600s |
|
**sd\_refiner**object | refinerobject | Changed `sd_refiner`**→** `request.refiner` |
checkpointstring | Deprecated | |
switch\_at number(float32) |
switch\_at number(float32) |
Changed `sd_refiner.switch_at`**→** `request.refiner.switch_at` |
**controlnet\_units**object\[] | Deprecated `img2img` Only |
V2 | V3 | Description |
---|---|---|
**code** | Deprecated | |
**msg** | Deprecated | |
**data** | Deprecated | |
task\_id | **task\_id** | Changed `data.task_id`**→** `task_id` |
warn | Deprecated |
V2 | V3 | Description |
---|---|---|
**extra**object | **extra**object | |
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 | Deprecated | |
response\_image\_type Enum: `png`, `jpeg` |
response\_image\_type Enum: `png, webp, jpeg` |
V3 adds support for `webp`image format |
**request**object | New field All image generation parameters must be passed via the `request`in V3 |
|
**prompt**string \ |
promptstring | Moved Inside |
lorasobject\[] | Moved Inside **Migrate LoRA usage: From **`prompt`** to **`request.loras`** parameter** |
|
model\_namestring | New Field Name of lora, retrieve the corresponding sd\_name\_in\_api value by invoking the [Get Model API](https://novita.ai/docs/api-reference/model-apis-get-model) endpoint with filter.types=lora as the query parameter. |
|
strength number(float32) |
New Field The strength value of lora. The larger the value, the more biased the effect is towards lora, Range \[0, 1] |
|
**negative\_prompt**string | negative\_prompt string |
Moved Inside |
**sampler\_name**string | sampler\_namestring | Moved Inside |
**batch\_size**integer | image\_numinteger | Changed `batch_size`**→** `request.image_num` |
**n\_iter**integer | Deprecated | |
**steps**string | stepsstring | Moved Inside |
**cfg\_scale**integer | guidance\_scale number(float32) |
Changed `cfg_scale`**→** `request.guidance_scale` |
**seed**integer | seedinteger | Moved Inside |
**height**integer | heightinteger | Moved Inside Range Change: \[128, 2048]. |
**width**integer | widthinteger | Moved Inside Range Change: \[128, 2048]. |
**model\_name**string | model\_namestring | Moved Inside This parameter specifies the name of the model checkpoint. Retrieve the corresponding sd\_name value by invoking the [Query Model](https://novita.ai/docs/api-reference/model-apis-get-model) API with filter.types=checkpoint as the query parameter. |
**init\_images**string\[] | image\_base64string | Changed `init_images`**→** `request.image_base64` |
**denoising\_strength** number(float) |
strength number(float) |
Changed `denoising_strength`**→** `request.strength` |
**restore\_faces**bool | Deprecated | |
**sd\_vae**string | sd\_vaestring | Moved Inside |
**clip\_skip**integer | clip\_skipinteger | Moved Inside |
**mask**string | Deprecated Recommendation: Use V3 Inpainting API |
|
**mask\_blur**integer | Deprecated Recommendation: Use V3 Inpainting API |
|
**resize\_mode**integer | Deprecated | |
**image\_cfg\_scale**integer | Deprecated | |
**inpainting\_fill**integer | Deprecated Recommendation: Use V3 Inpainting API |
|
**inpaint\_full\_res**integer | Deprecated Recommendation: Use V3 Inpainting API |
|
**inpaint\_full\_res\_padding** integer |
Deprecated Recommendation: Use V3 Inpainting API |
|
**inpainting\_mask\_invert** integer |
Deprecated Recommendation: Use V3 Inpainting API |
|
**initial\_noise\_multiplier** number(float32) |
Deprecated | |
**img\_expire\_ttl**integer | Deprecated Default 3600s |
|
**sd\_refiner**object | refinerobject | Changed `sd_refiner`**→** `request.refiner` |
checkpoint | Deprecated | |
switch\_at number(float32) |
switch\_at number(float32) |
Moved Inside |
controlnetobject | New Field | |
**controlnet\_units**object\[] | unitsobject\[] | Changed `controlnet_units`**→** `request.controlnet.units` |
modelstring | model\_name string |
Changed `controlnet_units.model`**→** `request.controlnet.units.model_name` |
weightnumber | strength number(float32) |
Changed `controlnet_units.weight`**→** `request.controlnet.units.strength` |
input\_imagestring | image\_base64 string |
Changed `controlnet_units.input_image`**→** `request.controlnet.units.image_base64` |
modulestring,Enum | preprocessor string,Enum |
Changed `controlnet_units.module`**→** `request.controlnet.units.preprocessor` |
control\_mode | Deprecated | |
mask | Deprecated Recommendation: Use V3 Inpainting API |
|
resize\_mode | Deprecated | |
processor\_res | Deprecated | |
threshold\_a | Deprecated | |
threshold\_b | Deprecated | |
guidance\_start number(float32) |
guidance\_start number(float32) |
Moved Inside |
guidance\_end number(float32) |
guidance\_end number(float32) |
Moved Inside |
pixel\_perfect | Deprecated |
V2 | V3 | Description |
---|---|---|
code | Deprecated | |
msg | Deprecated | |
data | Deprecated | |
task\_id | **task\_id** | Changed `data.task_id`**→** `task_id` |
warn | Deprecated |