# OpenAI

{% embed url="<https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?sid=a27b6eeb-c1f2-4ea3-a88c-a3e5324ec006>" %}

**1. Create an OpenAI Account** [0:24](https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?t=24)

* Visit platform.openai.com and create an account.

**2. Add Payment Method** [0:36](https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?t=36)

* Navigate to platform.openai.com/settings and add a payment method to your account.

**3. Load Account with Credits** [1:09](https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?t=69)

* Load your account with at least $10 worth of credits, which may include initial credits provided by OpenAI.

**4. Enable Auto-Recharge** [1:37](https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?t=97)

* Ensure that the auto-recharge option is enabled for your account.

![](https://uploads.linear.app/33cead15-dc64-4bc5-a335-6ed4fb10ef38/c2b94ce6-bfb3-423f-b236-6807b1d6874e/fac58c93-97dd-44b4-b5d0-cc81e3f544c7)

**5. Create a New API Key** [1:58](https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?t=118)

* Go to the API keys tab, create a new secret key, name it appropriately, and select the relevant project.

**6. Copy and Secure the API Key** [2:05](https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?t=125)

* Copy the generated API key immediately, as it will be encrypted and not visible again.

![](https://uploads.linear.app/33cead15-dc64-4bc5-a335-6ed4fb10ef38/dbdb3f27-dc8e-48b2-b423-e1a1bc6e0bce/3656ad51-c854-48de-99eb-4766e9c0c273)

**7. Access FormWise Dashboard** [2:32](https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?t=152)

* Log into your FormWise Dashboard, click on your name in the bottom left corner, and navigate to Settings > API Keys.

**8. Connect OpenAI API Key** [2:53](https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?t=173)

* Under Integrations, select OpenAI, click Connected, paste the API key, and hit Save.

**9. Verify GPT-4 Access** [3:11](https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?t=191)

* Check for a notification confirming GPT-4 access, which indicates that your account is properly configured.

![](https://uploads.linear.app/33cead15-dc64-4bc5-a335-6ed4fb10ef38/76c068c1-9362-43ad-a85b-041b253462bb/2d72557a-fa8b-46cc-b66a-5d1a02e8ecb8)

**10. Monitor API Usage** [3:39](https://www.loom.com/share/ccfa69262a8841ceaa46dbc3f52dafb8?t=219)

* Return to your OpenAI account and check the usage section to monitor API usage and costs.

#### Cautionary Notes <a href="#id-5edb291b-2ffd-444f-b1fe-dcfb92971a5b" id="id-5edb291b-2ffd-444f-b1fe-dcfb92971a5b"></a>

* Ensure that you copy the API key immediately after creation, as it will not be retrievable later.
* Make sure to add a payment method and load credits before creating the API key to avoid any interruptions in service.
* If you attempt to use the API key without sufficient credits, the API calls will not function.
* Keep a secure document or password manager to store the API key safely after copying it.
* Regularly check the usage section in your OpenAI account to manage costs effectively and avoid unexpected charges.

#### Selecting Models for Your Tools

* **Engine Flexibility:** With FormWise, you can choose which engine your tools will run on at the tool level. For instance:

-Use **GPT-3.5** for cost-efficient tasks.

-Use **GPT-4** for more complex, high-level tasks.

* This gives you control over which model fits the specific needs of each task within your FormWise tools.

#### No ChatGPT Plus Subscription Needed

You **don’t need** a ChatGPT Plus subscription to use OpenAI’s API. Once you have your API key, you can access the OpenAI models directly from FormWise—this operates independently from any ChatGPT subscriptions.

#### Pay-As-You-Go Pricing

OpenAI’s API operates on a **pay-as-you**-go model, meaning you only pay for what you use, for example:

* For **GPT-4** (with 8K tokens), it’s about **$0.03 per 1,000 tokens** (roughly 750 words for prompts) and **$0.06 per 1,000 tokens** for completions.
* **GPT-3.5** is more affordable, costing **$0.002 per 1,000 tokens**.

You also get $5 in free credits when you sign up, so you can start experimenting without immediate costs.

#### Stay Updated

New models and features come out regularly, so it’s always a good idea to check OpenAI’s[ pricing page](https://openai.com/pricing) to stay up to date with any changes.

This setup allows you to maximize flexibility and cost-effectiveness as you grow your FormWise tool usage!

<br>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.formwise.ai/formwise/integrations/openai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
