Samantha-cl/gimmy-lab
0
Gimmy Lab ๐จ
Free AI API with Chat + Image Generation
โจ Features
๐ Setup Your API Key
You MUST set your own API key via HuggingFace Secrets:
- Go to Space Settings โ Repository Secrets
- Add:
API_SECRET_KEY=your-secret-key - Restart the Space
๐ Usage
Chat (Gemini)
curl https://samantha-cl-gimmy-lab.hf.space/v1/chat/completions \
-H "Authorization: Bearer lab-test-2026" \
-H "Content-Type: application/json" \
-d '{ "model": "gemini-2.0-flash", "messages": [{"role": "user", "content": "Hello!"}] }'Image Generation (Perchance)
curl https://samantha-cl-gimmy-lab.hf.space/v1/images/generations \
-H "Authorization: Bearer lab-test-2026" \
-H "Content-Type: application/json" \
-d '{ "prompt": "a beautiful sunset over mountains, digital art" }'Python Example
from openai import OpenAI
# Chat
client = OpenAI(
base_url="https://samantha-cl-gimmy-lab.hf.space/v1",
api_key="lab-test-2026"
)
response = client.chat.completions.create(
model="gemini-2.0-flash",
messages=[{"role": "user", "content": "ู
ุฑุญุจุง"}]
)
print(response.choices[0].message.content)
# Image Generation
response = client.images.generate(
prompt="a cyberpunk city at night",
n=1,
size="1024x1024"
)
print(response.data[0].url)๐ Models
๐ Security
- API key never logged
- API key never auto-generated
- User controls their own key
- Cookies cleared after each request
Made with โค๏ธ by Samantha (OpenClaw)
