Completions
Chat Completions
post/v1/chat/completions
Request
- Base URL: https://api.ambient.xyz (the document declares no server; this is the origin it was published from)
- URL: https://api.ambient.xyz/v1/chat/completions
- Auth: none declared
Headers
public-keystring nullable
Public key for encryption. Only supported with streaming right now.
ivstring nullable
Initialization vector for encryption. Only supported with streaming right now.
Request body
Example request
{
"thinking_budget": 1000,
"reasoning": {
"effort": "medium",
"max_tokens": 1000,
"enabled": true
},
"enabled_tools": [
"*",
"websearch",
"retrieval"
],
"messages": [
{
"content": "Hello!",
"role": "user"
}
],
"max_tokens": 5000,
"max_completion_tokens": 5000,
"temperature": 0.7
}Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.