An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
Hello @INFOSOFT
Thank you for contacting Microsoft Q&A and for sharing the detailed troubleshooting information.
Based on the behavior described, the issue appears to be related to the custom model being associated with a different Azure Document Intelligence resource than the endpoint currently being queried through the REST API.
From your observations:
- The custom model training status is
Succeeded
The model works correctly within Document Intelligence Studio
GET /documentintelligence/documentModels?api-version=2024-11-30 returns only prebuilt models
Requests to the custom model return 404 ModelNotFound
Older /formrecognizer/... endpoints return 404 ResourceNotFound
this indicates that the endpoint itself is reachable and functioning correctly, but the specific resource being queried does not currently contain any registered custom models.
Please review the following validation steps:
1. Verify the exact Azure Document Intelligence resource
In Azure AI Foundry / Document Intelligence Studio:
- Open the project settwings
Identify the connected Azure Document Intelligence resource
Confirm:
Resource name
Subscription
Region
Then compare this against the REST endpoint currently being used.
The endpoint should match the resource exactly in the following format:
https://<resource-name>.cognitiveservices.azure.com
Please note that no explicit regional prefix (such as centralindia) is required in the URL, as the region is already embedded in the resource DNS.
2. Validate the API path and API version
For Document Intelligence v4.0 GA, please use the following endpoint format consistently:
GET https://<resource-name>.cognitiveservices.azure.com/documentintelligence/documentModels?api-version=2024-11-30
We recommend avoiding mixing:
/formrecognizer/... and
/documentintelligence/...
across different API versions, as this may lead to 404 responses depending on the model generation and endpoint compatibility.
3. Validate the custom model directly
Please retrieve the exact custom model ID from Studio and test the following request:
GET https://<resource-name>.cognitiveservices.azure.com/documentintelligence/documentModels/{modelId}?api-version=2024-11-30
Expected behavior:
- If the model exists on that resource, model metadata should be returned
- If the request returns
404 ModelNotFound, it confirms the model is not associated with that specific resource endpoint
4. Validate authentication and network configuration
Please also verify:
The API key being used belongs to the same Document Intelligence resource
No firewall, VNet, or private endpoint restrictions are blocking the request
The request is targeting the actual Cognitive Services endpoint and not:
- AI Foundry project endpoint
- Hub endpoint
- Agent endpoint
- Inference endpoint
Since the /documentModels API successfully returns prebuilt models and no pagination is present, this strongly suggests:
The service endpoint is healthy
Authentication is functioning
But no custom models are currently registered under that resource
At this stage, the most likely root cause is a mismatch between:
- The resource connected in Studio and
- The resource endpoint being queried via REST API
Please refer this
Document Models REST reference (list & get) https://learn.microsoft.com/rest/api/aiservices/document-models/list-models?view=rest-aiservices-v4.0
I Hope this helps. Do let me know if you have any further queries.
Thank you!