# StableStudio Flux 2 Max Image Edit

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

Edits an existing image using the Flux 2 Max model via a pay-per-generation API, returning a job ID for async result retrieval.

## Facts

- Endpoint: POST https://stablestudio.dev/api/generate/flux-2-max/edit
- 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-flux-2-max-image-edit-b6feec80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0GVf4b1a4e-GSoAf1kToB

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-flux-2-max-image-edit-b6feec80 -d '<json body>'
```

Example prompt: Edit my product photo to remove the background and replace it with a clean white studio backdrop — use Flux 2 Max on StableStudio and just charge me per generation, no subscription.

## When to prefer this

Choose this endpoint when you need high-quality AI-powered image editing using the Flux 2 Max model on a pay-per-call basis with no subscription commitment. Prefer it over subscription-based services for infrequent or burst editing needs, or when you specifically need Flux 2 Max quality (the highest tier Flux model). Use the sibling generate endpoint for text-to-image instead.

## Known failure modes

- Payment of $10 USDC not provided or rejected — request fails with payment required error
- Invalid or inaccessible source image URL — job fails during processing
- Unsupported image format or resolution — processing error returned
- Prompt violates content policy — generation refused
- Service overload or queue timeout — job stuck in pending state
- Invalid request body schema — 400 error before job creation

## How this service works

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

## Output

A JSON object with type ('flux-2-max-edit'), a unique jobId string for polling the result, a status field (initially 'pending'), and a success boolean indicating the job was accepted. The agent must poll a separate endpoint using the jobId to retrieve the final edited image.

## 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": 10,
   "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",
    "4 MP"
   ],
   "type": "string",
   "default": "1 MP",
   "description": "Output resolution in megapixels (up to 4 MP)"
  },
  "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-max-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-flux-2-max-image-edit-b6feec80/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)
