> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.empiriolabs.ai/models/step-image-edit-2/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.empiriolabs.ai/_mcp/server. # Step Image Edit 2 > StepFun image generation and image editing model for text-to-image and single-image edits. ![Step Image Edit 2](https://media.empiriolabs.ai/model-logos/step-image-edit-2.png) [StepFun](/providers/stepfun) · Image Generation `POST /v1/images/generations` StepFun image generation and image editing model for text-to-image and single-image edits. ## At a glance | Field | Value | | ------------------- | ------------------------------------------------------ | | Model id | `step-image-edit-2` | | Model release date | 2026-04-29 | | Input modalities | Text, Image | | Output modalities | Image | | Context window | - | | Weight precision | - | | Region | International | | Features | image\_generation, image\_editing, text\_rendering | | Native inference | No | | New | No | | Supported endpoints | `POST /v1/images/generations`, `POST /v1/images/edits` | | Alternate model ids | `stepfun/step-image-edit-2` | ## Pricing | Charge | Spec | Rate | | ------------ | ------------------- | ------- | | Output image | per generated image | \$0.003 | ## Example request ```bash curl https://api.empiriolabs.ai/v1/images/generations \ -H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \ -H 'Content-Type: application/json' \ -d '{"model": "step-image-edit-2", "prompt": "a misty forest at dawn", "size": "1024x1024"}' ``` ## Parameters | Parameter | Type | Required | Default | Description | | ----------------- | ------- | -------- | ------------- | ---------------------------------------------------------------------------------------------- | | `prompt` | string | yes | - | Prompt or edit instruction. Maximum 512 characters. · Max: 512 | | `image` | image | no | - | Reference image URL, data URI, or uploaded image. When present, image editing mode is used. | | `images` | array | no | - | Alias for image. StepFun Image Edit 2 currently uses one input image. | | `size` | enum | no | `"1024x1024"` | Output size. · Allowed: `1024x1024`, `768x1360`, `896x1184`, `1360x768`, `1184x896` | | `n` | integer | no | `1` | Accepted for API compatibility. StepFun currently returns one image. · Range: 1 – 1 | | `response_format` | enum | no | `"url"` | Return signed image URLs by default or include base64 image data. · Allowed: `url`, `b64_json` | | `seed` | integer | no | - | Random seed for reproducible generation. · Range: 0 – 2147483647 | | `steps` | integer | no | `8` | Sampling steps. · Range: 1 – 50 | | `cfg_scale` | number | no | `1.0` | Classifier-free guidance scale. · Range: 1 – 10 | | `negative_prompt` | string | no | - | Negative prompt. Maximum 512 characters. · Max: 512 | | `text_mode` | boolean | no | false | Enable text-focused rendering mode. | ## Notes Supports text-to-image and single-image editing. Prompt and negative\_prompt are limited to 512 characters. Supported sizes are 1024x1024, 768x1360, 896x1184, 1360x768, and 1184x896. n is currently limited to 1. **Content safety** Generated images pass an automated content-safety check. An image flagged as explicit is not returned. Because the image is generated before the check runs, a flagged generation is still billed. --- *Machine-readable schema:* `GET https://api.empiriolabs.ai/v1/models/step-image-edit-2`. > StepFun image generation and image editing model for text-to-image and single-image edits.