@leonardo-ai/sdk 1.61.0 → 1.64.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -12
- package/dist/internal/utils/queryparams.js +4 -2
- package/dist/internal/utils/security.js +1 -1
- package/dist/sdk/element.d.ts +14 -0
- package/dist/sdk/element.js +145 -0
- package/dist/sdk/models/operations/creategeneration.d.ts +19 -12
- package/dist/sdk/models/operations/creategeneration.js +21 -0
- package/dist/sdk/models/operations/createmodel.d.ts +4 -0
- package/dist/sdk/models/operations/createmodel.js +5 -0
- package/dist/sdk/models/operations/createvariationnobg.d.ts +40 -0
- package/dist/sdk/models/operations/createvariationnobg.js +112 -0
- package/dist/sdk/models/operations/createvariationupscale.d.ts +4 -0
- package/dist/sdk/models/operations/createvariationupscale.js +5 -0
- package/dist/sdk/models/operations/getelements.d.ts +68 -0
- package/dist/sdk/models/operations/getelements.js +153 -0
- package/dist/sdk/models/operations/getgenerationbyid.d.ts +70 -1
- package/dist/sdk/models/operations/getgenerationbyid.js +112 -1
- package/dist/sdk/models/operations/getgenerationsbyuserid.d.ts +70 -1
- package/dist/sdk/models/operations/getgenerationsbyuserid.js +112 -1
- package/dist/sdk/models/operations/getuserself.d.ts +5 -1
- package/dist/sdk/models/operations/getuserself.js +23 -3
- package/dist/sdk/models/operations/index.d.ts +2 -0
- package/dist/sdk/models/operations/index.js +2 -0
- package/dist/sdk/models/operations/postgenerationstexture.d.ts +4 -0
- package/dist/sdk/models/operations/postgenerationstexture.js +5 -0
- package/dist/sdk/models/operations/postvariationsunzoom.d.ts +4 -0
- package/dist/sdk/models/operations/postvariationsunzoom.js +5 -0
- package/dist/sdk/models/shared/elementinput.d.ts +11 -0
- package/dist/sdk/models/shared/elementinput.js +50 -0
- package/dist/sdk/models/shared/index.d.ts +1 -0
- package/dist/sdk/models/shared/index.js +1 -0
- package/dist/sdk/models/shared/sdgenerationschedulers.d.ts +2 -1
- package/dist/sdk/models/shared/sdgenerationschedulers.js +1 -0
- package/dist/sdk/models/shared/sdgenerationstyle.d.ts +15 -2
- package/dist/sdk/models/shared/sdgenerationstyle.js +14 -1
- package/dist/sdk/sdk.d.ts +2 -0
- package/dist/sdk/sdk.js +5 -3
- package/dist/sdk/user.d.ts +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/variation.d.ts +7 -0
- package/dist/sdk/variation.js +73 -0
- package/docs/models/operations/creategeneration200applicationjsonsdgenerationoutput.md +4 -3
- package/docs/models/operations/creategenerationrequestbody.md +39 -36
- package/docs/models/operations/createmodel200applicationjsonsdtrainingoutput.md +4 -3
- package/docs/models/operations/createvariationnobg200applicationjson.md +10 -0
- package/docs/models/operations/createvariationnobg200applicationjsonsdupscalejoboutput.md +9 -0
- package/docs/models/operations/createvariationnobgrequestbody.md +11 -0
- package/docs/models/operations/createvariationnobgresponse.md +11 -0
- package/docs/models/operations/createvariationupscale200applicationjsonsdupscalejoboutput.md +4 -3
- package/docs/models/operations/getelements200applicationjson.md +10 -0
- package/docs/models/operations/getelements200applicationjsonloras.md +18 -0
- package/docs/models/operations/getelementsresponse.md +11 -0
- package/docs/models/operations/getgenerationbyid200applicationjsongenerations.md +25 -19
- package/docs/models/operations/getgenerationbyid200applicationjsongenerationsgenerationelements.md +12 -0
- package/docs/models/operations/getgenerationbyid200applicationjsongenerationsgenerationelementsloras.md +17 -0
- package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerations.md +25 -19
- package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerationsgenerationelements.md +12 -0
- package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerationsgenerationelementselements.md +17 -0
- package/docs/models/operations/getuserself200applicationjsonuserdetails.md +5 -1
- package/docs/models/operations/postgenerationstexture200applicationjsontexturegenerationjoboutput.md +4 -3
- package/docs/models/operations/postvariationsunzoom200applicationjsonsdunzoomoutput.md +4 -3
- package/docs/models/shared/elementinput.md +9 -0
- package/docs/models/shared/sdgenerationschedulers.md +2 -1
- package/docs/models/shared/sdgenerationstyle.md +18 -5
- package/docs/sdks/dataset/README.md +11 -21
- package/docs/sdks/element/README.md +40 -0
- package/docs/sdks/generation/README.md +16 -25
- package/docs/sdks/initimage/README.md +5 -11
- package/docs/sdks/model/README.md +12 -24
- package/docs/sdks/user/README.md +2 -4
- package/docs/sdks/variation/README.md +42 -10
- package/package.json +5 -2
|
@@ -5,39 +5,42 @@ Query parameters to be provided in the request body as a JSON object
|
|
|
5
5
|
|
|
6
6
|
## Fields
|
|
7
7
|
|
|
8
|
-
| Field
|
|
9
|
-
|
|
|
10
|
-
| `alchemy`
|
|
11
|
-
| `contrastRatio`
|
|
12
|
-
| `controlNet`
|
|
13
|
-
| `controlNetType`
|
|
14
|
-
| `
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
30
|
-
| `
|
|
31
|
-
| `
|
|
32
|
-
| `
|
|
33
|
-
| `
|
|
34
|
-
| `
|
|
35
|
-
| `
|
|
36
|
-
| `
|
|
37
|
-
| `
|
|
38
|
-
| `
|
|
39
|
-
| `
|
|
40
|
-
| `
|
|
41
|
-
| `
|
|
42
|
-
| `
|
|
43
|
-
| `
|
|
8
|
+
| Field | Type | Required | Description |
|
|
9
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
10
|
+
| `alchemy` | *boolean* | :heavy_minus_sign: | Enable to use Alchemy. |
|
|
11
|
+
| `contrastRatio` | *number* | :heavy_minus_sign: | Contrast Ratio to use with Alchemy. |
|
|
12
|
+
| `controlNet` | *boolean* | :heavy_minus_sign: | Enable to use ControlNet. Requires an init image to be provided. Requires a model based on SD v1.5 |
|
|
13
|
+
| `controlNetType` | [shared.ControlnetType](../../models/shared/controlnettype.md) | :heavy_minus_sign: | The type of ControlNet to use. |
|
|
14
|
+
| `elements` | [shared.ElementInput](../../models/shared/elementinput.md)[] | :heavy_minus_sign: | N/A |
|
|
15
|
+
| `expandedDomain` | *boolean* | :heavy_minus_sign: | Enable to use the Expanded Domain feature of Alchemy. |
|
|
16
|
+
| `guidanceScale` | *number* | :heavy_minus_sign: | How strongly the generation should reflect the prompt. 7 is recommended. Must be between 1 and 20. |
|
|
17
|
+
| `height` | *number* | :heavy_minus_sign: | The height of the images. Must be between 32 and 1024 and be a multiple of 8. |
|
|
18
|
+
| `highContrast` | *boolean* | :heavy_minus_sign: | Enable to use the High Contrast feature of Prompt Magic. Note: Controls RAW mode. Set to false to enable RAW mode. |
|
|
19
|
+
| `highResolution` | *boolean* | :heavy_minus_sign: | Enable to use the High Resolution feature of Prompt Magic. |
|
|
20
|
+
| `imagePromptWeight` | *number* | :heavy_minus_sign: | N/A |
|
|
21
|
+
| `imagePrompts` | *string*[] | :heavy_minus_sign: | N/A |
|
|
22
|
+
| `initGenerationImageId` | *string* | :heavy_minus_sign: | The ID of an existing image to use in image2image. |
|
|
23
|
+
| `initImageId` | *string* | :heavy_minus_sign: | The ID of an Init Image to use in image2image. |
|
|
24
|
+
| `initStrength` | *number* | :heavy_minus_sign: | How strongly the generated images should reflect the original image in image2image. Must be a float between 0.1 and 0.9. |
|
|
25
|
+
| `modelId` | *string* | :heavy_minus_sign: | The model ID used for image generation. If not provided, uses sd_version to determine the version of Stable Diffusion to use. In-app, model IDs are under the Finetune Models menu. Click on the platform model or your custom model, then click View More. For platform models, you can also use the List Platform Models API. |
|
|
26
|
+
| `negativePrompt` | *string* | :heavy_minus_sign: | The negative prompt used for the image generation |
|
|
27
|
+
| `nsfw` | *boolean* | :heavy_minus_sign: | Not Safe For Work Flag. |
|
|
28
|
+
| `numImages` | *number* | :heavy_minus_sign: | The number of images to generate. Must be between 1 and 8. If either width or height is over 768, must be between 1 and 4. |
|
|
29
|
+
| `numInferenceSteps` | *number* | :heavy_minus_sign: | The number of inference steps to use for the generation. Must be between 30 and 60. |
|
|
30
|
+
| `photoReal` | *boolean* | :heavy_minus_sign: | Enable the photoReal feature. Requires enabling alchemy and unspecifying modelId. |
|
|
31
|
+
| `photoRealStrength` | *number* | :heavy_minus_sign: | Depth of field of photoReal. Must be 0.55 for low, 0.5 for medium, or 0.45 for high. |
|
|
32
|
+
| `presetStyle` | [shared.SdGenerationStyle](../../models/shared/sdgenerationstyle.md) | :heavy_minus_sign: | The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE. |
|
|
33
|
+
| `prompt` | *string* | :heavy_minus_sign: | The prompt used to generate images |
|
|
34
|
+
| `promptMagic` | *boolean* | :heavy_minus_sign: | Enable to use Prompt Magic. |
|
|
35
|
+
| `promptMagicStrength` | *number* | :heavy_minus_sign: | Strength of prompt magic. Must be a float between 0.1 and 1.0 |
|
|
36
|
+
| `promptMagicVersion` | *string* | :heavy_minus_sign: | Prompt magic version v2 or v3, for use when promptMagic: true |
|
|
37
|
+
| `public` | *boolean* | :heavy_minus_sign: | Whether the generated images should show in the community feed. |
|
|
38
|
+
| `scheduler` | [shared.SdGenerationSchedulers](../../models/shared/sdgenerationschedulers.md) | :heavy_minus_sign: | The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified. |
|
|
39
|
+
| `sdVersion` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. |
|
|
40
|
+
| `seed` | *number* | :heavy_minus_sign: | N/A |
|
|
41
|
+
| `tiling` | *boolean* | :heavy_minus_sign: | Whether the generated images should tile on all axis. |
|
|
42
|
+
| `unzoom` | *boolean* | :heavy_minus_sign: | Whether the generated images should be unzoomed (requires unzoomAmount and init_image_id to be set). |
|
|
43
|
+
| `unzoomAmount` | *number* | :heavy_minus_sign: | How much the image should be unzoomed (requires an init_image_id and unzoom to be set to true). |
|
|
44
|
+
| `upscaleRatio` | *number* | :heavy_minus_sign: | How much the image should be upscaled. (Enterprise Only) |
|
|
45
|
+
| `weighting` | *number* | :heavy_minus_sign: | How much weighting to use for generation. |
|
|
46
|
+
| `width` | *number* | :heavy_minus_sign: | The width of the images. Must be between 32 and 1024 and be a multiple of 8. |
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
|
|
8
|
+
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for Model Training. Available for Production API Users. |
|
|
9
|
+
| `customModelId` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CreateVariationNoBg200ApplicationJSON
|
|
2
|
+
|
|
3
|
+
Responses for POST /variations/nobg
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Fields
|
|
7
|
+
|
|
8
|
+
| Field | Type | Required | Description |
|
|
9
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
10
|
+
| `sdNobgJob` | [CreateVariationNoBg200ApplicationJSONSDUpscaleJobOutput](../../models/operations/createvariationnobg200applicationjsonsdupscalejoboutput.md) | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CreateVariationNoBg200ApplicationJSONSDUpscaleJobOutput
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
|
|
8
|
+
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for No Background Variation. Available for Production API Users. |
|
|
9
|
+
| `id` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CreateVariationNoBGRequestBody
|
|
2
|
+
|
|
3
|
+
Query parameters are provided in the request body as a JSON object
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Fields
|
|
7
|
+
|
|
8
|
+
| Field | Type | Required | Description |
|
|
9
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
10
|
+
| `id` | *string* | :heavy_check_mark: | N/A |
|
|
11
|
+
| `isVariation` | *boolean* | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CreateVariationNoBGResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
|
|
8
|
+
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
|
+
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
|
+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
+
| `createVariationNoBG200ApplicationJSONObject` | [CreateVariationNoBg200ApplicationJSON](../../models/operations/createvariationnobg200applicationjson.md) | :heavy_minus_sign: | Responses for POST /variations/nobg |
|
package/docs/models/operations/createvariationupscale200applicationjsonsdupscalejoboutput.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
|
8
|
+
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for Upscale Variation. Available for Production API Users. |
|
|
9
|
+
| `id` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# GetElements200ApplicationJSON
|
|
2
|
+
|
|
3
|
+
Responses for GET /api/rest/v1/elements
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Fields
|
|
7
|
+
|
|
8
|
+
| Field | Type | Required | Description |
|
|
9
|
+
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
|
|
10
|
+
| `loras` | [GetElements200ApplicationJSONLoras](../../models/operations/getelements200applicationjsonloras.md)[] | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# GetElements200ApplicationJSONLoras
|
|
2
|
+
|
|
3
|
+
columns and relationships of "elements"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Fields
|
|
7
|
+
|
|
8
|
+
| Field | Type | Required | Description |
|
|
9
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
10
|
+
| `akUUID` | *string* | :heavy_minus_sign: | Unique identifier for the element. Elements can be found from the List Elements endpoint. |
|
|
11
|
+
| `baseModel` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. |
|
|
12
|
+
| `creatorName` | *string* | :heavy_minus_sign: | Name of the creator of the element |
|
|
13
|
+
| `description` | *string* | :heavy_minus_sign: | Description for the element |
|
|
14
|
+
| `name` | *string* | :heavy_minus_sign: | Name of the element |
|
|
15
|
+
| `urlImage` | *string* | :heavy_minus_sign: | URL of the element image |
|
|
16
|
+
| `weightDefault` | *number* | :heavy_minus_sign: | Default weight for the element |
|
|
17
|
+
| `weightMax` | *number* | :heavy_minus_sign: | Maximum weight for the element |
|
|
18
|
+
| `weightMin` | *number* | :heavy_minus_sign: | Minimum weight for the element |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# GetElementsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
8
|
+
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
|
+
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
|
+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
+
| `getElements200ApplicationJSONObject` | [GetElements200ApplicationJSON](../../models/operations/getelements200applicationjson.md) | :heavy_minus_sign: | Responses for GET /api/rest/v1/elements |
|
|
@@ -5,22 +5,28 @@ columns and relationships of "generations"
|
|
|
5
5
|
|
|
6
6
|
## Fields
|
|
7
7
|
|
|
8
|
-
| Field
|
|
9
|
-
|
|
|
10
|
-
| `createdAt`
|
|
11
|
-
| `generatedImages`
|
|
12
|
-
| `
|
|
13
|
-
| `
|
|
14
|
-
| `
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
8
|
+
| Field | Type | Required | Description |
|
|
9
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
10
|
+
| `createdAt` | *string* | :heavy_minus_sign: | N/A |
|
|
11
|
+
| `generatedImages` | [GetGenerationById200ApplicationJSONGenerationsGeneratedImages](../../models/operations/getgenerationbyid200applicationjsongenerationsgeneratedimages.md)[] | :heavy_minus_sign: | N/A |
|
|
12
|
+
| `generationElements` | [GetGenerationById200ApplicationJSONGenerationsGenerationElements](../../models/operations/getgenerationbyid200applicationjsongenerationsgenerationelements.md)[] | :heavy_minus_sign: | N/A |
|
|
13
|
+
| `guidanceScale` | *number* | :heavy_minus_sign: | N/A |
|
|
14
|
+
| `id` | *string* | :heavy_minus_sign: | N/A |
|
|
15
|
+
| `imageHeight` | *number* | :heavy_minus_sign: | N/A |
|
|
16
|
+
| `imageWidth` | *number* | :heavy_minus_sign: | N/A |
|
|
17
|
+
| `inferenceSteps` | *number* | :heavy_minus_sign: | N/A |
|
|
18
|
+
| `initStrength` | *number* | :heavy_minus_sign: | N/A |
|
|
19
|
+
| `modelId` | *string* | :heavy_minus_sign: | N/A |
|
|
20
|
+
| `negativePrompt` | *string* | :heavy_minus_sign: | N/A |
|
|
21
|
+
| `photoReal` | *boolean* | :heavy_minus_sign: | If photoReal feature was used. |
|
|
22
|
+
| `photoRealStrength` | *number* | :heavy_minus_sign: | Depth of field of photoReal used. 0.55 is low, 0.5 is medium, and 0.45 is high. |
|
|
23
|
+
| `presetStyle` | [shared.SdGenerationStyle](../../models/shared/sdgenerationstyle.md) | :heavy_minus_sign: | The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE. |
|
|
24
|
+
| `prompt` | *string* | :heavy_minus_sign: | N/A |
|
|
25
|
+
| `promptMagic` | *boolean* | :heavy_minus_sign: | If prompt magic was used. |
|
|
26
|
+
| `promptMagicStrength` | *number* | :heavy_minus_sign: | Strength of prompt magic used. |
|
|
27
|
+
| `promptMagicVersion` | *string* | :heavy_minus_sign: | Version of prompt magic used. |
|
|
28
|
+
| `public` | *boolean* | :heavy_minus_sign: | N/A |
|
|
29
|
+
| `scheduler` | [shared.SdGenerationSchedulers](../../models/shared/sdgenerationschedulers.md) | :heavy_minus_sign: | The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified. |
|
|
30
|
+
| `sdVersion` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. |
|
|
31
|
+
| `seed` | *number* | :heavy_minus_sign: | N/A |
|
|
32
|
+
| `status` | [shared.JobStatus](../../models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. |
|