cURL
curl --request POST \ --url https://api.lumegates.com/v1/chat/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "gpt-4o", "messages": [ { "role": "user", "content": "Hello LumeGates!" } ], "stream": false } '
{ "id": "chatcmpl-123", "object": "chat.completion", "created": 1677652288, "model": "gpt-4o", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Hello! How can I help you today?" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 9, "completion_tokens": 12, "total_tokens": 21 } }
model
messages
stream
temperature
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"gpt-4o"
Show child attributes
Successful response
"chatcmpl-123"
"chat.completion"
1677652288