From 2c3733e402f969f484b3a6e5cc2e8136660e8769 Mon Sep 17 00:00:00 2001 From: sallam <108616378+h0tak88r@users.noreply.github.com> Date: Wed, 20 Nov 2024 19:33:34 +0200 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 8e8de21..88d7675 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ KeyHacks shows methods to validate different API keys found on a Bug Bounty Prog - [Zapier Webhook Token](#Zapier-Webhook-Token) - [Zendesk Access token](#Zendesk-Access-Token) - [Zendesk API key](#Zendesk-api-key) +- [OpenAI API key](#OpenAI-api-key) # Detailed Information @@ -944,6 +945,26 @@ Basic: ``` curl -u username:password http://your-grafana-server-url.com/api/user ``` +## [OpenAI Api Key](https://platform.openai.com/docs/quickstart?language-preference=curl#create-and-export-an-api-key) +``` +curl "https://api.openai.com/v1/chat/completions" \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer $OPENAI_API_KEY" \ + -d '{ + "model": "gpt-4o-mini", + "messages": [ + { + "role": "system", + "content": "You are a helpful assistant." + }, + { + "role": "user", + "content": "Write a haiku that explains the concept of recursion." + } + ] + }' +``` + # Contributing