OpenAI API Key (`sk-proj-...`) Not Working in Make

Hello Make Community,

I recently tried to integrate OpenAI with Make using the new API keys that OpenAI provides (sk-proj-...), but I keep receiving a 404 Not Found error when making requests to https://api.openai.com/v1/chat/completions.

It seems that Make does not support these new project-based API keys, while older API keys (sk-...) still work fine.

Steps I Followed:

  1. Created a new API key in OpenAI, which starts with sk-proj-....
  2. Set up a Make API Call module with:
  • Endpoint: https://api.openai.com/v1/chat/completions
  • Headers:
Authorization: Bearer sk-proj-XXXXXXXXXXXX
Content-Type: application/json
  • Body:
{
  "model": "gpt-4",
  "messages": [
    { "role": "system", "content": "You are a helpful assistant." },
    { "role": "user", "content": "Hello!" }
  ]
}
  1. Running the request returns:
[404] Not Found

Questions:

  • Is Make planning to update its OpenAI integration to support sk-proj-... API keys?
  • Has anyone found a workaround to use these new project-based API keys in Make?
  • Would it be necessary to set up a custom Webhook instead?

Any guidance or insights would be greatly appreciated!

Thanks in advance!

Welcome to the Make community!

For technical issues or bugs like this, directly contacting support can often lead to a faster resolution. They have access to your specific account details, scenario and scenario logs, server-side logs, and internal tools and resources, which allows them to investigate more thoroughly than what you have access to. Additionally, sharing sensitive information about your account or scenario might not be suitable for an open forum discussion.

You can open a new ticket here, or if you are unable to login for some reason, you can create another new free account to access the ticketing system (which is only available to logged-in users). After submitting a new ticket, you will receive an automatic confirmation email with the subject “Ticket Created” in the subject. If you do not receive this, try sending the ticket again.

If you manage to get your issue resolved with support, we’d still love to hear about it! Sharing your solution on the forum can help others facing similar problems.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.