Step1x-Edit(Modify Image)
Image modification from StepFun, simply input the image and prompt words to modify the image Request
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
Images that need to be modified
{
"prompt": "Hair turns black",
"image_url": "https://file.302ai.cn/gpt/imgs/20250507/d778f9319c534b1c8ffc49c15db14fb1.jpg"
}
Request samples
curl --location --request POST 'https://api.302.ai/302/submit/step1x-edit' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "Hair turns black",
"image_url": "https://file.302ai.cn/gpt/imgs/20250507/d778f9319c534b1c8ffc49c15db14fb1.jpg"
}'
Responses
application/json {
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}
Modified at 2025-05-08 06:58:11