dall_e: Download a Dall-e image.

View source: R/dall_e.R

dall_eR Documentation

Download a Dall-e image.

Description

This function uses openai to generate an image with Dall-e, but downloads it into a specified folder. The snippet for markdown usage also added to the clipboard.

Usage

dall_e(promt, folder.path = "figures/", size = "1024x1024")

Arguments

promt

(string) The prompt for the image.

folder.path

(string) The folder where to save the image. Finish it with "/".

size

(string) The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024 (default).

Examples

dall_e("R programmer writing a new package.")

MarcellGranat/granatlib documentation built on July 9, 2023, 6:08 a.m.