Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
LeonKong123
New Member

How to access GPT-4o using Fabric Azure OpenAI REST API

Hi everyone,

 

In Microsoft Learn's "Overview of AI services in Fabric" page (https://learn.microsoft.com/en-us/fabric/data-science/ai-services/ai-services-overview), GPT-4o is shown as an option which can be accessed in Fabric (alongside GPT-4 and 3.5)

 

image.png

 

However, the detail pages on how to access OpenAI models using a Fabric Notebook (e.g.,  https://learn.microsoft.com/en-us/fabric/data-science/ai-services/how-to-use-openai-via-rest-api) then goes on to only show the syntax for accessing GPT-4 and 3.5, but NOT GPT-4o. I'm really quite keen to use GPT-4o over GPT-4 given how much better (and cheaper!) it is... anyone have idea whether it can be done through Fabric?

 

image.png

1 ACCEPTED SOLUTION
v-pbandela-msft
Community Support
Community Support

Hi @LeonKong123,

Thank you for reaching out in Microsoft Community Forum.

Still GPT-4o is not fully documented on how to access it via the REST API.

1. Since GPT-4o might still be in the preview or newly integrated, it’s possible that documentation updates are yet to cover it fully. Keep checking the official Microsoft Fabric or OpenAI documentation for new release notes or tutorials on using GPT-4o.

2.As of now, you can access GPT-4 using the documented REST API in Fabric Notebooks. You might try using that same syntax and see if GPT-4o is accessible through the same API endpoint, as it could be an additional model under the same REST API.

Please continue using Microsoft community forum.

If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.

Regards,
Pavan.

View solution in original post

4 REPLIES 4
v-pbandela-msft
Community Support
Community Support

Hi @LeonKong123,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and "Accept as Solution".  This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you,

Pavan.

v-pbandela-msft
Community Support
Community Support

Hi @LeonKong123,

I wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.
If the community member's answer your query, please mark it as "Accept as Solution" and select "Yes" if it was helpful.
If you need any further assistance, feel free to reach out.

Please continue using Microsoft community forum.

Thank you,
Pavan.

v-pbandela-msft
Community Support
Community Support

Hi @LeonKong123,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please "Accept  as  Solution" and give a 'Kudos' so other members can easily find it.

Thank you,
Pavan.

v-pbandela-msft
Community Support
Community Support

Hi @LeonKong123,

Thank you for reaching out in Microsoft Community Forum.

Still GPT-4o is not fully documented on how to access it via the REST API.

1. Since GPT-4o might still be in the preview or newly integrated, it’s possible that documentation updates are yet to cover it fully. Keep checking the official Microsoft Fabric or OpenAI documentation for new release notes or tutorials on using GPT-4o.

2.As of now, you can access GPT-4 using the documented REST API in Fabric Notebooks. You might try using that same syntax and see if GPT-4o is accessible through the same API endpoint, as it could be an additional model under the same REST API.

Please continue using Microsoft community forum.

If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.

Regards,
Pavan.

Helpful resources

Announcements
May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.