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

  1. Create a new Space at https://huggingface.co/spaces/new
  2. Select Gradio as SDK
  3. Upload these files
  4. 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..."}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support