Create Image

Go to Product

Creates an image given a prompt.

Options

Body

Request body which must comply to the following JSON Schema:

{
  "required" : [ "prompt" ],
  "type" : "object",
  "properties" : {
    "prompt" : {
      "type" : "string",
      "description" : "A text description of the desired image(s). The maximum length is 1000 characters for `dall-e-2` and 4000 characters for `dall-e-3`.",
      "example" : "A cute baby sea otter"
    },
    "model" : {
      "description" : "The model to use for image generation.",
      "nullable" : true,
      "example" : "dall-e-3",
      "anyOf" : [ {
        "type" : "string"
      }, {
        "type" : "string",
        "enum" : [ "dall-e-2", "dall-e-3" ]
      } ],
      "default" : "dall-e-2",
      "x-oaiTypeLabel" : "string"
    },
    "n" : {
      "maximum" : 10,
      "minimum" : 1,
      "type" : "integer",
      "description" : "The number of images to generate. Must be between 1 and 10. For `dall-e-3`, only `n=1` is supported.",
      "nullable" : true,
      "example" : 1,
      "default" : 1
    },
    "quality" : {
      "type" : "string",
      "description" : "The quality of the image that will be generated. `hd` creates images with finer details and greater consistency across the image. This param is only supported for `dall-e-3`.",
      "example" : "standard",
      "default" : "standard",
      "enum" : [ "standard", "hd" ]
    },
    "response_format" : {
      "type" : "string",
      "description" : "The format in which the generated images are returned. Must be one of `url` or `b64_json`.",
      "nullable" : true,
      "example" : "url",
      "default" : "url",
      "enum" : [ "url", "b64_json" ]
    },
    "size" : {
      "type" : "string",
      "description" : "The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`. Must be one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3` models.",
      "nullable" : true,
      "example" : "1024x1024",
      "default" : "1024x1024",
      "enum" : [ "256x256", "512x512", "1024x1024", "1792x1024", "1024x1792" ]
    },
    "style" : {
      "type" : "string",
      "description" : "The style of the generated images. Must be one of `vivid` or `natural`. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images. This param is only supported for `dall-e-3`.",
      "nullable" : true,
      "example" : "vivid",
      "default" : "vivid",
      "enum" : [ "vivid", "natural" ]
    }
  }
}
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • body: Response body
  • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.