Create Image Variation

Go to Product

Creates a variation of a given image. This endpoint only supports dall-e-2.

Options

Image
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
Set Model
Enable to set the optional field Model
Model
The model to use for image generation. Only dall-e-2 is supported at this time.
Set N
Enable to set the optional field N
N
The number of images to generate. Must be between 1 and 10.
Set Response Format
Enable to set the optional field Response Format
Response Format
The format in which the generated images are returned. Must be one of url or b64_json. URLs are only valid for 60 minutes after the image has been generated.
Set Size
Enable to set the optional field Size
Size
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
Set User
Enable to set the optional field User
User
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
Result Format

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

Structured Table: Returns a parsed table with data split into rows and columns.

  • Created: The Unix timestamp (in seconds) of when the image was created.
  • Data: The list of generated images.
  • Background: The background parameter used for the image generation. Either transparent or opaque.
  • Output Format: The output format of the image generation. Either png, webp, or jpeg.
  • Size: The size of the image generated. Either 1024x1024, 1024x1536, or 1536x1024.
  • Quality: The quality of the image generated. Either low, medium, or high.
  • Usage: For gpt-image-1 only, the token usage information for the image generation.

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

  • No recommendations found

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.