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

# Geração de imagens

> Chame /images/generations com o SDK C#.

**Métodos**: `client.GenerateImage(...)` ou `client.CreateImage(...)`

### Exemplo

```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"
});
```

### Parâmetros principais

* `model` (obrigatório): ID de um modelo compatível com imagens (por exemplo, `openai/gpt-image-1`).
* `prompt` (obrigatório): texto da instrução.
* `n` (1–10): número de imagens a gerar.
* `size`: por exemplo, `1024x1024`, `1024x1792` ou `1792x1024`.
* `quality`: `standard` ou `hd` (depende do modelo).
* `style`: por exemplo, `vivid` ou `natural` (depende do modelo).
* `response_format`: `url` ou `b64_json`.
* `user`: identificador opcional do usuário final para acompanhamento de segurança e abuso.

### Retorno

`ImageGenerationResponse`


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