# Function resolveDeploymentUrl

- resolveDeploymentUrl(
  opts: DeploymentResolutionOptions,
  ): Promise<string | undefined>

  Query the AI Core service for a deployment that matches the given criteria. If more than one deployment matches the criteria, the first one's URL is returned.

  #### Parameters

  - opts: DeploymentResolutionOptions

    The options for the deployment resolution.

  #### Returns Promise<string | undefined>

  A promise of the deployment URL, if a deployment was found, fails otherwise.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

  - Defined in packages/ai-api/dist/utils/deployment-resolver.d.ts:102