# Optimize images and alt text with Grok

> Add StoreSEO as a Grok connector, then ask it to compress heavy product images and write alt text and file names one image at a time from grok.com.

Optimizing your Shopify images with Grok means chatting on grok.com with StoreSEO added as a custom connector, so Grok can find heavy or unlabelled product images and compress, caption and rename them one at a time without opening Shopify admin.

## How do you set up Grok for this?

### 1. Add a custom connector

Open the connectors page on grok.com, choose New Connector and then Custom. Enter this as the MCP server URL and complete the authentication when it opens.

```text
https://mcp.storeseo.com/mcp
```

### 2. Approve your store and check it

Pick your Shopify store in the browser and approve access. Then start a chat with the connector available and ask this to confirm the connection works.

```text
Use StoreSEO to show me my store's SEO score breakdown.
```

### 3. Or have a team admin provision it (optional)

Only on Grok Business and Enterprise: xAI's documentation says a team admin must first provision the connector in the cloud console before members can use it. Give the admin the same URL.

```text
https://mcp.storeseo.com/mcp
```

Then ask: "Use StoreSEO to show my ten heaviest unoptimized product images and tell me what compressing them will cost in quota."

## How does this work in Grok?

You are in a Grok conversation on grok.com, with StoreSEO already added from the connectors page as a custom connector. There is no editor and no terminal, so everything happens in the chat. Ask which of your product images have no alt text, or which are the heaviest, and Grok opens a StoreSEO session with storeseo_start, then calls storeseo_list_images. The listing shows compression, alt text and file name for each image, and the default order puts the largest uncompressed files first, so the reply starts with the images that cost your pages the most.

What you get back is a plain-language list: which images are done, which are partly done and which are untouched, with the product each one belongs to. Search by product title scopes it to one product, and Grok should check that every row really belongs to the product you meant, because a title search can also match file names from other resources. Before it starts optimizing, ask it to name the number of images and the kind of spend, since compression draws on the Image Optimizer add-on quota and alt text and file names draw on AI Content Optimizer credit.

Then storeseo_optimize_image runs once per image with the axes you agreed to, and Grok reports applied, already applied, skipped or refused for each. If you dislike a result, ask Grok to restore that image and it calls storeseo_restore_image for the axis you name, bringing back the original file, the earlier alt text or the old file name. Renaming changes the image's storefront URL, which Grok should mention, and a collection or article image can take a couple of minutes because the rename re-uploads it.

### Example session (illustrative)

**You:** Which product images have no alt text?
→ `storeseo_start` (read-only)
→ `storeseo_list_images` (read-only)
**Agent:** Eleven images have no alt text; six are on Linen Apron. Alt text uses AI credit. Do you want me to write alt text for the six Linen Apron images?
**You:** Yes, only alt text for those six.
→ `storeseo_optimize_image` (needs approval)
**Agent:** First Linen Apron image done: alt text written, file name and compression untouched. Five to go, one call each.

## What StoreSEO does: image seo and alt text

StoreSEO tracks three things per image: file-size compression, alt text and file name. The agent finds the heaviest or unlabelled images, optimizes them one call per image, and can restore any of the three if you do not like the result.

Tools: `storeseo_list_images`, `storeseo_optimize_image`, `storeseo_restore_image`

Requires: Compression needs the Image Optimizer add-on and counts against its monthly quota; alt text and file names spend AI Content Optimizer credit.

1. **Find the images.** The agent lists product, collection or article images, heaviest unoptimized first by default. It can filter to images with no alt text, or scope the list to one product by title.
2. **Check what it found.** A title search can also match image file names from other resources, so the agent checks each row belongs to the product you meant.
3. **Agree the scope and cost.** Compression uses image quota and alt text and file names use AI credit, so the agent confirms before working through many images.
4. **Optimize one image per call.** Each call takes the axes you want: compression, alt text, file name or all three. The axes always run compression, then file name, then alt text, and the response reports each one separately.
5. **Report or restore.** The agent reports what applied, what was already done and what was refused. If a result is wrong, the restore tool brings back the original file, alt text or name.

