| # GRADIO API Migration Guide | |
| AEGIS Bio-Digital Lab 10 now uses Gradio API instead of FastAPI. | |
| ## Quick Start | |
| Windows: `start-gradio-api.bat` | |
| Linux/Mac: `./start-gradio-api.sh` | |
| API URL: http://localhost:7860 | |
| API Docs: http://localhost:7860/?view=api | |
| ## Main Endpoint | |
| POST `/api/predict` - Generate images | |
| Request: `{"data": ["prompt", width, height, num_images, steps, guidance, seed]}` | |
| ## Example | |
| ```python | |
| from gradio_client import Client | |
| client = Client("http://localhost:7860") | |
| result = client.predict("virus", 512, 512, 1, 4, 1.0, -1, api_name="/predict") | |
| ``` | |
| Contact: info@gss-tec.com | |