PhoenixKitAI.Providers.XAI (PhoenixKitAI v0.23.0)

Copy Markdown View Source

PhoenixKitAI.Provider adapter for xAI's image endpoints.

  • Editing: POST <base_url>/images/edits as JSON — image is one {url, type: "image_url"} object or a list of them (xAI documents up to 5 sources); served by the Grok Imagine image models.
  • Generation: POST <base_url>/images/generations.

xAI takes aspect_ratio / resolution / n / response_format, never OpenAI's size. It publishes no per-model option listing, so image_options/1 is the static set.