# `PhoenixKitAI.Providers.XAI`
[🔗](https://github.com/BeamLabEU/phoenix_kit_ai/blob/0.23.1/lib/phoenix_kit_ai/providers/xai.ex#L1)

`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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
