NaiBot_API / README.md
ugonna's picture
Update README.md
f4d414f verified
|
Raw History Blame Contribute Delete
571 Bytes
---
---
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 information
- `GET /health` - Health check
- `POST /generate` - Generate text from a prompt
## Usage Example
```bash
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