Skip to content
Back to skills

Xai Image Generate

ASecurity

Use when the user asks to generate, create, make, or save images with xAI, Grok Imagine, or a Grok-connected xAI image generation tool.

  • 6 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
ai-agentsapi

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add islee23520/lfg --skill xai-image-generate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xai Image Generate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Xai Image Generate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/islee23520-xai-image-generate/badge)](https://www.skillsdirectory.com/skills/islee23520-xai-image-generate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: xai_image_generate
description: Use when the user asks to generate, create, make, or save images with xAI, Grok Imagine, or a Grok-connected xAI image generation tool.
---

# xAI Image Generate

Use this skill for xAI/Grok Imagine image requests through the Grok-connected xAI image-generation tool.

## Preferred Grok Tool Flow

1. Use `search_tool` to discover the available tool schema first:

```json
{
  "query": "xai image generate"
}
```

2. Call the returned xAI image-generation MCP tool with the schema it reports. A typical payload is:

```json
{
  "prompt": "tiny minimalist blue dot icon on white background",
  "resolution": "2k",
  "artifact_dir": ".grok-xai-artifacts"
}
```

For base64 image payloads saved locally, request the response format supported by the tool schema and pass an artifact directory when available.

## Options

- `prompt`: required image prompt.
- `model`: defaults are tool-owned unless the user asks for a specific model.
- `n`: number of images.
- `resolution`: commonly `1k` or `2k` when supported.
- `response_format`: `url` or `b64_json` when supported.
- `size`: provider-specific size string.
- `artifact_dir`: local directory for saved image artifacts, when supported.

When `artifact_dir` is present, return the upstream JSON plus artifact metadata. Saved artifacts should include a local `path`, `mime_type`, `source`, and `status` when the tool provides them. If a remote URL cannot be downloaded, preserve its upstream URL instead of hiding it.

## Credential Safety

Use existing Grok/xAI credentials exposed by the host or MCP server. Never print, quote, summarize, or store OAuth tokens, refresh tokens, bearer tokens, or API keys.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.