# XaiImageApiFetch

> XaiImageApiFetch is the user agent that xAI's API uses to download an image from a URL that a developer sends in a request. xAI gives no robots.txt policy.

Canonical: https://promptlyfound.com/crawlers/xaiimageapifetch
Updated: 2026-11-26

## Short answer

XaiImageApiFetch is the user agent that xAI's API sends when it downloads an image from a URL in a developer's request. The download happens at request time, for every request. **xAI documents no robots.txt policy for it, so a server or firewall rule is the firm way to stop it.** Third-party tools also send the name, so treat it as a claim.

## Key findings

- xAI's API definition says that when a request gives an image URL, the API downloads the image for every request without a cache, with the XaiImageApiFetch/1.0 user agent. [1]
- xAI says the image fetch times out after 5 seconds. If the download fails, the API request fails too. [1]
- xAI's Image Understanding guide says the image_url value can be a public URL on the internet instead of a base64 data URL. [2]
- The pi-web-access tool for coding agents sends "OpenAI File Downloader, XaiImageApiFetch/1.0" as its default user agent for page fetches. [3]
- A client with the user agent "OpenAI File Downloader, XaiImageApiFetch/1.0" requested pages on our site.

## What blocking it does

A block stops one kind of request: an xAI API call that names an image on your site. [xAI's API definition](https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/image.proto) says that when a request gives an image URL, the API downloads the image for every request, without a cache. It sends the user agent `XaiImageApiFetch/1.0` and stops after 5 seconds. If the download fails, the API request fails too.[1] [xAI's Image Understanding guide](https://docs.x.ai/developers/model-capabilities/images/understanding) says the image can be a public URL on the internet.[2]

![Part of xAI's Image Understanding guide, with the image URL field and the sentence that it can also be a public URL on the Internet highlighted](https://promptlyfound.com/images/crawlers/xaiimageapifetch/xai-image-understanding-url.webp)
*xAI says the image in an Image Understanding request can be a public URL on the internet. Screenshot of [Image Understanding](https://docs.x.ai/developers/model-capabilities/images/understanding), November 26, 2026, with highlights added.*

The fetch happens because a developer put your image URL in a request. It is not a crawl. xAI does not say that it keeps the image or uses it for training. A block has no stated effect on the names that third-party lists link to Grok, such as [GrokBot](https://promptlyfound.com/crawlers/grokbot), or on xAI's agent product [Grok Bot](https://promptlyfound.com/crawlers/grok-bot).

## robots.txt rules

xAI documents no robots.txt token and does not say that the fetcher reads robots.txt. To state a preference, use the name in the user agent:

```
User-agent: XaiImageApiFetch
Disallow: /
```

A server or firewall rule that matches "XaiImageApiFetch" in the user agent is the firm control.

## Verify a request

You cannot verify an XaiImageApiFetch request. xAI publishes no IP list and no DNS check for it. Other software also uses the name. The [pi-web-access tool](https://github.com/nicobailon/pi-web-access/releases/tag/v0.41.0) sends "OpenAI File Downloader, XaiImageApiFetch/1.0" as its default user agent for page fetches.[3] That is the string our server logs show in the 7 days to Nov 26, 2026. xAI documents only `XaiImageApiFetch/1.0`, and only for image downloads. It does not document the longer string. Treat the name in your logs as a claim.

## Sources

1. xai-proto: proto/xai/api/v1/image.proto. xAI. https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/image.proto
2. Image Understanding. xAI Docs. https://docs.x.ai/developers/model-capabilities/images/understanding
3. Release v0.41.0, nicobailon/pi-web-access. GitHub. https://github.com/nicobailon/pi-web-access/releases/tag/v0.41.0

---

This is a plain-text copy of https://promptlyfound.com/crawlers/xaiimageapifetch from Promptly Found. The web page is the canonical version and includes the charts.
