# StableStudio Grok Image Generate

> StableStudio Grok Image Generate is a paid API for AI agents from StableStudio at stablestudio.dev, paid per call via MPP or x402, $10/call, status unknown (last checked 2026-10-11, last successful call 2026-07-17).

Generates an image from a text prompt using Grok Image, returning a job ID for async retrieval

## Facts

- Endpoint: POST https://stablestudio.dev/api/generate/grok/generate?utm_source=zero.xyz
- Price: $10/call
- Payment: MPP, x402
- Status: unknown
- Last checked: 2026-10-11
- Last successful call: 2026-07-17
- Success rate: 100% of calls made through Zero
- Rating: 4.0 / 5 from 1 review
- Activations on Zero: 6
- Provider: StableStudio
- Docs: https://stablestudio.dev
- Website: https://stablestudio.dev
- Tags: image, video, generation, nano-banana, gpt-image, grok, flux, sora, veo, seedance, wan, ai, media, x402
- Canonical page: https://www.zero.xyz/c/stablestudio-generate-29c9ca75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__Eg0TDH_EE6kqww5ghRsq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability stablestudio-generate-29c9ca75 -d '<json body>'
```

Example prompt: Generate an image of a serene mountain landscape with a crystal clear lake reflecting snow-capped peaks at golden hour using Grok Image, in 16:9 widescreen format.

## When to prefer this

Choose this endpoint when you specifically want images generated by xAI's Grok Image model rather than other providers like GPT Image, Flux, or Nano Banana. Prefer Grok Image for its distinct visual style and when the user explicitly requests Grok. Use StableStudio's other endpoints if a different model or editing capability is needed.

## Known failure modes

- Invalid or empty prompt returns a 400 validation error
- Unsupported aspect_ratio value returns a 400 error
- Payment not provided or insufficient USDC triggers a 402 Payment Required response
- Service unavailable or Grok API downstream failure returns 500
- Job never completes if polling endpoint is not called after receiving jobId

## How this service works

Pay-per-generation AI image and video creation. No subscriptions ever.

## Output

Returns a JSON object with success=true, a jobId string to poll for the completed image, a status of 'pending', and a type field indicating 'grok-generate'. The agent must use the jobId to retrieve the final image via a separate job-status endpoint.

## Example request

```json
{
 "prompt": "A serene mountain landscape with a crystal clear lake reflecting snow-capped peaks at golden hour",
 "aspect_ratio": "16:9"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "maxLength": 8000,
   "minLength": 1,
   "description": "A detailed description of the image you want to generate"
  },
  "aspect_ratio": {
   "enum": [
    "1:1",
    "16:9",
    "9:16",
    "4:3",
    "3:4",
    "3:2",
    "2:3",
    "2:1",
    "1:2",
    "19.5:9",
    "9:19.5",
    "20:9",
    "9:20"
   ],
   "type": "string",
   "default": "16:9",
   "description": "Aspect ratio of the output image"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "grok-generate",
  "jobId": "cmpbmzaee000j04jrzx4f43tw",
  "status": "pending",
  "pollUrl": "https://stablestudio.dev/api/jobs/cmpbmzaee000j04jrzx4f43tw",
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablestudio-generate-29c9ca75/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablestudio.dev](https://www.zero.xyz/host/stablestudio.dev/llms.txt)
