OpenAI-compatible chat completions proxy
Proxy endpoint for OpenAI chat completions API with VideoDB billing
post/chat/completions
Request body
Example request
{
"model": "gpt-4o-2024-11-20",
"messages": [
{
"role": "user",
"content": "Hello, how are you?"
}
],
"max_tokens": 100,
"temperature": 0.7
}Response
Chat completion response
Example response
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gpt-4o-2024-11-20",
"choices": [
{
"message": {
"role": "assistant",
"content": "Hello! I'm doing well, thank you for asking."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 10,
"completion_tokens": 15,
"total_tokens": 25
}
}