Create Chat Completion
OpenAI Chat Completion API compitable API:
curl https://api.vivgrid.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_TOKEN" \
-d '{
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
]
}'
No need to specify the model name as it’s managed by Vivgrid. Your client code remains unchanged when migrating between different LLM models.
Setting model="managed" is a best practice.
Authentication
$API_TOKEN can be found on your vivgrid console.
Global Latency Improved