> ## 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.

# छवि संपादन

> Ruby SDK के साथ /images/edits call करें।

**Methods**: `client.generate_image_edit(...)` या `client.create_image_edit(...)`।

### उदाहरण

```ruby theme={null}
require 'phaseo_sdk'

client = PhaseoSdk::Phaseo.new(api_key: ENV.fetch("PHASEO_API_KEY"))
edited = client.generate_image_edit(
  model: 'openai/gpt-image-1',
  prompt: 'Make it sunset',
  image: 'data:image/png;base64,...',
  mask: 'data:image/png;base64,...'
)
```

### मुख्य पैरामीटर

* `model` (ज़रूरी): image-edit सक्षम model ID।
* `image` (ज़रूरी): source image का base64 data URL या URL।
* `prompt`: संपादन के लिए एक वैकल्पिक नया निर्देश।
* `mask`: वैकल्पिक मास्क (पारदर्शी क्षेत्र संपादित होते हैं)।
* `n` (1–10): edited variants की संख्या।
* `size`: जैसे `1024x1024`, `1024x1792`, `1792x1024`।
* `response_format`: `url` या `b64_json`।
* `user`: अंतिम उपयोगकर्ता का वैकल्पिक टैग।

### लौटाया गया मान

`ImageGenerationResponse`


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