An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.
Using the image does not make timing fixed because your measurement includes two API calls, base64 handling, and network transfer. The total cannot show which stage caused the 9–12-second first run or later 1–5-second runs.
Add separate timers around base64 preparation, Custom Vision, and Image Analysis v4. For each call, record UTC time, HTTP status, region, payload size, and the service request ID. Reuse one HTTP client, place the caller and both resources in the same Azure region where possible, and use Custom Vision prediction without storage unless images are required.
Compare your request rate with the Custom Vision tier limit; throttling returns HTTP 429, not merely a slower successful response. Run enough samples to compare p50, p95, and p99 for each stage. If one Azure call stays slow below quota, give Microsoft Support its request IDs and timestamps. Identical input can produce identical results without guaranteeing fixed end-to-end latency.