cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Consuming Gen AI models using the REST API does not work

essay88
Explorer
0 Kudos
404

Hi,

I am trying to use the REST APIs to interact with the Gen AI deployments as mentioned in this document,

https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/consume-generative-ai-models-using-s...

But when I do as is explained, I am getting an error response (404 - Not found). Please see the screenshot below.

essay88_0-1738070912022.png

This is happening if I use the latest api-version from this SAP Note or if I simply use api-version as "latest".

Strangely it is not happening if I just put the api-version as mentioned in the documentation. 

Could someone please explain if this is intended behavior, and we should always use this api-version even if there are more updated ones available?

Regards,

Saurabh

Accepted Solutions (0)

Answers (1)

Answers (1)

Yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos


HI @essay88 

First thing you need to confirm deployment id(********) is running in your AI Core Console and if its running.. can you check in Postman headers if this both is inculded while making Post call..

Authorization : Bearer <token>

AI-Resource-Group : default


you can find the details in last part of the blog which helps to fix your issue
https://community.sap.com/t5/technology-blogs-by-sap/set-up-sap-generative-ai-hub-in-an-sap-btp-ente...

AI Core APIs
https://community.sap.com/t5/technology-blogs-by-sap/leveraging-sap-ai-core-apis-to-build-your-own-a...