How we can create material requests using API?

I have added material requests button on production order page. When we click on ‘material requests’ button the request will sent.

Have you checked Production Planning Tool? From this tool, you can create Material Request for the required raw materials.

https://erpnext.org/docs/user/manual/en/manufacturing/tools/production-planning-tool?
- YouTube