LumixAI logo
xAI image generation API

Grok API for production images.

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 per image
Provider
xAI
Grok API image generation sample

Model overview

Why use Grok through LumixAI?

Grok image generation through the LumixAI API with live model pricing from the backend.

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

AI image generation

production workflows

API integrations

Developer workflow

Call Grok without a separate provider integration.

Async jobs

Queue generation with /v1/images/jobs, poll /v1/images/jobs/{id}, then download the finished image.

Credit pricing

Grok starts at 6 credits per image before conditional rules.

Modality
Image
Aspect ratios
auto, 1:1, 16:9, 9:16
Resolutions
Default
await fetch("https://api.lumixai.live/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: "auto",
    resolution: "2k"
  })
});

Next step

Generate your first Grok image.

Generate with LumixAI