View Source OpenaiEx.Image.Edit (openai_ex v0.1.9)

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

api-fields

API Fields

  • :image
  • :mask
  • :prompt
  • :n
  • :size
  • :response_format
  • :user

Link to this section Summary

Functions

Creates a new image edit request with the given arguments.

Link to this section Functions

Creates a new image edit request with the given arguments.

arguments

Arguments

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

returns

Returns

A map containing the fields of the image edit request.

The :image and :prompt fields are required.