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

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

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

Summary

Functions

Creates a new image edit request with the given arguments.

Functions

Creates a new image edit request with the given arguments.

Arguments

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

Returns

A map containing the fields of the image edit request.

The :image and :prompt fields are required.