To call an Azure Machine Learning (AML) endpoint with Python, you can use the requests library. Here’s an example of how to do this:
- Install the
requestslibrary if you haven’t already:

- Use the following Python code to call the AML endpoint:

Replace https://your-scoring-uri.azurewebsites.net/score with the actual scoring URI of your AML endpoint and your_api_key with the API key if your endpoint requires authentication Make sure to format the input data according to your model’s requirements. The example above assumes the model expects a list of lists as input data.