How to call Space via API

Dear community, please, help with using Spaces vi API.

  1. I paid PRO subscription.
  2. I generated API token: xyzXYZ
  3. I want to use space /spaces/yanze/PuLID-FLUX

I see 401 when call:

curl --location 'https://huggingface.co/spaces/yanze/PuLID-FLUX' \
--header 'Authorization: Bearer xyzXYZ'

How to solve it and be sure what I call Space with my subscription and limits.

Thanks a lot!

3 Likes

This is basically OK.

How to solve it and be sure what I call Space with my subscription and limits.

I think it’s more reliable to use a newer version of Gradio 5, as there are bugs.