OpenaiEx.Images.Generate (openai_ex v0.9.4)

View Source

This module provides constructors for the OpenAI image generation API. The API reference can be found at https://platform.openai.com/docs/api-reference/images/create.

Summary

Functions

Creates a new image generation request

Functions

new(args)

Creates a new image generation request

Example usage:

iex> _request = OpenaiEx.Images.Generate.new(prompt: "This is a test")
%{prompt: "This is a test"}

iex> _request = OpenaiEx.Images.Generate.new(%{prompt: "This is a test"})
%{prompt: "This is a test"}