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

# OpenAI Image

> The OpenAI Image connector enables the creation of AI-generated images using various OpenAI models. With this connector, you can create high-quality images based on text descriptions and apply different image styles.

## Options

<ParamField body="model" type="string" required>
  The name of the image AI model.

  Example:

  ```
  gpt-image-1
  ```
</ParamField>

<ParamField body="openAIApiKey" type="string">
  The OpenAI API key.
</ParamField>

<ParamField body="openAIOrgKey" type="string">
  The organization key for the OpenAI API.
</ParamField>

<ParamField body="openAIProjectKey" type="string">
  The project key for the OpenAI API.
</ParamField>

<ParamField body="endpointUrl" type="string">
  The endpoint URL for the OpenAI API.
</ParamField>

<ParamField body="azureAPIKey" type="string">
  The API key for the Azure API.
</ParamField>

<ParamField body="azureAPIVersion" type="string">
  The API version for the Azure API.
</ParamField>

<ParamField body="inputTokenTextCost" type="float" required>
  Cost per text token.
</ParamField>

<ParamField body="inputTokenImageCost" type="float" required>
  Cost per image input token.
</ParamField>

<ParamField body="outputTokenImageCost" type="float" required>
  Cost per image output token.
</ParamField>

## Arguments

<ParamField body="prompt" type="string" required>
  The prompt for the LLM to populate the argument for image generation.
  Example:

  ```
  The prompt to generate or edit an image from
  ```
</ParamField>

<ParamField body="size" type="string">
  The image size. Possible values:

  * 1024x1024
  * 1536x1024
  * 1024x1536
  * auto

  Example:

  ```
  The size of the requested image. Use 1024x1024 (square) as the default, 1536x1024 if the user requests a wide image, and 1024x1536 for full-body portraits. As default use ‘auto‘
  ```
</ParamField>

<ParamField body="quality" type="string">
  The quality level. Possible values:

  * auto
  * high
  * medium
  * low

  Example:

  ```
  The quality of the requested image. Use ‘high‘, ‘medium‘, ‘low‘ or ‘auto‘. As default use ‘auto‘
  ```
</ParamField>

<ParamField body="lastImagesCount" type="string">
  Number of the most recently generated images to be returned.

  Example:

  ```
  The count of last images which should be edited or used. 0 for unlimited or zero images. Default is 0.
  ```
</ParamField>
