Learn R Programming

chatAI4R (version 0.3.6)

createImagePrompt_v1: Create Image Prompt version 1

Description

This function creates a prompt for generating an image from text using an AI model. This is an experimental function.

Usage

createImagePrompt_v1(content, Model = "gpt-4o-mini", len = 200)

Value

A character string that serves as the prompt for generating an image.

Arguments

content

A character string describing the image to be generated. If not provided, the function will throw a warning and stop.

Model

A character string specifying the AI model to be used for text generation.

len

Integer specifying the maximum length of the text input.

Author

Satoshi Kume

Details

Create Image Prompt version 1

Examples

Run this code
if (FALSE) {
createImagePrompt_v1(content = "A Japanese girl animation with blonde hair.")
}

Run the code above in your browser using DataLab