Sakana Chat API
GRADIO SDK "PORT HIJACKING" - Running FastAPI on free CPU!
This Space uses a trick: select Gradio SDK but run FastAPI on port 7860 instead.
Setup
- Create a new Space at https://huggingface.co/spaces/new
- Select Gradio as SDK
- Upload these files
- Add secret:
SAKANA_COOKIE= your chat.sakana.ai session cookie
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | API info |
/health |
GET | Health check |
/models |
GET | List models |
/chat |
POST | Send message |
Usage
curl -X POST https://your-space.hf.space/chat \
-H "Content-Type: application/json" \
-d '{"message": "Hello!"}'
With web search:
curl -X POST https://your-space.hf.space/chat \
-H "Content-Type: application/json" \
-d '{"message": "What is the weather?", "web_search": true}'
Response
{"response": "Hello! I'm Namazu, a large language model..."}
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support