API Wrapper
curl -X POST https://api.runpod.ai/v2/stable-diffusion-v1/run \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-d '{"input": {"prompt": "a cute magical flying dog, fantasy art drawn by disney concept artists"}}'
I wanted to know, is it okay to call the apis straight away from the app with the auth token in the header or do I have to call these apis via some node layer or aws lambda?
2 Replies