Chat
Create chat completion
Creates a model response from a Chat Completions request. Supported request formats are listed in each model’s details. Unknown fields are accepted on a best-effort basis; model-specific support is not guaranteed.
post/v1/chat/completions
Request
- Base URL: https://api.tokenlab.sh
- URL: https://api.tokenlab.sh/v1/chat/completions
- Auth: HTTP bearer
Headers
X-TokenLab-Delivery-Policy'auto' | 'verified' | 'official'
Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Verified first and may switch once to Official only before output, request acceptance, or persistent resource creation.
Request body
Example request
{
"model": "gpt-4o"
}Response
Successful response
Example response
{
"id": "chatcmpl-abc123"
}Changes
No recorded changes to this operation across all 1 revision of this API.