> ## Documentation Index
> Fetch the complete documentation index at: https://platform.stepfun.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Step Image Edit 2

> 文生图 + 图像编辑一体化 · 1-2 秒极速响应的轻量级生成编辑模型

阶跃星辰最新迭代的轻量级编辑模型，单模型同时支持**文生图**与**图像编辑**两类任务。在 6B 以下的参数规模内实现同量级性能标杆，可跨量级对标 12B-20B 级开源大模型。单次编辑任务仅需 1-2 秒，重塑实时交互修图体验。

<Columns cols={3}>
  <Card title="体验中心" icon="play" href="https://platform.stepfun.com/console-tools">
    在阶跃星辰开放平台直接体验文生图与编辑效果。
  </Card>

  <Card title="效果展示" icon="image" href="#效果展示">
    查看官方样例 Prompt 与生成结果。
  </Card>

  <Card title="API 快速开始" icon="rocket" href="#快速上手">
    查看最小可运行的 curl 调用示例。
  </Card>
</Columns>

## 关键信息

<Columns cols={3}>
  <Card title="参数规模">
    6B 以下<br />轻量级生成编辑模型
  </Card>

  <Card title="提示词上限">
    512 字符
  </Card>

  <Card title="输入图上限">
    4096x4096<br />（图像编辑场景）
  </Card>
</Columns>

## 核心能力

<Columns cols={3}>
  <Card title="🏆 轻量级量级的性能标杆">
    专注于在 6B 以下的参数规模内实现性能最大化。在同量级模型中展现出极强的编辑能力，是目前该量级综合评价最强的图像编辑模型。
  </Card>

  <Card title="🚀 极致的智能密度与跨量级超越">
    通过优化架构提升参数效率，以更小的体积实现对 12B-20B 级开源大模型的跨量级超越。在通用编辑与参考编辑场景下，其表现已足以对标国内顶尖闭源模型。
  </Card>

  <Card title="⚡ 秒级响应，重塑实时交互">
    深度的架构优化使推理速度实现质的飞跃，单次编辑任务仅需 1-2 秒。这种近乎零延迟的执行效率，彻底解决了传统大模型在"实时交互修图"上的性能瓶颈。
  </Card>
</Columns>

## API 端点

<Columns cols={2}>
  <Card title="文生图" href="/zh/api-reference/images/image">
    `POST /v1/images/generations`<br />根据 Prompt 从零生成图像。
  </Card>

  <Card title="图像编辑" href="/zh/api-reference/images/edits">
    `POST /v1/images/edits`<br />基于输入图与 Prompt 修改图像。
  </Card>
</Columns>

## 定价

| 计费项        | 单价             |
| :--------- | :------------- |
| 文生图 / 图像编辑 | **0.02 元 / 张** |

[查看完整定价详情 →](/zh/guides/pricing/details)

## 快速上手

<Tabs>
  <Tab title="文生图 (curl)">
    ```bash theme={null}
    curl https://api.stepfun.com/v1/images/generations \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer $STEP_API_KEY" \
      -d '{
        "model": "step-image-edit-2",
        "prompt": "采菊东篱下，悠然见南山",
        "response_format": "b64_json",
        "cfg_scale": 1.0,
        "steps": 8,
        "seed": 1,
        "text_mode": true
      }'
    ```

    文生图支持的尺寸：`1024x1024`、`768x1360`、`896x1184`、`1360x768`、`1184x896`（格式为 `height x width`）。
  </Tab>

  <Tab title="图像编辑 (curl)">
    ```bash theme={null}
    curl -X POST "https://api.stepfun.com/v1/images/edits" \
      -H "Authorization: Bearer $STEP_API_KEY" \
      -F 'model=step-image-edit-2' \
      -F 'image=@input.webp' \
      -F 'prompt=让图中角色骑自行车，手上举个牌子写着"沙特阿拉伯"' \
      -F 'response_format=b64_json' \
      -F 'cfg_scale=1.0' \
      -F 'steps=8' \
      -F 'seed=1' \
      -F 'text_mode=true'
    ```

    图像编辑场景下会返回与输入图相同尺寸的结果图。
  </Tab>
