Spaces:
Sleeping
Sleeping
|
Download README.md from ugonna/NaiBot_API: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/spaces/ugonna/NaiBot_API/resolve/main/README.md
- Command line
-
hf download hf://spaces/ugonna/NaiBot_API/README.md
-
curl -L -o README.md https://huggingface.co/spaces/ugonna/NaiBot_API/resolve/main/README.md
571 Bytes
metadata
title: NAI Bot API
emoji: 🤖
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
NAI Bot API
FastAPI endpoint for text generation models.
API Endpoints
GET /- Service informationGET /health- Health checkPOST /generate- Generate text from a prompt
Usage Example
curl -X POST https://your-space.hf.space/generate \
-H "Content-Type: application/json" \
-d '{"prompt": "Hello, how are you?", "max_tokens": 100}'
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference