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

# छवि जनरेशन

> TypeScript SDK के साथ /images/generations call करें।

**Method**: `client.generateImage()`।

### उदाहरण

```typescript theme={null}
const image = await client.generateImage({
  model: "openai/gpt-image-1",
  prompt: "A lighthouse at golden hour",
  size: "1024x1024",
  n: 1,
  response_format: "url",
});
```

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

* `model` (ज़रूरी): image-capable model ID (जैसे `openai/gpt-image-1`)।
* `prompt` (ज़रूरी): text prompt।
* `n` (1–10): जनरेट की जाने वाली images की संख्या।
* `size`: जैसे `1024x1024`, `1024x1792`, `1792x1024`।
* `quality`: `standard` या `hd` (model पर निर्भर)।
* `style`: जैसे `vivid` या `natural` (model पर निर्भर)।
* `response_format`: `url` या `b64_json`।
* `user`: सुरक्षा और दुरुपयोग की निगरानी के लिए अंतिम उपयोगकर्ता का वैकल्पिक टैग।

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

`ImageGenerationResponse`

```json theme={null}
{
  "data": [
    {
      "url": "https://example.com/generated_image.png"
    }
  ]
}
```


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