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

# 图像编辑

> 使用 Python SDK 调用 /images/edits。

**方法**: `client.generate_image_edit()`

```python theme={null}
result = client.generate_image_edit({
    "model": "openai/gpt-image-1",
    "prompt": "Make it sunset",
    "image": "data:image/png;base64,...",
})

print(result)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.