# StableStudio GPT-Image-2 Generate

> StableStudio GPT-Image-2 Generate is a paid API for AI agents from stablestudio.io, paid per call via x402, $10/call, status unknown (last checked 2026-09-13).

Generates AI images using the GPT-Image-2 model via a pay-per-generation endpoint, returning a job ID for async retrieval.

## Facts

- Endpoint: POST https://stablestudio.io/api/generate/gpt-image-2/generate
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablestudio-gpt-image-2-generate-9912f57a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_esIW9BLe_TmdSExr6LCKL

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-gpt-image-2-generate-9912f57a -d '<json body>'
```

Example prompt: Generate an image of a futuristic cityscape at sunset with neon lights reflecting on wet streets, photorealistic style — using StableStudio's pay-per-generation GPT-Image-2 model.

## When to prefer this

Choose this endpoint when you need GPT-Image-2 quality images without committing to a subscription, especially for sporadic or agent-driven image generation workflows where pay-per-call economics are preferable. Ideal for autonomous agents that generate images on demand and need crypto-native (USDC) payment via x402 protocol.

## Known failure modes

- Insufficient USDC balance causes payment failure and rejected request
- Invalid or missing prompt returns error
- Model unavailable or overloaded returns service error
- Malformed request body causes 400 error
- Job created but image generation fails asynchronously — status will reflect failure on polling

## How this service works

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

## Output

Returns a JSON object with the generation type ('gpt-image-2-generate'), a unique jobId for polling the result, a status field (initially 'pending'), and a success boolean indicating the job was accepted.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "enum": [
    "1024x1024",
    "1536x1024",
    "1024x1536",
    "auto"
   ],
   "type": "string",
   "description": "Image dimensions (square, landscape, portrait, or auto)"
  },
  "prompt": {
   "type": "string",
   "minLength": 1,
   "description": "A detailed description of the image you want to generate"
  },
  "quality": {
   "enum": [
    "low",
    "medium",
    "high"
   ],
   "type": "string",
   "default": "high",
   "description": "Output quality level (affects cost and detail)"
  },
  "background": {
   "enum": [
    "opaque",
    "auto"
   ],
   "type": "string",
   "default": "auto",
   "description": "Background fill behavior for generated image output"
  },
  "moderation": {
   "enum": [
    "low",
    "auto"
   ],
   "type": "string",
   "default": "low",
   "description": "Content moderation strictness"
  },
  "output_format": {
   "enum": [
    "png",
    "jpeg",
    "webp"
   ],
   "type": "string",
   "default": "png",
   "description": "Output image format"
  },
  "output_compression": {
   "type": "number",
   "default": 0,
   "maximum": 100,
   "minimum": 0,
   "description": "Compression level (0-100, higher = smaller file)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "gpt-image-2-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-gpt-image-2-generate-9912f57a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablestudio.io](https://www.zero.xyz/host/stablestudio.io/llms.txt)
