--- --- 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