Skip to main content

Documentation Index

Fetch the complete documentation index at: https://platform.stepfun.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Step Plan supports image generation/editing models via a dedicated path. All requests use the /step_plan/v1/... path prefix, with the domain fixed as https://api.stepfun.ai.

Prerequisites

  1. Subscribed to a Step Plan.
  2. Obtained an API Key.

Image Generation / Editing Models

Supported Models

ModelDescription
step-image-edit-2Lightweight image generation/editing model. A single model supports both text-to-image and image editing; each editing task takes only 1-2 seconds, with input images supporting up to 4096x4096 resolution.

Endpoint Paths

CapabilityRequest MethodStep Plan Path
Text-to-imagePOSThttps://api.stepfun.ai/step_plan/v1/images/generations
Image editingPOSThttps://api.stepfun.ai/step_plan/v1/images/edits
The endpoint parameters are exactly the same as the open platform. For details, refer to the API documentation: Generate images, Image editing.

Billing Instructions

The billing logic is consistent with the open platform. Ultimately, the actual billed amount calculated on the open platform will be converted into Step Plan total quota consumption. For specific unit prices, please refer to Pricing and Rate Limits.

Examples

curl -X POST 'https://api.stepfun.ai/step_plan/v1/images/generations' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $STEP_API_KEY" \
-d '{
    "model": "step-image-edit-2",
    "prompt": "A serene alpine lake at sunset, mirror reflection, photorealistic",
    "response_format": "b64_json",
    "cfg_scale": 1.0,
    "steps": 8,
    "seed": 1,
    "text_mode": true
}'