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

# 画像生成

> C# SDKで/images/generationsを呼び出します。

**メソッド**: `client.GenerateImage(...)`または`client.CreateImage(...)`

### 例

```csharp theme={null}
using PhaseoSdk;

var client = new Phaseo(apiKey);
var response = await client.GenerateImage(new Dictionary<string, object>
{
    ["model"] = "openai/gpt-image-1",
    ["prompt"] = "A lighthouse at golden hour",
    ["size"] = "1024x1024",
    ["n"] = 1,
    ["response_format"] = "url"
});
```

### 主なパラメーター

* `model`（必須）：画像対応モデルのID（例：`openai/gpt-image-1`）。
* `prompt`（必須）：指示文。
* `n`（1～10）：生成する画像の数。
* `size`：例：`1024x1024`、`1024x1792`、`1792x1024`。
* `quality`：`standard`または`hd`（モデルに依存）。
* `style`：例：`vivid`または`natural`（モデルに依存）。
* `response_format`：`url`または`b64_json`。
* `user`：安全性や不正利用の追跡に使う任意のエンドユーザータグ。

### 戻り値

`ImageGenerationResponse`


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