LumixAI logo
xAI image generation API

Grok API

Grok API is a fast creative image generation option for social-first visuals, conversational prompts, and rapid idea exploration.

Model slug
grok
Credit rate
6 credits
Provider
xAI
Grok API image generation sample

Model overview

What is Grok API?

Grok image API option for fast creative generation, social-first visuals, and conversational prompt workflows.

Use Grok through LumixAI when you want one stable REST workflow for prompts, model selection, async jobs, usage tracking, and credit pricing. The page targets searches for Grok API, Grok image API, and xAI image generation API.

social visuals

rapid generation

creative prompts

Developer workflow

Call Grok from one image API.

Async jobs

Queue generation, poll status, and return image URLs when render completes.

Credit pricing

Grok starts at 6 credits per image before conditional rules.

await fetch("https://api.example.com/v1/images/jobs", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-API-Key": process.env.LUMIXAI_API_KEY
  },
  body: JSON.stringify({
    model: "grok",
    prompt: "premium product image, clean studio lighting",
    aspectRatio: "16:9",
    resolution: "2k"
  })
});

Next step

Try Grok with an API key.

Start generating
Grok API | LumixAI