curl --request POST \
--url https://api.vivgrid.com/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "managed",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Tell me a story about a blue dinosaur. no more than 10 words"
}
],
"reasoning_effort": "medium",
"max_completion_tokens": 64,
"stream": true
}
'{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1710000000,
"model": "managed",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Rain cats and dogs."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 24,
"completion_tokens": 12,
"total_tokens": 36
}
}OpenAI-compatible Chat Completions endpoint.
curl --request POST \
--url https://api.vivgrid.com/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "managed",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Tell me a story about a blue dinosaur. no more than 10 words"
}
],
"reasoning_effort": "medium",
"max_completion_tokens": 64,
"stream": true
}
'{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1710000000,
"model": "managed",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Rain cats and dogs."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 24,
"completion_tokens": 12,
"total_tokens": 36
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
1Show child attributes
0 <= x <= 20 <= x <= 11 <= x <= 16Show child attributes
-2 <= x <= 2-2 <= x <= 2Show child attributes
0 <= x <= 20Show child attributes
Use Vivgrid serverless LLM tool to manage tools and skills; clients typically leave this empty.
Use Vivgrid serverless LLM tool to manage tools and skills; leave unset to let the platform auto-select.
auto Controls reasoning depth: none, low, medium, high
none, low, medium, high