> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pipeshub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI

> Configure PipesHub to use OpenAI image generation models

# OpenAI Image Generation Configuration

<img src="https://mintcdn.com/pipeshub/xDYTCu7XyGABzJ1N/images/ai-models/image-generation/OpenAI_ImageGenConfig.png?fit=max&auto=format&n=xDYTCu7XyGABzJ1N&q=85&s=0064d4f1001d57db263ca1b1bc157d28" alt="OpenAI Image Generation Configuration Interface" width="669" height="1007" data-path="images/ai-models/image-generation/OpenAI_ImageGenConfig.png" />

*The OpenAI image generation configuration screen in PipesHub where you'll enter your API Key and Model Name*

PipesHub allows you to integrate with OpenAI's image generation models to enable AI-powered image creation in your workspace. Once configured, AI agents and workflows can generate images from text prompts using OpenAI's DALL-E and GPT-Image models.

## Required Fields

### API Key \*

The API Key is required to authenticate your requests to OpenAI's image generation services.

**How to obtain an API Key:**

1. Log in to your [OpenAI account](https://platform.openai.com/api-keys)
2. Navigate to the API Keys section
3. Create a new secret key
4. Copy the key immediately (it will only be shown once)

**Security Note:** Your API key should be kept secure and never shared publicly. PipesHub securely stores your API key and uses it only for authenticating requests to OpenAI.

### Model Name \*

The Model Name field defines which OpenAI image generation model you want to use with PipesHub.

**Available OpenAI image generation models:**

* `gpt-image-1` - OpenAI's latest image generation model with high-quality, instruction-following image creation
* `dall-e-3` - DALL-E 3, OpenAI's previous generation image model with strong prompt adherence

**How to choose a model:**

* For the best quality and most accurate prompt following, select `gpt-image-1`
* For broad availability and proven reliability, select `dall-e-3`
* Check OpenAI's [image generation documentation](https://platform.openai.com/docs/guides/images) for the most up-to-date options

## Configuration Steps

As shown in the image above:

1. Click **Configure** on the OpenAI provider card
2. Enter your OpenAI API Key in the designated field (marked with \*)
3. Specify your desired Model Name (marked with \*)
4. (Optional) Set a **Model Friendly Name** — a human-readable label shown in the UI
5. Click **Add Model** to save and validate your credentials

> Both the API Key and Model Name are required fields to successfully configure OpenAI image generation integration.

## Usage Considerations

* Each image generation request will count against your OpenAI account's quota and billing
* Different models have different pricing — check OpenAI's pricing page for details
* Image generation is typically more expensive per request than text generation

## Troubleshooting

* If you encounter authentication errors, verify your API key is correct and has not expired
* Ensure your OpenAI account has billing set up
* Check that the model name is spelled correctly and matches exactly (e.g. `dall-e-3`, not `DALL-E-3`)
* Verify your account has access to the image generation API (some API keys may have restrictions)

For additional support, refer to the [OpenAI image generation documentation](https://platform.openai.com/docs/guides/images) or contact PipesHub support.
