Skip to main content

Endpoint

Description

This function uses GPT-3.5 Turbo Instruct to generate random, creative text prompts that can be used for DALL-E image generation. The prompts include details about genre, style, and artistic approach.

Request

No parameters required. This is a simple GET request.

Response

string
A randomly generated text prompt suitable for DALL-E image generation. The prompt includes artistic details such as genre, style (oil painting, watercolor, photo-realistic, 4K, abstract, modern, black and white, etc.).

Behavior

  1. Sends a request to GPT-3.5 Turbo Instruct with a specific prompt template
  2. Uses a high temperature (0.9) to ensure creative and varied responses
  3. Generates up to 100 tokens for the suggestion
  4. Returns the generated text prompt without quotes

Example request

Implementation details

The function uses the following configuration:
The high temperature setting (0.9) ensures diverse and creative suggestions on each request.