Toggle Inference Endpoint State
A 3-step recipe with Hugging Face. We can help you get access.
Recipe · 3 steps
Toggle Inference Endpoint State
with Hugging Face · Artificial Intelligence Management
Pause a running endpoint or resume a paused one based on its current state.
- Read the endpoint's current status and branch on whether it is running or paused.
- Pause the running endpoint to stop compute costs while preserving its configuration.
- Resume the previously paused endpoint so it can serve inference requests again.
What you'll need to have ready
- hfToken: Hugging Face access token used as a Bearer credential.
- namespace: User or organization namespace that owns the endpoint.
- endpointName: The name of the endpoint to toggle.
For your developer
Arazzo workflow hugging-face:toggle-endpoint-state, 3 operations: getEndpoint → pauseEndpoint → resumeEndpoint. Specs on APIs.io.