Enable or disable agentic retrieval billing

Note

Foundry IQ (Azure AI Search) provides direct indexing and query APIs alongside higher-level knowledge source and knowledge base APIs for managed retrieval. Use the Azure portal, REST APIs, or Azure SDKs to configure these capabilities, or connect agents to knowledge bases in the Microsoft Foundry portal.

Use the knowledgeRetrieval service property to choose the free or standard billing plan for agentic retrieval. This plan is separate from your Foundry IQ service's pricing tier. New Foundry IQ services default to the free plan, which provides a monthly token allowance for agentic retrieval reasoning at no charge. Switch to the standard plan to enable paid retrieval usage.

Starting with Search Service REST API version 2026-04-01, billing consent for semantic ranker and agentic retrieval is separate. Use knowledgeRetrieval to control paid agentic retrieval usage independently of semanticSearch.

Prerequisites

  • A Foundry IQ service in a region that supports agentic retrieval that doesn't use confidential computing. To use the agentic retrieval standard billing plan, use a Serverless service or a Dedicated service on the Basic tier or higher. For details, see Billing plans.

  • Permission to update the Foundry IQ service through Microsoft.Search/searchServices/write. Built-in roles such as Owner and Contributor provide this permission. For more information, see Role-based access control.

  • Search Management REST API version 2026-03-01-preview or later to set the knowledgeRetrieval property.

Billing split

Set billing consent by using a supported Search Management REST API version. The following table shows which property takes effect based on the Search Service REST API version on your retrieval request (data plane).

Search Service REST API version Semantic ranker billing Agentic retrieval billing
2026-04-01 and later Controlled by semanticSearch Controlled by knowledgeRetrieval
2025-11-01-preview and earlier Controlled by semanticSearch Controlled by semanticSearch

For Search Service REST API version 2026-04-01 and later, knowledgeRetrieval controls agentic retrieval billing independently of semanticSearch. To control semantic ranker billing, see Enable or disable semantic ranker billing.

For Search Service REST API version 2025-11-01-preview and earlier, semanticSearch controls consent for both semantic ranker and paid agentic retrieval usage. The knowledgeRetrieval property is ignored.

Billing plans

The knowledgeRetrieval property supports two billing plans: free and standard. Neither plan changes the service's pricing tier. For current rates and allowances, see Foundry IQ pricing.

To set either plan, your service must be in a region that supports agentic retrieval. Otherwise, the request fails with an HTTP 400 (bad request) error.

Plan Description Availability
Free (default) Provides a monthly token allowance at no charge. After the free allowance is consumed, requests that would incur paid usage return an HTTP 402 (payment required) error. Serverless and all Dedicated tiers, including Free.
Standard Pay-as-you-go pricing after the monthly free allowance is consumed. Serverless and Dedicated tiers from Basic up. Not available on the Free tier or with confidential computing.

Configurations that don't support the standard plan

If you set knowledgeRetrieval to standard on one of the following configurations, the request fails with an HTTP 400 (bad request) error.

  • Free tier: Free tier services can use only the free plan. To use the agentic retrieval standard billing plan, use a Serverless service or a Dedicated service on the Basic tier or higher.

  • Confidential computing: Services that use confidential computing don't support agentic retrieval. Agentic retrieval uses semantic ranker to rank results from search indexes, and semantic ranker isn't supported with confidential computing. These services accept the free plan setting, but retrieve requests that query a search index fail.

Enable agentic retrieval billing

Important

If you previously relied on semanticSearch to enable paid agentic retrieval usage, you must explicitly set knowledgeRetrieval to standard before you migrate agentic retrieval workloads to Search Service REST API version 2026-04-01 or later.

Follow these steps to switch agentic retrieval to the standard billing plan.

  1. Go to your Foundry IQ service in the Azure portal.

  2. Confirm that your service supports the agentic retrieval standard billing plan. For requirements, see Billing plans.

  3. From the left pane, select Settings > Premium features.

  4. Under Knowledge retrieval, select Select plan in the Standard card.

    Screenshot of the Premium features page in the Azure portal, showing the Knowledge retrieval Standard plan selected.

Disable agentic retrieval billing

Follow these steps to switch agentic retrieval back to the free billing plan. The free plan applies only to agentic retrieval reasoning.

  1. Go to your Foundry IQ service in the Azure portal.

  2. From the left pane, select Settings > Premium features.

  3. Under Knowledge retrieval, select Select plan in the Free card.

    Screenshot of the Premium features page in the Azure portal, showing the Knowledge retrieval Free plan selected.