## Image SEO and alt text reference

| Setting or limit | What applies |
|---|---|
| Axes per image | Compression, alt text, file name |
| Image sources | Products, collections and articles (pages have no images) |
| Batching | One image per call; never two calls on the same image at once |
| Compression | Image Optimizer add-on and its monthly quota; an already compressed image is reported as already applied |
| Alt text and file name | AI Content Optimizer credit; both together are billed as one generation |
| File name change | Renames the file on Shopify and changes the image's storefront URL |
| Collection and article renames | Re-upload the image, so the call can take a couple of minutes |
| Restore | Reverts compression, alt text or file name per axis |
| Score impact | Alt text and file names count on products, collections and articles; compression counts on products |

## Rules Grok follows

- The agent confirms the number of images and the kind of spend before a bulk run.
- One image per call, all wanted axes together; never parallel calls on the same image.
- A renamed image has a new URL, so the agent tells you, because anything that hard-coded the old URL keeps serving the old file.
- If a response is lost, the agent re-lists the image instead of retrying, because a retry regenerates and spends again.
- A refused axis, for example compression without the add-on, is reported as such while the other axes still apply.

**In Grok:** xAI's connector documentation does not describe a per-tool approval setting, so on grok.com the main check on image changes is StoreSEO's instruction to name the cost and wait for your yes, and that works only if you read the plan before replying. On Grok Business and Enterprise, an admin has to provision the connector in the cloud console first. Image work is one call per image, so a store with hundreds of images means a long chat; scope each request to one product or one batch.

## What can you ask Grok to do?

- Use StoreSEO to show my ten heaviest unoptimized product images and tell me what compressing them will cost in quota.
- Which product images have no alt text at all? Write alt text for the ones on my best seller after I say yes.
- Put back the original alt text on the last image you changed.
- Find my ten heaviest unoptimized product images and compress them. Tell me the quota it will use first.
- Which product images have no alt text at all? Write alt text for the ones on my best seller.
- Optimize every image on the product Canvas Tote: compression, alt text and file name.
- Restore the original alt text on the last image you changed.
- Give my collection images descriptive file names, and warn me which URLs will change.

## Frequently asked questions

### Can Grok write alt text for all my product images at once?

It works through them one image per call, so a large catalog takes many calls in one conversation. Ask for one product or a batch of ten at a time, and expect it to name the AI credit use before it starts.

### Can I tell Grok exactly what file name or alt text to use?

No. StoreSEO writes both from the product's own context, and you can only steer the language. If you want specific wording, edit the alt text yourself in Shopify admin.

### Can the agent compress images without the Image Optimizer add-on?

No. Compression needs the Image Optimizer add-on and counts against its monthly quota. Alt text and file names work without it and spend AI Content Optimizer credit instead.

### Can I undo an image optimization?

Yes. The restore tool reverts compression, alt text or file name for one image, per axis. Restoring compression brings back the original file.

### Why did my image URL change?

Giving an image a new file name renames the file on Shopify and re-points its storefront URL. Pages that use the image through Shopify keep working, but anything that hard-coded the old URL keeps the old file.

### Can I write my own file name or alt text through the agent?

No. StoreSEO writes the alt text and file name from the resource's own context. You can steer the language, and you can always edit alt text yourself in Shopify admin.

## Image SEO and alt text with other agents

