Authorization: Bearer ********************{
"model": "gpt-image-2",
"prompt": "图像中加一个太阳,保持原有构图和光线",
"image": [
"https://media-test.com/3eHWsHOJFAFnO0DUSP09KW65ps9xN6r7.png"
],
"n": 1,
"size": "1024x1024",
"quality": "high",
"response_format": "url"
}curl --location 'https://api.naoshengyun.com/v1/images/edits' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2",
"prompt": "图像中加一个太阳,保持原有构图和光线",
"image": [
"https://media-test.com/3eHWsHOJFAFnO0DUSP09KW65ps9xN6r7.png"
],
"n": 1,
"size": "1024x1024",
"quality": "high",
"response_format": "url"
}'{
"created": 1789974000,
"data": [{"b64_json": "iVBORw0KGgoAAAANSUhEUgAA..."}]
}