OpenAI-compatible chat completions proxy
Proxy endpoint for OpenAI chat completions API with VideoDB billing
post/chat/completions
Request
- Base URLhttps://api.videodb.io
- AuthAPI key in header x-access-token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.