github.com/instill-ai/component@v0.16.0-beta/pkg/connector/stabilityai/v0/config/tasks.json (about)

     1  {
     2    "TASK_IMAGE_TO_IMAGE": {
     3      "instillShortDescription": "Modify an image based on a text prompt.",
     4      "input": {
     5        "additionalProperties": false,
     6        "description": "Input",
     7        "instillEditOnNodeFields": [
     8          "prompts",
     9          "engine"
    10        ],
    11        "instillUIOrder": 0,
    12        "properties": {
    13          "cfg_scale": {
    14            "$ref": "stabilityai.json#/components/schemas/CfgScale",
    15            "instillAcceptFormats": [
    16              "number",
    17              "integer"
    18            ],
    19            "instillUIOrder": 6,
    20            "instillUpstreamTypes": [
    21              "value",
    22              "reference"
    23            ],
    24            "title": "Cfg Scale"
    25          },
    26          "clip_guidance_preset": {
    27            "$ref": "stabilityai.json#/components/schemas/ClipGuidancePreset",
    28            "description": "Clip guidance preset",
    29            "instillAcceptFormats": [
    30              "string"
    31            ],
    32            "instillUIOrder": 3,
    33            "instillUpstreamTypes": [
    34              "value",
    35              "reference",
    36              "template"
    37            ],
    38            "title": "Clip Guidance Preset"
    39          },
    40          "engine": {
    41            "default": "stable-diffusion-xl-1024-v1-0",
    42            "description": "Stability AI Engine (model) to be used.",
    43            "enum": [
    44              "stable-diffusion-xl-1024-v1-0",
    45              "stable-diffusion-xl-1024-v0-9",
    46              "stable-diffusion-v1-6",
    47              "esrgan-v1-x2plus",
    48              "stable-diffusion-512-v2-1",
    49              "stable-diffusion-xl-beta-v2-2-2"
    50            ],
    51            "instillAcceptFormats": [
    52              "string"
    53            ],
    54            "instillUIOrder": 0,
    55            "instillUpstreamTypes": [
    56              "value",
    57              "reference",
    58              "template"
    59            ],
    60            "title": "Engine",
    61            "type": "string"
    62          },
    63          "image_strength": {
    64            "$ref": "stabilityai.json#/components/schemas/InitImageStrength",
    65            "instillAcceptFormats": [
    66              "number",
    67              "integer"
    68            ],
    69            "instillShortDescription": "How much influence the `init_image` has on the diffusion process.",
    70            "instillUIOrder": 5,
    71            "instillUpstreamTypes": [
    72              "value",
    73              "reference"
    74            ],
    75            "title": "Image Strength"
    76          },
    77          "init_image": {
    78            "$ref": "stabilityai.json#/components/schemas/InitImage",
    79            "instillAcceptFormats": [
    80              "image/*"
    81            ],
    82            "instillUIOrder": 2,
    83            "instillUpstreamTypes": [
    84              "reference"
    85            ],
    86            "title": "Init Image"
    87          },
    88          "init_image_mode": {
    89            "$ref": "stabilityai.json#/components/schemas/InitImageMode",
    90            "instillAcceptFormats": [
    91              "string"
    92            ],
    93            "instillUIOrder": 7,
    94            "instillUpstreamTypes": [
    95              "value",
    96              "reference",
    97              "template"
    98            ],
    99            "title": "Init Image Mode"
   100          },
   101          "prompts": {
   102            "description": "An array of prompts to use for generation.",
   103            "instillAcceptFormats": [
   104              "array:string"
   105            ],
   106            "instillUIOrder": 1,
   107            "instillUpstreamTypes": [
   108              "reference"
   109            ],
   110            "items": {
   111              "$ref": "stabilityai.json#/components/schemas/TextPrompt/properties/text"
   112            },
   113            "minItems": 1,
   114            "title": "Prompts",
   115            "type": "array"
   116          },
   117          "sampler": {
   118            "$ref": "stabilityai.json#/components/schemas/Sampler",
   119            "instillAcceptFormats": [
   120              "string"
   121            ],
   122            "instillShortDescription": "Which sampler to use for the diffusion process",
   123            "instillUIOrder": 8,
   124            "instillUpstreamTypes": [
   125              "value",
   126              "reference",
   127              "template"
   128            ],
   129            "title": "Sampler"
   130          },
   131          "samples": {
   132            "$ref": "stabilityai.json#/components/schemas/Samples",
   133            "instillAcceptFormats": [
   134              "integer"
   135            ],
   136            "instillUIOrder": 9,
   137            "instillUpstreamTypes": [
   138              "value",
   139              "reference"
   140            ],
   141            "title": "Samples"
   142          },
   143          "seed": {
   144            "$ref": "stabilityai.json#/components/schemas/Seed",
   145            "instillAcceptFormats": [
   146              "number",
   147              "integer"
   148            ],
   149            "instillUIOrder": 10,
   150            "instillUpstreamTypes": [
   151              "value",
   152              "reference"
   153            ],
   154            "title": "Seed"
   155          },
   156          "step_schedule_end": {
   157            "$ref": "stabilityai.json#/components/schemas/StepScheduleEnd",
   158            "instillAcceptFormats": [
   159              "number",
   160              "integer"
   161            ],
   162            "instillShortDescription": "Skips a proportion of the end of the diffusion steps",
   163            "instillUIOrder": 12,
   164            "instillUpstreamTypes": [
   165              "value",
   166              "reference"
   167            ],
   168            "title": "Step Schedule End"
   169          },
   170          "step_schedule_start": {
   171            "$ref": "stabilityai.json#/components/schemas/StepScheduleStart",
   172            "instillAcceptFormats": [
   173              "number",
   174              "integer"
   175            ],
   176            "instillShortDescription": "Skips a proportion of the start of the diffusion steps",
   177            "instillUIOrder": 11,
   178            "instillUpstreamTypes": [
   179              "value",
   180              "reference"
   181            ],
   182            "title": "Step Schedule Start"
   183          },
   184          "steps": {
   185            "$ref": "stabilityai.json#/components/schemas/Steps",
   186            "instillAcceptFormats": [
   187              "integer"
   188            ],
   189            "instillUIOrder": 13,
   190            "instillUpstreamTypes": [
   191              "value",
   192              "reference"
   193            ],
   194            "title": "Steps"
   195          },
   196          "style_preset": {
   197            "$ref": "stabilityai.json#/components/schemas/StylePreset",
   198            "instillAcceptFormats": [
   199              "string"
   200            ],
   201            "instillUIOrder": 14,
   202            "instillUpstreamTypes": [
   203              "value",
   204              "reference",
   205              "template"
   206            ],
   207            "title": "Style Preset"
   208          },
   209          "weights": {
   210            "description": "An array of weights to use for generation. If unspecified, the model will automatically assign a default weight of 1.0 to each prompt.",
   211            "instillAcceptFormats": [
   212              "array:number",
   213              "array:integer"
   214            ],
   215            "instillUIOrder": 2,
   216            "instillUpstreamTypes": [
   217              "reference"
   218            ],
   219            "items": {
   220              "$ref": "stabilityai.json#/components/schemas/TextPrompt/properties/weight"
   221            },
   222            "minItems": 1,
   223            "title": "Weights",
   224            "type": "array"
   225          }
   226        },
   227        "required": [
   228          "prompts",
   229          "engine"
   230        ],
   231        "title": "Input",
   232        "type": "object"
   233      },
   234      "output": {
   235        "$ref": "#/TASK_TEXT_TO_IMAGE/output"
   236      }
   237    },
   238    "TASK_TEXT_TO_IMAGE": {
   239      "instillShortDescription": "Generate a new image from a text prompt.",
   240      "input": {
   241        "additionalProperties": false,
   242        "description": "Input",
   243        "instillEditOnNodeFields": [
   244          "prompts",
   245          "engine"
   246        ],
   247        "instillUIOrder": 0,
   248        "properties": {
   249          "cfg_scale": {
   250            "$ref": "stabilityai.json#/components/schemas/CfgScale",
   251            "instillAcceptFormats": [
   252              "number",
   253              "integer"
   254            ],
   255            "instillUIOrder": 3,
   256            "instillUpstreamTypes": [
   257              "value",
   258              "reference"
   259            ],
   260            "title": "CFG Scale"
   261          },
   262          "clip_guidance_preset": {
   263            "$ref": "stabilityai.json#/components/schemas/ClipGuidancePreset",
   264            "description": "Clip guidance preset",
   265            "instillAcceptFormats": [
   266              "string"
   267            ],
   268            "instillUIOrder": 4,
   269            "instillUpstreamTypes": [
   270              "value",
   271              "reference",
   272              "template"
   273            ],
   274            "title": "Clip Guidance Preset"
   275          },
   276          "engine": {
   277            "default": "stable-diffusion-xl-1024-v1-0",
   278            "description": "Stability AI Engine (model) to be used.",
   279            "enum": [
   280              "stable-diffusion-xl-1024-v1-0",
   281              "stable-diffusion-xl-1024-v0-9",
   282              "stable-diffusion-v1-6",
   283              "esrgan-v1-x2plus",
   284              "stable-diffusion-512-v2-1",
   285              "stable-diffusion-xl-beta-v2-2-2"
   286            ],
   287            "instillAcceptFormats": [
   288              "string"
   289            ],
   290            "instillUIOrder": 0,
   291            "instillUpstreamTypes": [
   292              "value",
   293              "reference",
   294              "template"
   295            ],
   296            "title": "Engine",
   297            "type": "string"
   298          },
   299          "height": {
   300            "$ref": "stabilityai.json#/components/schemas/DiffuseImageHeight",
   301            "description": "The image height",
   302            "instillAcceptFormats": [
   303              "integer"
   304            ],
   305            "instillUIOrder": 5,
   306            "instillUpstreamTypes": [
   307              "value",
   308              "reference"
   309            ],
   310            "title": "Height"
   311          },
   312          "prompts": {
   313            "description": "An array of prompts to use for generation.",
   314            "instillAcceptFormats": [
   315              "array:string"
   316            ],
   317            "instillUIOrder": 1,
   318            "instillUpstreamTypes": [
   319              "reference"
   320            ],
   321            "items": {
   322              "$ref": "stabilityai.json#/components/schemas/TextPrompt/properties/text"
   323            },
   324            "minItems": 1,
   325            "title": "Prompts",
   326            "type": "array"
   327          },
   328          "sampler": {
   329            "$ref": "stabilityai.json#/components/schemas/Sampler",
   330            "instillAcceptFormats": [
   331              "string"
   332            ],
   333            "instillUIOrder": 6,
   334            "instillUpstreamTypes": [
   335              "value",
   336              "reference",
   337              "template"
   338            ],
   339            "title": "Sampler"
   340          },
   341          "samples": {
   342            "$ref": "stabilityai.json#/components/schemas/Samples",
   343            "instillAcceptFormats": [
   344              "integer"
   345            ],
   346            "instillUIOrder": 7,
   347            "instillUpstreamTypes": [
   348              "value",
   349              "reference"
   350            ],
   351            "title": "Samples"
   352          },
   353          "seed": {
   354            "$ref": "stabilityai.json#/components/schemas/Seed",
   355            "instillAcceptFormats": [
   356              "number",
   357              "integer"
   358            ],
   359            "instillUIOrder": 8,
   360            "instillUpstreamTypes": [
   361              "value",
   362              "reference"
   363            ],
   364            "title": "Seed"
   365          },
   366          "steps": {
   367            "$ref": "stabilityai.json#/components/schemas/Steps",
   368            "instillAcceptFormats": [
   369              "integer"
   370            ],
   371            "instillUIOrder": 9,
   372            "instillUpstreamTypes": [
   373              "value",
   374              "reference"
   375            ],
   376            "title": "Steps"
   377          },
   378          "style_preset": {
   379            "$ref": "stabilityai.json#/components/schemas/StylePreset",
   380            "instillAcceptFormats": [
   381              "string"
   382            ],
   383            "instillUIOrder": 10,
   384            "instillUpstreamTypes": [
   385              "value",
   386              "reference",
   387              "template"
   388            ],
   389            "title": "Style Preset"
   390          },
   391          "weights": {
   392            "description": "An array of weights to use for generation.",
   393            "instillAcceptFormats": [
   394              "array:number",
   395              "array:integer"
   396            ],
   397            "instillUIOrder": 2,
   398            "instillUpstreamTypes": [
   399              "reference"
   400            ],
   401            "items": {
   402              "$ref": "stabilityai.json#/components/schemas/TextPrompt/properties/weight"
   403            },
   404            "minItems": 1,
   405            "title": "Weights",
   406            "type": "array"
   407          },
   408          "width": {
   409            "$ref": "stabilityai.json#/components/schemas/DiffuseImageWidth",
   410            "description": "The image width",
   411            "instillAcceptFormats": [
   412              "integer"
   413            ],
   414            "instillUIOrder": 5,
   415            "instillUpstreamTypes": [
   416              "value",
   417              "reference"
   418            ],
   419            "title": "Width"
   420          }
   421        },
   422        "required": [
   423          "prompts",
   424          "engine"
   425        ],
   426        "title": "Input",
   427        "type": "object"
   428      },
   429      "output": {
   430        "additionalProperties": false,
   431        "description": "Output",
   432        "instillEditOnNodeFields": [
   433          "images",
   434          "seeds"
   435        ],
   436        "instillUIOrder": 0,
   437        "properties": {
   438          "images": {
   439            "description": "Generated images",
   440            "instillUIOrder": 0,
   441            "instillFormat": "array:image/png",
   442            "items": {
   443              "instillFormat": "image/png",
   444              "title": "Image",
   445              "type": "string"
   446            },
   447            "title": "Images",
   448            "type": "array"
   449          },
   450          "seeds": {
   451            "description": "Seeds of generated images",
   452            "instillUIOrder": 1,
   453            "instillFormat": "array:number",
   454            "items": {
   455              "$ref": "stabilityai.json#/components/schemas/Image/properties/seed",
   456              "title": "Seed",
   457              "instillFormat": "number"
   458            },
   459            "title": "Seeds",
   460            "type": "array"
   461          }
   462        },
   463        "required": [
   464          "images",
   465          "seeds"
   466        ],
   467        "title": "Output",
   468        "type": "object"
   469      }
   470    }
   471  }