> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.ai.openai.DescribeImages

- Component: `appmixer.ai.openai.DescribeImages`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.ai.openai 2.1.3](https://connectors.appmixer.com/connector/appmixer.ai.openai/2.1.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.ai.openai/2.1.3/component/appmixer.ai.openai.DescribeImages>

Answer questions about the content of one or more images.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Prompt (`prompt`) | textarea | The question to answer about the content of one or more images. |
| Images (`images`) | expression | - |
| Model (`model`) | text | ID of the model to use. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Answer (`answer`) | string | - |
| Prompt (`prompt`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.ai.openai.DescribeImages",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Answer questions about the content of one or more images.",
  "auth": {
    "service": "appmixer:ai:openai"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          },
          "images": {},
          "model": {
            "type": "string"
          }
        },
        "required": [
          "prompt",
          "images"
        ]
      },
      "inspector": {
        "inputs": {
          "prompt": {
            "label": "Prompt",
            "type": "textarea",
            "index": 1,
            "tooltip": "The question to answer about the content of one or more images."
          },
          "images": {
            "label": "Images",
            "type": "expression",
            "index": 2,
            "levels": [
              "ADD"
            ],
            "fields": {
              "fileId": {
                "type": "filepicker",
                "label": "File ID",
                "tooltip": "The image file to attach. Only PNG, JPEG, non-animated GIF and WEBP image types are supported.",
                "index": 1
              }
            }
          },
          "model": {
            "type": "text",
            "index": 3,
            "label": "Model",
            "tooltip": "ID of the model to use.",
            "defaultValue": "gpt-4o",
            "source": {
              "url": "/component/appmixer/ai/openai/ListModels?outPort=out",
              "data": {
                "transform": "./ListModels#toSelectOptions"
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Answer",
          "value": "answer",
          "schema": {
            "type": "string",
            "example": "The image shows a red bicycle leaning against a brick wall."
          }
        },
        {
          "label": "Prompt",
          "value": "prompt",
          "schema": {
            "type": "string",
            "example": "What is in this image?"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
