Usage
All of our text generation models support the following endpoints:
/v1/completions
: OpenAI-compatible Completions API endpoint/v1/chat/completions
: OpenAI-compatible Chat Completions API endpoint
💡 More endpoints will be provided in the future. If you have a specific need, feel free to contact us on Telegram!
This means that you can use our models with any of the OpenAI SDKs or with frameworks that support custom OpenAI-compatible models.
Here are some basic examples:
sh
curl -X POST https://api.libertai.io/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "hermes-3-8b-tee",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'
Direct model interaction
Interact directly with the model instance, without our api.libertai.io
proxy.
This is useful for advanced use cases where you want to remove as much intermediary as possible for data confidentiality, especially when interacting with a model running in a Trusted Execution Environment.
Detailed instructions coming soon...
Verifiable computing with TEE
Coming soon...