View Source OpenaiEx.Image.Variation (openai_ex v0.2.2)

This module provides constructors for OpenAI Image Variation API request structure. The API reference can be found at https://platform.openai.com/docs/api-reference/images/create-variation.

api-fields

API Fields

  • :image
  • :n
  • :size
  • :response_format
  • :user

Link to this section Summary

Functions

Creates a new image variation request with the given arguments.

Link to this section Functions

Creates a new image variation request with the given arguments.

arguments

Arguments

  • args: A list of key-value pairs, or a map, representing the fields of the image variation request.

returns

Returns

A map containing the fields of the image variation request.

The :image field is required.