API
One API for multi-model creation.
OpenAI-compatible endpoint. Unified credits, logs, and rate limits across text, image, and video models.
# List models
curl https://api.tanzi.ai/v1/models \
-H "Authorization: Bearer $TANZI_API_KEY"
# Chat / text generation
curl https://api.tanzi.ai/v1/chat/completions \
-H "Authorization: Bearer $TANZI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tanzi-router",
"messages": [
{"role": "user", "content": "Generate 5 meme angles for a portable charger."}
]
}'
# Image generation
curl https://api.tanzi.ai/v1/images/generations \
-H "Authorization: Bearer $TANZI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dall-e-3",
"prompt": "A meme about running out of battery",
"size": "1024x1024"
}'
Features
- OpenAI-compatible /v1 endpoints
- Multi-model routing (GPT, Claude, Gemini, Grok)
- Credits-based billing
- Per-team API keys
- Usage logs and rate limits