</Tabs>

<Info>`text_mode` 是针对文字场景的优化策略，按需开启，默认关闭。当 `cfg_scale = 1.0` 时，`negative_prompt` 不会被传递给底层模型。</Info>

## 效果展示

### 文生图

<AccordionGroup>
  <Accordion title="广角风景摄影">
    <img src="https://mintcdn.com/stepfun/1VdJKiRsguWM75uf/images/guide/step-image-edit-2/t2i-01-landscape.png?fit=max&auto=format&n=1VdJKiRsguWM75uf&q=85&s=366bab853f9ca3bcff5dbdfc612b82f3" alt="" width="1024" height="1024" data-path="images/guide/step-image-edit-2/t2i-01-landscape.png" />

    **Prompt**：一张令人惊叹的广角风景摄影作品，澄澈透亮的高山湖泊宛如一面完美的镜面。背景中，巍峨的雪山直插缀着缕缕白云的湛蓝天空，湖畔山坡上，秋日的山杨林绽放出绚烂的金黄色。湖水将群山、林木与天空清晰无误地倒映其中。画面超写实，8K 分辨率，《国家地理》风格，色彩鲜明，氛围静谧祥和。
  </Accordion>

  <Accordion title="电影感人像">
    <img src="https://mintcdn.com/stepfun/1VdJKiRsguWM75uf/images/guide/step-image-edit-2/t2i-02-girl.png?fit=max&auto=format&n=1VdJKiRsguWM75uf&q=85&s=4bb3ba43ce2d6e6cde748065a3cd8a06" alt="" width="1024" height="1024" data-path="images/guide/step-image-edit-2/t2i-02-girl.png" />

    **Prompt**：高角度电影感人像镜头，一位年轻女孩站在夕阳中的复古石板街口，棕色长发被晚风吹动，身穿复古白色碎花泡泡袖连衣裙，人物面部、发丝和服装纹理清晰可见。构图以人物为核心，背景适度虚化，身后的老建筑、木窗与暖色墙面只作为氛围衬托。黄金时刻的阳光温柔包裹她的侧脸与肩部，发梢与裙摆边缘泛着淡淡金色光晕，营造出怀旧、纯真、安静的夏日晚风气息。35mm film, Kodak Portra 400 tones, soft bloom, shallow depth of field, cinematic portrait, nostalgic mood, photorealistic.
  </Accordion>

  <Accordion title="极简静物摄影">
    <img src="https://mintcdn.com/stepfun/1VdJKiRsguWM75uf/images/guide/step-image-edit-2/t2i-03-vase.png?fit=max&auto=format&n=1VdJKiRsguWM75uf&q=85&s=3a531d9ed10dadd4a4b9cf34a48fa2ee" alt="" width="1024" height="1024" data-path="images/guide/step-image-edit-2/t2i-03-vase.png" />

    **Prompt**：一张极简风格的静物摄影作品。画面中央是一个深蓝色的光泽玻璃花瓶，插着一束盛开的金黄色郁金香。花瓶放置在带有纹理的浅白色桌面上，背景是纯白的墙壁。强烈的午后阳光从侧面射入，在墙面上投射出清晰、修长且富有艺术感的花叶阴影。光影对比鲜明，色彩纯净，营造出宁静、治愈且温暖的氛围。高画质，8k 分辨率。
  </Accordion>

  <Accordion title="古典油画静物">
    <img src="https://mintcdn.com/stepfun/1VdJKiRsguWM75uf/images/guide/step-image-edit-2/t2i-04-still-life.png?fit=max&auto=format&n=1VdJKiRsguWM75uf&q=85&s=e73fe512a799c036d908f8e5dc7983be" alt="" width="1024" height="1024" data-path="images/guide/step-image-edit-2/t2i-04-still-life.png" />

    **Prompt**：一幅古典油画风格的静物画，荷兰黄金时代风格。画面中心是一个透明玻璃花瓶，插满了色彩斑斓的郁金香、百合和紫色花朵（橙色、粉色、紫色）。旁边摆放着白色的陶瓷茶壶和精致的茶杯。前景的深色木桌上铺着一条飘逸的绿白条纹丝绸桌布。桌面上散落着切开的柠檬、柠檬皮、几杯红茶以及零落的花瓣。背景是深暗的纹理墙面，一只蝴蝶在花丛旁飞舞。光影柔和细腻，细节丰富，具有厚重的油画笔触感。
  </Accordion>