- [Optimize images and alt text with Claude](https://storeseo.com/agent/claude/image-seo)
- [Optimize images and alt text with ChatGPT](https://storeseo.com/agent/chatgpt/image-seo)
- [Optimize images and alt text with Claude Code](https://storeseo.com/agent/claude-code/image-seo)
- [Optimize images and alt text with Claude Cowork](https://storeseo.com/agent/claude-cowork/image-seo)
- [Optimize images and alt text with Cursor](https://storeseo.com/agent/cursor/image-seo)
- [Optimize images and alt text with Codex](https://storeseo.com/agent/codex/image-seo)
- [Optimize images and alt text with Gemini CLI](https://storeseo.com/agent/gemini-cli/image-seo)
- [Optimize images and alt text with GitHub Copilot](https://storeseo.com/agent/github-copilot/image-seo)
- [Optimize images and alt text with Windsurf](https://storeseo.com/agent/windsurf/image-seo)
- [Optimize images and alt text with ChatGPT dots](https://storeseo.com/agent/chatgpt-dots/image-seo)
- [Optimize images and alt text with Grok Bot](https://storeseo.com/agent/grok-bot/image-seo)
- [Optimize images and alt text with Muse](https://storeseo.com/agent/muse/image-seo)
- [Optimize images and alt text with Manus](https://storeseo.com/agent/manus/image-seo)
- [Optimize images and alt text with OpenClaw](https://storeseo.com/agent/openclaw/image-seo)
- [Optimize images and alt text with Hermes Agent](https://storeseo.com/agent/hermes-agent/image-seo)
- [Optimize images and alt text with Paperclip](https://storeseo.com/agent/paperclip/image-seo)
- [Optimize images and alt text with NanoClaw](https://storeseo.com/agent/nanoclaw/image-seo)
- [Optimize images and alt text with OpenCode](https://storeseo.com/agent/opencode/image-seo)
- [Optimize images and alt text with Zed](https://storeseo.com/agent/zed/image-seo)
- [Optimize images and alt text with Kiro](https://storeseo.com/agent/kiro/image-seo)
- [Optimize images and alt text with Antigravity](https://storeseo.com/agent/antigravity/image-seo)
- [Optimize images and alt text with Kimi Code](https://storeseo.com/agent/kimi/image-seo)

## More Grok guides

- [Grok and StoreSEO overview](https://storeseo.com/agent/grok)
- [Audit your store's SEO with Grok](https://storeseo.com/agent/grok/seo-audit)
- [Optimize meta tags and content with Grok](https://storeseo.com/agent/grok/optimize-meta)
- [Get products ready for AI search with Grok](https://storeseo.com/agent/grok/ai-search-readiness)
- [Publish llms.txt and agents.md with Grok](https://storeseo.com/agent/grok/llms-txt-agents-md)
- [Set up structured data with Grok](https://storeseo.com/agent/grok/structured-data)
- [Manage sitemaps and indexing with Grok](https://storeseo.com/agent/grok/sitemaps)
- [Track keyword rankings with Grok](https://storeseo.com/agent/grok/keyword-tracking)
- [Read Search Console and Analytics with Grok](https://storeseo.com/agent/grok/google-reports)
- [Write SEO blog post drafts with Grok](https://storeseo.com/agent/grok/blog-posts)

## Related documentation

- [How to use the StoreSEO image optimizer](https://storeseo.com/docs/how-to-use-storeseo-image-optimizer-on-shopify)
- [Generate and add image alt text with AI](https://storeseo.com/docs/generate-and-add-image-alt-text-with-ai)
- [Monthly usage limit for the image optimizer](https://storeseo.com/docs/monthly-usage-limit-for-image-optimizer)
- [Add the image optimizer to your plan](https://storeseo.com/docs/how-to-add-image-optimizer-to-your-subscription-plan)

---

Canonical: https://storeseo.com/agent/grok/image-seo
Last updated: October 2026.

Approval: Reads run straight away; StoreSEO tells the agent to preview and wait for your yes before it writes, spends credit or publishes, and your client's tool-approval setting is the hard stop.

Every agent guide: https://storeseo.com/agent · Connect the MCP server: https://storeseo.com/docs/connect-storeseo-mcp-to-your-ai-assistant · Pricing: https://storeseo.com/pricing · Install StoreSEO: https://apps.shopify.com/storeseo
