# openAI API keys

**URL:** <https://community.thunkable.com/t/openai-api-keys/3157912>\
**Category:** Web API's\
**Tags:** beginner\
**Created:** [August 25, 2024, 12:28pm UTC](https://community.thunkable.com/t/openai-api-keys/3157912 "2024-08-25T12:28:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crysthianglezfpn81d9](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@crysthianglezfpn81d9](https://community.thunkable.com/u/crysthianglezfpn81d9)\
**Post date:** [August 25, 2024, 12:28pm UTC](https://community.thunkable.com/t/openai-api-keys/3157912/1 "2024-08-25T12:28:15Z")

</div>

Hi all,

I’ve been experimenting enough with the openAI API keys so I got to know that I need to make a payment to be able to use tokens from openAI, however I was wondering wether or not I need to set the API key between {brackets}, etc to actually be able to use the key properly.

For example I am doing the demo

when chatScreen\_START then {  
SET API key to “{sk-XXXXXXXXXX}”  
}

When Button1 click then {  
prompt = inputText.text

response = GET response  
error = GET error  
}

MyTextBox.text = response

The result is always “undefined” and I am wondering if you see something wrong in my pseudo-code?

Thanks in advance!!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 26, 2024, 1:24am UTC](https://community.thunkable.com/t/openai-api-keys/3157912/2 "2024-08-26T01:24:40Z")

</div>

No, you should not include brackets in the text string representing the API key.
