Quick start
Create a key, replace the Base URL and call with any OpenAI-compatible client.
Create a project key
Use one key per project, keep it on the server and never put it in web pages or public repos.
Manage keysBase URL
https://api.latticehub.cc/v1OpenAI SDKs usually need the /v1 suffix. Use the full address shown here for direct requests too.
curl https://api.latticehub.cc/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL",
"messages": [{"role": "user", "content": "ping"}]
}'curl https://api.latticehub.cc/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"