Skip to content

docs: add API cost warning when making Space public#677

Open
octo-patch wants to merge 1 commit into
huggingface:mainfrom
octo-patch:fix/issue-604-api-cost-warning
Open

docs: add API cost warning when making Space public#677
octo-patch wants to merge 1 commit into
huggingface:mainfrom
octo-patch:fix/issue-604-api-cost-warning

Conversation

@octo-patch
Copy link
Copy Markdown

Fixes #604

Problem

When students set their duplicated Space to public, every visitor triggers inference API calls authenticated with the Space owner's token. If the token is linked to a paid HF Inference tier or an external paid API (e.g., OpenAI), this can silently accumulate significant costs for the student.

There is currently no warning about this risk in the tutorial steps where the secret token is configured.

Solution

Added a visible blockquote warning immediately after the "Save" step in units/en/unit1/tutorial.mdx, advising students to:

  • Keep the Space private while experimenting
  • Or monitor their API usage regularly if they choose to make it public

Testing

Documentation-only change; no code logic affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UPDATE] Clarify API Cost Risks when using Secrets in Public Hugging Face Spaces (Unit 1)

1 participant