Open
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
6f9f28c to
17f8da3
Compare
abidlabs
reviewed
Jan 26, 2026
abidlabs
approved these changes
Jan 26, 2026
bac3be4 to
0dfe21e
Compare
Document that every Gradio Space is automatically available as an API endpoint, covering: - Python client (gradio_client) - JavaScript client (@gradio/client) - REST API via curl - OpenAPI specification - ZeroGPU quotas - Common patterns (FastAPI integration, retries, Space-to-Space calls)
0dfe21e to
390554a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With agents everywhere it's probably cool to document this at hub level. cc @abidlabs
Summary
Content covered
/gradio_api/openapi.json)gradio_client): installation, connecting, predictions, file handling, job status, streaming@gradio/client): installation, connecting, predictions, file handling, streamingClient.duplicate()Note
Low Risk
Documentation-only changes (new page plus navigation link) with no runtime or API behavior modifications.
Overview
Adds new Hub documentation page
spaces-api-endpoints.mdexplaining how Gradio Spaces can be called programmatically (Pythongradio_client, JavaScript@gradio/client, and raw HTTP/curl), including endpoint discovery via the “Use via API” UI and the/gradio_api/openapi.jsonspec.Updates the Hub
Spacessidebar (_toctree.yml) to include the new “Spaces as API Endpoints” entry alongside existing Spaces docs.Written by Cursor Bugbot for commit 390554a. This will update automatically on new commits. Configure here.