> For the complete documentation index, see [llms.txt](https://readme.directual.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://readme.directual.com/api-integrations/other-integrations/openai.md).

# OpenAI

### Step 1. Sign up&#x20;

Go to <https://chat.openai.com/> and create an account (EU/US telephone number is needed)

### Step 2. Get API key

<https://platform.openai.com/account/api-keys>&#x20;

### Step 3. Install plugin

{% hint style="info" %}
OpenAI plugin is available for all paid plans
{% endhint %}

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

### Completion text

#### Example

**prompt**:\
`Bob: Hello, guys!`\
`Alice: Hello, chaps!`\
`AI: Nice to meet you!`\
`Aliсe: Who are you?!`\
`AI:`

**stopwords**:\
`Bob,Alice,AI`

### Text to image

#### Example

**prompt**:

`Draw me a cat`
