# Getting 404 when accessing https://api.openai.com/v1/chat/completions

**URL:** <https://community.make.com/t/getting-404-when-accessing-https-api-openai-com-v1-chat-completions/57638>\
**Category:** Questions\
**Tags:** chatgpt, api\
**Created:** [October 11, 2024, 1:09pm UTC](https://community.make.com/t/getting-404-when-accessing-https-api-openai-com-v1-chat-completions/57638 "2024-10-11T13:09:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vitaly\_Suturikhin](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@Vitaly\_Suturikhin](https://community.make.com/u/Vitaly_Suturikhin)\
**Post date:** [October 11, 2024, 1:09pm UTC](https://community.make.com/t/getting-404-when-accessing-https-api-openai-com-v1-chat-completions/57638/1 "2024-10-11T13:09:05Z")

</div>

### What are you trying to achieve?

I’m trying to POST open AI request and get answer via API. As soon as I succeed with JSON test website like [https://reqbin.com/](https://reqbin.com/) I don’t succeed with Make flow.

Question: I attach the screenshot. Any ideas why I’m getting 404 ?

Authorization is already included in gpt connection however I have tried to apply it anyway - doesn’t work

### Steps taken so far

- used JSON test tools - everything working fine
- used ChatGPT request - didn’t help
- checked every field in ChatGPT API request - didn’t help

### Screenshots: scenario setup, module configuration, errors

 ![POST_API_OpenAI_404.png](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/d/4ddc43877948adec35c3970c83f528a17c9b52fb.png)

---

<div class="post-metadata">

**Author:** ![Vitaly\_Suturikhin](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@Vitaly\_Suturikhin](https://community.make.com/u/Vitaly_Suturikhin)\
**Post date:** [October 11, 2024, 1:33pm UTC](https://community.make.com/t/getting-404-when-accessing-https-api-openai-com-v1-chat-completions/57638/2 "2024-10-11T13:33:25Z")

</div>

basically the same API request in Postman getting 200

 ![postman_check](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/1/411cbb33e37ab07ae36e364d6bbe7b09a7e93512.png)

What I’m doing wrong ?

---

<div class="post-metadata">

**Author:** ![Vitaly\_Suturikhin](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@Vitaly\_Suturikhin](https://community.make.com/u/Vitaly_Suturikhin)\
**Post date:** [October 11, 2024, 1:40pm UTC](https://community.make.com/t/getting-404-when-accessing-https-api-openai-com-v1-chat-completions/57638/3 "2024-10-11T13:40:52Z")

</div>

found the answer. Expected URL is v1/chat/completions not the full URL itself

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/4/b4b10e05f1da4b02f6a78a76f16abfbf16d02c00.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [October 11, 2024, 2:04pm UTC](https://community.make.com/t/getting-404-when-accessing-https-api-openai-com-v1-chat-completions/57638/4 "2024-10-11T14:04:59Z")

</div>

Welcome to the Make community, and a great first question and answer!

Here’s a further explanation of the problem:

You inserted an Absolute (full) URL into the URL field.

If you **read** the description **below** it, it says:

> Enter a path **relative** … for **example** …

So you simply need to omit the first part of the URL that will be added for you.

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

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [October 25, 2024, 2:11pm UTC](https://community.make.com/t/getting-404-when-accessing-https-api-openai-com-v1-chat-completions/57638/5 "2024-10-25T14:11:20Z")

</div>


