scrimba
AI Engineering
Deploy AI Apps
Connect your worker to OpenAI
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Connect your worker to OpenAI
AboutCommentsNotes
Connect your worker to OpenAI
Expand for more info
terminal-commands.md
run
preview
console
## Install OpenAI in your Worker project
npm install openai

## Save API key to your Workers environment
npx wrangler secret put OPENAI_API_KEY

## Deploy the latest Worker changes
npx wrangler deploy
Console
/index.html
-4:27