v1
latestOpenAPI 3.1.02026-08-0411826.2 KBCreate chat completion
Creates a model response for the given chat conversation.
post/chat/completions
Headers
Authorizationstring required
Bearer <your-api-key>
Content-Typestring required
application/json
x-show-additional-info'true' | 'false'
Set to true to include precontext inline at the start of a streamed response. Defaults to false.
Request body
Example request
{
"model": "interfaze-beta"
}Response
Successful chat completion response.
Example response
{
"id": "interfaze-1775270750639",
"object": "chat.completion",
"model": "interfaze-beta",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "{\"name\":\"Yoeven D Khemlani\"}"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 10512,
"completion_tokens": 7056,
"total_tokens": 17568
},
"vcache": false,
"precontext": [
{
"name": "web_search",
"result": [
{
"title": "Interfaze | Y Combinator",
"url": "https://www.ycombinator.com/companies/interfaze",
"description": "AI model built for deterministic developer tasks."
}
]
}
]
}