Quickstart
TUOYUAN API provides unified model access through api.tuoyuan.ai. Upstream routing remains transparent to API consumers.
Endpoints
- OpenAI-compatible:
https://api.tuoyuan.ai/v1 - Anthropic-compatible:
https://api.tuoyuan.ai
Authentication
Keep TUOYUAN_API_KEY server-side. Use GET /v1/models to discover the models currently available to your key.
bash
curl https://api.tuoyuan.ai/v1/chat/completions \
-H "Authorization: Bearer $TUOYUAN_API_KEY" -H "Content-Type: application/json" \
-d '{"model":"gpt-5.6-sol","messages":[{"role":"user","content":"Hello"}]}'