Differences between Playground and OpenAI API

Hi,

I am new at OpenAI.
Could you tell me what the differences between Playground and OpenAI API are?
Thanks

Playground let’s you do things without code

API let’s you write code to do things

1 Like

Thank you so much!
I saw that in Playground you can view and copy the code.
Once I copied it, how can I run the code?
Is there a tutorial?
Thanks