class

Arcana::AI::Image::OpenAI

Inherits Arcana::AI::Image::Provider < Arcana::AI::Traceable < Reference < Object

Constants

DEFAULT_MODEL = "gpt-image-2.5-sunburst"

OpenAI's recommendation for the Images API. gpt-image-1, the default before arcana-ai 0.5.2, shuts down on 2026-10-23.

EDITS_ENDPOINT = "https://api.openai.com/v1/images/edits"
GENERATIONS_ENDPOINT = "https://api.openai.com/v1/images/generations"

Constructors

new(api_key : String, model : String = DEFAULT_MODEL, quality : String = "medium", trace : Proc(String, Nil) | Nil = nil, generations_endpoint : String = GENERATIONS_ENDPOINT, edits_endpoint : String = EDITS_ENDPOINT)
Source

Instance methods

generate(request : Request, output_path : String) : Result
Source
model
Source
name
Source
quality
Source