Skip to content

Media nodes

Every node below also has a Model setting and returns model and provider. They are left out of the tables.

File and URL inputs

Media inputs take one of three forms:

  • File path (image_file, audio_file): a file in Drupal's managed directories, public://, private:// or temporary://.
  • URL (image_url, audio_url): a public http or https URL.
  • Binary data (image, audio): raw bytes from an upstream node.

Files and URLs are loaded with a 50 MB limit. URLs that resolve to private or reserved addresses are refused. See Security.

Images and audio that a node generates come back as objects with type, base64, mime_type and filename.

Text to Image

Input Type Default
prompt string
width integer 512
height integer 512
num_images integer 1

Outputs: images, prompt, width, height.

Image to Image

Input Type Default Notes
image_file or image_url string The source image.
prompt string How to transform it.
strength number 0.8 0.0 to 1.0. How far to move from the source.

Outputs: images, prompt.

Image Classification

Input Type Notes
image_file or image_url string The image.
labels array Optional labels to filter the result.

Output: classifications (array).

Object Detection

Input Type
image_file or image_url string

Output: detections (array), each with a label, a confidence and bounding box coordinates.

Image to Video

Input Notes
image or image_file The source image as data or a file path.

Output: video_files (array).

Image and Audio to Video

Input Notes
image or image_file The image.
audio or audio_file The soundtrack.

Output: video_files (array).

Text to Speech

Input Type Default
text string
voice string default

Outputs: audio_files, voice, text.

Speech to Text

Input Type Notes
audio_file or audio_url string The recording.
language string Language code, for example en. Leave empty to auto-detect.

Outputs: text, language.

Speech to Speech

Input Notes
audio or audio_file The spoken input.

Output: audio_files (array).

Audio to Audio

Input Notes
audio or audio_file The audio to transform.

Output: audio_files (array).