How can I call wp-load.php in my plugin file

To call wp-load.php outside wordpress, for example in your case to do some quick ajax stuff, add the following code on the top of your php file.

<?php include($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');?>

But as @fuxia said is better to use the WP AJAX API especially if you create a plugin .