# StableStudio Flux 2 Pro Image Edit

> StableStudio Flux 2 Pro Image Edit 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-09).

Edit and transform existing images using Flux 2 Pro, guided by a text prompt, returning an async job ID

## Facts

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

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

Example prompt: Edit this product photo (https://example.com/product.jpg) using Flux 2 Pro — make the background a snowy mountain landscape and change the lighting to golden hour; output as a 1:1 PNG at 1 MP and quality 90.

## When to prefer this

Choose this endpoint when you need to edit or transform existing images using the Flux 2 Pro model specifically, rather than generating from scratch. Prefer over GPT Image or Nano Banana editing endpoints when Flux 2 Pro's photorealistic style and fine-grained prompt control are desired. Use when the user supplies one or more reference images and wants AI-guided modifications rather than pure text-to-image generation.

## Known failure modes

- Invalid or inaccessible image URL returns a 4xx error
- Prompt exceeds 10,000 character limit returns validation error
- images array empty or exceeds 8 items returns schema validation error
- Safety tolerance too low for requested content results in content policy rejection
- Insufficient USDC balance / payment failure returns 402
- Job remains in pending state if upstream Flux 2 Pro service is overloaded

## How this service works

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

## Output

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

## Example request

```json
{
 "seed": 42,
 "images": [
  "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400"
 ],
 "prompt": "Transform this portrait with warm golden hour lighting and enhance the skin tones",
 "resolution": "1 MP",
 "aspect_ratio": "1:1",
 "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"
  },
  "images": {
   "type": "array",
   "items": {
    "type": "string",
    "format": "uri",
    "description": "Image URL"
   },
   "maxItems": 8,
   "minItems": 1,
   "description": "Array of image URLs to use as references for editing"
  },
  "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-edit",
  "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-edit-e5cdfa10/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)
