Chat Completions
Changed onCreate a completion for the chat conversation
post/v1/chat/completions
Request
- Base URLhttps://api.llmgateway.io
- AuthHTTP bearer
Request body
Example request
{
"model": "gpt-5",
"messages": [
{
"role": "user",
"content": "Hello!",
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_current_weather",
"arguments": "{\"location\": \"Boston, MA\"}"
}
}
]
}
],
"temperature": 0.7,
"max_tokens": 1000,
"top_p": 0.9,
"response_format": {
"type": "json_object"
},
"n": 1,
"prompt": {
"id": "support-reply",
"variables": {
"customer": "Ada"
}
},
"prompt_cache_key": "tenant-123",
"prompt_cache_retention": "24h",
"prompt_cache_options": {
"mode": "explicit"
},
"user": "user-123",
"reasoning_effort": "medium",
"reasoning": {
"effort": "medium",
"max_tokens": 4000,
"context": "current_turn",
"mode": "pro"
},
"effort": "medium",
"verbosity": "low",
"service_tier": "flex",
"routing": "price",
"web_search_options": {
"search_context_size": "low"
},
"web_search": true,
"plugins": [
{
"id": "response-healing"
}
]
}Response
User response object or streaming response.
Changes
- info
added the new optional request property
- info
- info
added the new optional request property
///
- info