# GPT-Image (by OpenAI)

### **Overview**

Multimodal image generation and editing powered by API.

***

### **Quick facts**

* **Modes:** Text → Image · Image → Image (editing)
* **Default output / size:** 1024×1024 (auto)
* **Aspect ratios:** Auto, 3:2, 1:1, 2:3

***

### **What it’s great for**

* Photoreal and stylized image generation integrated with LLM workflows.
* Simple image edits and inpainting.

***

### **Example outputs**

{% hint style="info" %}
Generated hero image — cinematic portrait
{% endhint %}

<figure><img src="/files/WCWgWAjfAadlch9ji8vq" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Photoreal render
{% endhint %}

<figure><img src="/files/ky48QrKDuwYd60bXxlYg" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Edited photo example — background swap
{% endhint %}

<figure><img src="/files/XlFPt5Vusnmg9gchP1FL" alt=""><figcaption></figcaption></figure>

#### **Copy-and-paste prompts**

```
Cinematic street portrait, 50mm lens feel, golden hour, shallow depth of field — 1:1
```

```
Edit: replace background with moody studio backdrop, natural skin tones preserved
```

```
Product pack shot on white, crisp shadows, 1200x1200
```

***

### **Parameters**

| Name           | Type   | Default | Notes               |
| -------------- | ------ | ------- | ------------------- |
| `Prompt`       | Text   | —       | Required            |
| `Aspect Ratio` | Select | Auto    | Auto, 3:2, 1:1, 2:3 |
| `Quality`      | Select | High    | Low, Medium, High   |
| `Image`        | Upload | —       | Required for edits  |

***

### **Modes (summary)**

| Mode                 | Estimated time | Required inputs | Typical use        |
| -------------------- | -------------- | --------------- | ------------------ |
| Text → Image         | 45 seconds     | Prompt          | Image generation   |
| Image → Image (edit) | 1 minute       | Image, Prompt   | Inpainting & edits |

***

### **Output options**

| Option       | Values / notes      |
| ------------ | ------------------- |
| Aspect ratio | Auto, 3:2, 1:1, 2:3 |

***

### **Prompt tips**

* Specify composition, lens feel, lighting, and desired ratio.
* Use “Edit:” to indicate local edits vs full generation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flora.ai/models/image-models/gpt-image-by-openai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
