Semantic caching for LLMs: 90% cheaper, 10× faster
Cache AI provides:
Note: Due to per-user API key issuance, this Space focuses on explaining behavior and usage, not full production execution.
pip install cacheai
from cacheai import Client
client = Client(api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
model="openai/gpt-oss-120b",
messages=[{"role": "user", "content": "Hello"}]
)
print(resp.choices[0].message.content)
curl https://api.cacheai.tech/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-oss-120b",
"messages": [{"role":"user","content":"Hello"}]
}'