> For the complete documentation index, see [llms.txt](https://docs.flora.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flora.ai/models/image-models/gpt-image-by-openai.md).

# 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="https://526296967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWthH0GpcCHwVdtbvahZS%2Fuploads%2FBwo3IgL8sgYgZUvmCVI5%2FFLORA-Model%20Cards-017efa42.png?alt=media&amp;token=e6ec8a7f-e92d-4028-9fb7-802dac3402b6" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://526296967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWthH0GpcCHwVdtbvahZS%2Fuploads%2FKNn6oT2zJ1IpRvjSd6ey%2FFLORA-Model%20Cards-b0d9eecd.png?alt=media&amp;token=0c68a7ee-a2ee-4ef7-b427-dd393f5e90c5" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://526296967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWthH0GpcCHwVdtbvahZS%2Fuploads%2Fpxt5YEsreOjCk3hkUD2J%2Fimage.png?alt=media&amp;token=50eac59a-3ce5-4fa8-8712-52529ead2feb" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
