import requestsresponse = requests.request( "POST", "https://customerDomain.ambersearch.de/api/beta/amberai/chat/completions", headers={ "Authorization": "Bearer ambrs-exampletoken" }, json={ "model": "azure/gpt-5.4", "temperature": 0.7, "stream": False, "tools": [], "messages": [ {"role": "system", "content": "You are a helpful assistant."}, { "role": "user", "content": "What would be the best activity to do in summer in Paris?", }, ], },)
import requestsresponse = requests.request( "POST", "https://customerDomain.ambersearch.de/api/beta/amberai/chat/completions", headers={ "Authorization": "Bearer ambrs-exampletoken" }, json={ "model": "azure/gpt-5.4", "temperature": 0.7, "stream": True, "tools": [], "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What is the capital of France?" } ] })
import requestsresponse = requests.request( "POST", "https://customerDomain.ambersearch.de/api/beta/amberai/chat/completions", headers={ "Authorization": "Bearer ambrs-exampletoken" }, json={ "model": "azure/gpt-5.4", "temperature": 0.7, "stream": False, "tools": [ { "function": { "name": "amberSearch" } } ], "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What are the credentials for the postman development environment?" } ] })
Create a chat completion based on the provided messages and parameters.
This endpoint generates responses using the specified model and conversation history. You can also utilize tools and agents to enhance the response generation.
POST
/
api
/
beta
/
amberai
/
chat
/
completions
import requestsresponse = requests.request( "POST", "https://customerDomain.ambersearch.de/api/beta/amberai/chat/completions", headers={ "Authorization": "Bearer ambrs-exampletoken" }, json={ "model": "azure/gpt-5.4", "temperature": 0.7, "stream": False, "tools": [], "messages": [ {"role": "system", "content": "You are a helpful assistant."}, { "role": "user", "content": "What would be the best activity to do in summer in Paris?", }, ], },)
import requestsresponse = requests.request( "POST", "https://customerDomain.ambersearch.de/api/beta/amberai/chat/completions", headers={ "Authorization": "Bearer ambrs-exampletoken" }, json={ "model": "azure/gpt-5.4", "temperature": 0.7, "stream": True, "tools": [], "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What is the capital of France?" } ] })
import requestsresponse = requests.request( "POST", "https://customerDomain.ambersearch.de/api/beta/amberai/chat/completions", headers={ "Authorization": "Bearer ambrs-exampletoken" }, json={ "model": "azure/gpt-5.4", "temperature": 0.7, "stream": False, "tools": [ { "function": { "name": "amberSearch" } } ], "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What are the credentials for the postman development environment?" } ] })
import requestsresponse = requests.request( "POST", "https://customerDomain.ambersearch.de/api/beta/amberai/chat/completions", headers={ "Authorization": "Bearer ambrs-exampletoken" }, json={ "model": "azure/gpt-5.4", "temperature": 0.7, "stream": False, "tools": [], "messages": [ {"role": "system", "content": "You are a helpful assistant."}, { "role": "user", "content": "What would be the best activity to do in summer in Paris?", }, ], },)
import requestsresponse = requests.request( "POST", "https://customerDomain.ambersearch.de/api/beta/amberai/chat/completions", headers={ "Authorization": "Bearer ambrs-exampletoken" }, json={ "model": "azure/gpt-5.4", "temperature": 0.7, "stream": True, "tools": [], "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What is the capital of France?" } ] })
import requestsresponse = requests.request( "POST", "https://customerDomain.ambersearch.de/api/beta/amberai/chat/completions", headers={ "Authorization": "Bearer ambrs-exampletoken" }, json={ "model": "azure/gpt-5.4", "temperature": 0.7, "stream": False, "tools": [ { "function": { "name": "amberSearch" } } ], "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What are the credentials for the postman development environment?" } ] })