Experimental
Creates a configuration object that can be passed directly to new AzureOpenAI(config). Resolves the deployment URL and sets up token-based authentication for SAP AI Core.
new AzureOpenAI(config)
The options for creating the OpenAI configuration.
A promise that resolves to an AzureClientOptions object. This function is experimental and may change at any time without prior notice.
import { AzureOpenAI } from 'openai';import { createOpenAiConfig } from '@sap-ai-sdk/openai';const config = await createOpenAiConfig('gpt-5.4');const client = new AzureOpenAI(config);await client.chat.completions.create({ messages: [{ role: 'user', content: 'Hello!' }]}); Copy
import { AzureOpenAI } from 'openai';import { createOpenAiConfig } from '@sap-ai-sdk/openai';const config = await createOpenAiConfig('gpt-5.4');const client = new AzureOpenAI(config);await client.chat.completions.create({ messages: [{ role: 'user', content: 'Hello!' }]});
Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.
Creates a configuration object that can be passed directly to
new AzureOpenAI(config). Resolves the deployment URL and sets up token-based authentication for SAP AI Core.