The text to image node generates an image based on a prompt.

For the size of the generated image:

  • If the provider is OpenAI, you need to specify the image size.
  • If the provider is Flux or Stability AI, you need to specify the aspect ratio.

Node Inputs

  1. Prompt: Description of the image for generation
    • Type: Text

Node Parameters

  1. Provider: Provider of the AI model you want to use. The default provider is OpenAI.
  2. Model: Specific model you want to use.
  3. Use Personal Api Key: This allows you to enter your API key.
  4. Size: Dimensions of the image you want to generate.
  5. Aspect Ratio: The aspect ratio of the image you want to generate.

Node Outputs

  1. Image: The image generated from the prompt
    • Type: Image
    • Example usage: {{ai_text_to_image_0.image}}

Example

The below example shows a pipeline that takes a text description and generates an image based on that description.

  1. Input Node: Contains the text description of the image to generate
  2. Text to Image Node: Converts the text description into an image
    • Prompt: Utilizes{{input_0.text}}
  3. Output: The generated image
    • Output: {{ai_text_to_image_0.image}}

Pricing

ProviderModelResolutionCost per Image
OpenAIdall-e-2256x2560.016
OpenAIdall-e-2512x5120.018
OpenAIdall-e-21024x10240.02
OpenAIdall-e-21024x17920.12
OpenAIdall-e-21792x10240.12
OpenAIdall-e-31024x10240.04
OpenAIdall-e-31024x17920.08
OpenAIdall-e-31792x10240.08
Stability AIStable Diffusion UltraDefault0.08
Stability AIStable Diffusion CoreDefault0.03
Stability AIStable Diffusion 3 MediumDefault0.035
Stability AIStable Diffusion 3 LargeDefault0.065
Stability AIStable Diffusion 3 Large TurboDefault0.04
Stability AIStable Diffusion XLDefault0.01
Stability AIStable Diffusion 1.6Default0.01
Fluxflux-proDefault0.055
Fluxflux-devDefault0.025
Fluxflux-schnellDefault0.003