xAI added file storage, public URLs, and a direct Files-to-Imagine pipeline to the Grok Imagine API on June 10, 2026. Developers can now reference a stored file as an Imagine input by ID, persist generated images and video back to Files, and mint a shareable public link for any asset, all without re-uploading. For anyone automating image or video generation, it removes the upload-download shuffle that slowed every iteration.

What This Enables

The new Files API turns a multi-step asset workflow into a single round trip. Upload a source image once, reference it by its file ID across many Imagine edits, and write each result straight back to storage. Because outputs now carry a public URL, you can drop a freshly generated frame into a Slack message, a CMS, or a client preview link without standing up your own bucket. Set an expires_after or expires_at policy and Imagine cleans up the temporary renders for you.

Why It Matters for Creators

Image and video pipelines live or die on iteration speed. Before this update, every edit on the Imagine API meant re-sending the source asset, then catching the result before its short-lived link expired. Referencing stored files by ID cuts the payload on every call and lets a batch job chain dozens of edits against the same base image. The shareable URLs also make it practical to wire Imagine into a review loop where a non-technical collaborator sees the output instantly.

Key Details

Public URLs for Files: any stored file can be turned into a shareable link.

Files-to-Imagine: reference stored files as Imagine inputs and persist Imagine outputs back to Files.

Expiration policies: set expires_after or an explicit expires_at timestamp so expired files are deleted automatically.

Batch note: image and video URLs in batch results expire after one hour, so persist anything you need to keep.

What to Do Next

Check the dates and parameters in the xAI release notes, then refactor one existing Imagine call to upload its source once and reference the file ID on subsequent edits. If you are still on the video side of the toolkit, our earlier coverage of Grok Imagine video 1.5 walks through the image-to-video model these files now feed.