</AccordionGroup>

### 图像编辑

<AccordionGroup>
  <Accordion title="姿态 / 对话气泡">
    **Prompt**：让图中猫躺在地上露出肚皮，旁边有个对话气泡框写着"我错了"

    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         输入图                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     效果图                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
    | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
    | <img src="https://mintcdn.com/stepfun/1VdJKiRsguWM75uf/images/guide/step-image-edit-2/edit-01-cat-before.png?fit=max&auto=format&n=1VdJKiRsguWM75uf&q=85&s=04af0a1d3eef22aeebe94e196d907876" alt="" width="1024" height="1024" data-path="images/guide/step-image-edit-2/edit-01-cat-before.png" /> | <img src="https://mintcdn.com/stepfun/1VdJKiRsguWM75uf/images/guide/step-image-edit-2/edit-01-cat-after.png?fit=max&auto=format&n=1VdJKiRsguWM75uf&q=85&s=c1fdb2ee1221d0e60f561c023737f97a" alt="" width="1024" height="1024" data-path="images/guide/step-image-edit-2/edit-01-cat-after.png" /> |
  </Accordion>

  <Accordion title="服装替换">
    **Prompt**：图中男性换成西装和衬衫，女性换成一个美丽的西式婚纱，头戴纱巾，两个人同时正面面向镜头

    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    输入图                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                效果图                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
    | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
    | <img src="https://mintcdn.com/stepfun/1VdJKiRsguWM75uf/images/guide/step-image-edit-2/edit-02-couple-before.png?fit=max&auto=format&n=1VdJKiRsguWM75uf&q=85&s=7084014faf98358da047c3822c5e64a3" alt="" width="683" height="1024" data-path="images/guide/step-image-edit-2/edit-02-couple-before.png" /> | <img src="https://mintcdn.com/stepfun/1VdJKiRsguWM75uf/images/guide/step-image-edit-2/edit-02-couple-after.png?fit=max&auto=format&n=1VdJKiRsguWM75uf&q=85&s=331765743a851267fe3291cbc9274bc2" alt="" width="683" height="1024" data-path="images/guide/step-image-edit-2/edit-02-couple-after.png" /> |
  </Accordion>
</AccordionGroup>

## 相关资源

<Columns cols={2}>
  <Card title="生图改图模型总览" icon="arrow-left" href="/zh/guides/models/image">
    返回生图改图模型概览页，查看所有图像生成 / 编辑模型。
  </Card>

  <Card title="图片生成最佳实践" icon="paintbrush" href="/zh/guides/developer/image-generate">
    从文本提示出发生成图片，并处理生成结果与返回数据。
  </Card>

  <Card title="图像编辑最佳实践" icon="wand-magic-sparkles" href="/zh/guides/developer/image-edit">
    按功能导向的图像编辑指南，含 Prompt 示例与输入图要求。
  </Card>

  <Card title="完整定价详情" icon="receipt" href="/zh/guides/pricing/details">
    查看语音 / 文本 / 图像等全部模型的计费规则。
  </Card>
</Columns>
