# Can I make an api request to an endpoint in a lambda server?

**URL:** https://deeptalk.lambda.ai/t/can-i-make-an-api-request-to-an-endpoint-in-a-lambda-server/4058
**Category:** Technical Help
**Created:** [January 8, 2024, 8:57pm UTC](https://deeptalk.lambda.ai/t/can-i-make-an-api-request-to-an-endpoint-in-a-lambda-server/4058 "2024-01-08T20:57:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fgv73](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@fgv73](https://deeptalk.lambda.ai/u/fgv73)
#### Post date: [January 8, 2024, 8:57pm UTC](https://deeptalk.lambda.ai/t/can-i-make-an-api-request-to-an-endpoint-in-a-lambda-server/4058/1 "2024-01-08T20:57:22Z")

</div>

Hello,

Can I make the server to be an inference server so I can make api request from my local machine to the server?

If I can is there any configuration I should edit because I tried to do it using FastAPI and uvicorn and it didn’t work.

thanks in advance.

---

<div class="post-metadata">

### Author: ![cody\_b](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@cody\_b](https://deeptalk.lambda.ai/u/cody_b)
#### Post date: [January 8, 2024, 9:01pm UTC](https://deeptalk.lambda.ai/t/can-i-make-an-api-request-to-an-endpoint-in-a-lambda-server/4058/2 "2024-01-08T21:01:49Z")

</div>

On-demand instances don’t have any relevant restrictions. Make sure you have appropriate [firewall rules](https://docs.lambdalabs.com/cloud/get-started-firewall/) in place.
