# StableStudio Flux 2 Pro Image Generation

> StableStudio Flux 2 Pro Image Generation 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-12).

Generates high-quality images from text prompts using the Flux 2 Pro model, returning a job ID for async retrieval

## Facts

- Endpoint: POST https://stablestudio.dev/api/generate/flux-2-pro/generate?utm_source=zero.xyz
- Price: $10/call
- Payment: MPP, x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- 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-bb6292aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UJvqtxiziIIKBaE1EMMEg

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-bb6292aa -d '<json body>'
```

Example prompt: Generate an image of a misty Japanese mountain village at dawn with cherry blossoms falling, 16:9 aspect ratio, 2 MP resolution, in PNG format — use Flux 2 Pro and enhance the prompt for more creative results.

## When to prefer this

Choose this endpoint when you need state-of-the-art image quality from the Flux 2 Pro model specifically, and are comfortable with an async job-based workflow. Prefer this over GPT Image or Grok image endpoints when Flux's photorealistic style is desired, or when you need fine-grained control over resolution (up to 2 MP), aspect ratio, seed reproducibility, and output format. Best for production-quality image generation tasks where image fidelity matters more than speed.

## Known failure modes

- Invalid or empty prompt returns a 400 validation error
- Prompt exceeds 10,000 character limit causing a 422 error
- Unsupported aspect_ratio or resolution enum value returns 400
- Payment of $10 USDC not provided or rejected causes a 402 error
- Safety tolerance mismatch with prompt content may cause generation refusal
- Server overload or model unavailability returns 503
- Invalid seed value outside integer bounds returns 400

## How this service works

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

## Output

Returns a JSON object with a jobId string, a status of 'pending', a type field, and a success boolean (true). The agent must poll a separate job-status endpoint using the jobId to retrieve the final generated image URL once processing completes.

## Example request

```json
{
 "seed": 42,
 "prompt": "A serene landscape with rolling green hills, a clear blue sky, and wildflowers in the foreground during golden hour",
 "resolution": "1 MP",
 "aspect_ratio": "16:9",
 "output_format": "webp",
 "output_quality": 80,
 "safety_tolerance": 2,
 "prompt_upsampling": false
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "integer",
   "maximum": 9007199254740991,
   "minimum": -9007199254740991,
   "description": "Random seed for reproducibility"
  },
  "prompt": {
   "type": "string",
   "maxLength": 10000,
   "minLength": 1,
   "description": "A detailed description of the image you want to generate"
  },
  "resolution": {
   "enum": [
    "0.5 MP",
    "1 MP",
    "2 MP"
   ],
   "type": "string",
   "default": "1 MP",
   "description": "Output resolution in megapixels"
  },
  "aspect_ratio": {
   "enum": [
    "1:1",
    "16:9",
    "9:16",
    "3:2",
    "2:3",
    "4:5",
    "5:4",
    "4:3",
    "3:4"
   ],
   "type": "string",
   "default": "1:1",
   "description": "Aspect ratio of the output image"
  },
  "output_format": {
   "enum": [
    "webp",
    "jpg",
    "png"
   ],
   "type": "string",
   "default": "webp",
   "description": "Output image format"
  },
  "output_quality": {
   "type": "integer",
   "default": 80,
   "maximum": 100,
   "minimum": 0,
   "description": "Quality for JPG/WebP output (0-100)"
  },
  "safety_tolerance": {
   "type": "integer",
   "default": 2,
   "maximum": 5,
   "minimum": 1,
   "description": "Content safety strictness (1=strict, 5=permissive)"
  },
  "prompt_upsampling": {
   "type": "boolean",
   "default": false,
   "description": "Let the model enhance your prompt for more creative results"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "flux-2-pro-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-bb6292aa/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)
