Step Image Edit 2 API

StepFun image generation and image editing model for text-to-image and single-image edits.

StepFunImage GenerationReleased Apr 29, 2026InternationalProprietary EndpointNew

About Step Image Edit 2

StepFun image generation and image editing model for text-to-image and single-image edits.

Attach image or images to trigger image-edit mode. Reference images use image editing mode; text-only prompts use image generation mode.

Also known as StepFun Step Image Edit 2, Step-Image-Edit-2

image generationimage editingtext rendering

Step Image Edit 2 specs

Model ID
step-image-edit-2
Provider
StepFun
Category
Image Generation
Released
Apr 29, 2026
Input
TextImage
Output
Image
Region
International
Endpoints
POST/v1/images/generationsPOST/v1/images/edits
Alternate model IDs
stepfun/step-image-edit-2

Step Image Edit 2 API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Output image
per generated image
$0.003
Compare on the full pricing page

How to call the Step Image Edit 2 API

Step Image Edit 2 runs through POST /v1/images/generations. The request returns a job_id right away; poll GET /v1/jobs/{job_id} until the job completes and read the output URLs from the result. Or add "sync": true to skip polling: the request stays open and returns the finished OpenAI-style image response directly, so OpenAI SDKs work as-is. Get an API key from the EmpirioLabs dashboard.

cURL: submit the job
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": "Describe what you want Step Image Edit 2 to generate."
  }'
cURL: poll for the result
curl https://api.empiriolabs.ai/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY"
Python
import requests

response = requests.post(
    "https://api.empiriolabs.ai/v1/images/generations",
    headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    json={
        "model": "step-image-edit-2",
        "prompt": "Describe what you want Step Image Edit 2 to generate.",
    },
)
job = response.json()

# Generation runs as an async job. Poll until it completes.
import time
while True:
    status = requests.get(
        f"https://api.empiriolabs.ai/v1/jobs/{job['job_id']}",
        headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    ).json()
    if status.get("status") in ("completed", "failed"):
        print(status)
        break
    time.sleep(5)
Full Step Image Edit 2 API reference

Step Image Edit 2 API parameters

Request parameters supported by the Step Image Edit 2 API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
promptstring-max 512Prompt or edit instruction. Maximum 512 characters.
imageimage--Reference image URL, data URI, or uploaded image. When present, image editing mode is used.
imagesarray--Alias for image. StepFun Image Edit 2 currently uses one input image.
sizeenum1024x10241024x1024, 768x1360, 896x1184, 1360x768, 1184x896Output size.
ninteger11 to 1Accepted for API compatibility. StepFun currently returns one image.
response_formatenumurlurl, b64_jsonReturn signed image URLs by default or include base64 image data.
seedinteger-0 to 2147483647Random seed for reproducible generation.
stepsinteger81 to 50Sampling steps.
cfg_scalenumber11 to 10Classifier-free guidance scale.
negative_promptstring-max 512Negative prompt. Maximum 512 characters.
text_modebooleanfalse-Enable text-focused rendering mode.

Good to know

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.

Step Image Edit 2 API: common questions

How much does the Step Image Edit 2 API cost?

On EmpirioLabs, Step Image Edit 2 is billed pay as you go: Output image $0.003 per generated image. The live rate card on this page always matches what the API charges.

Which endpoint does Step Image Edit 2 use?

Step Image Edit 2 is served through POST /v1/images/generations on api.empiriolabs.ai with standard bearer-token authentication.

Can I try Step Image Edit 2 in the browser before integrating?

Yes. The EmpirioLabs playground runs Step Image Edit 2 in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Step Image Edit 2 API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Check out our pricing or reach out if you want your own model deployed on our stack.