View Source ExOpenAI.Components.ImageRefParam (ex_openai.ex v2.0.0-beta2)

Reference an input image by either URL or uploaded file ID. Provide exactly one of image_url or file_id.

Fields

  • :file_id - optional - String.t()
    The File API ID of an uploaded image to use as input.

  • :image_url - optional - String.t()
    A fully qualified URL or base64-encoded data URL.
    Constraints: maxLength: 20971520

Summary

Types

@type t() :: %ExOpenAI.Components.ImageRefParam{
  file_id: String.t() | nil,
  image_url: String.t() | nil
}