playground
Chat
Proxy one authorized Playground chat through the normal data-plane pipeline.
POST
/
api
/
playground
/
chat
Chat
curl --request POST \
--url https://api.aixy-gateway.com/api/playground/chat \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"model": "<string>",
"messages": [
{
"content": "<string>"
}
],
"api_key_id": "<string>"
}
'import requests
url = "https://api.aixy-gateway.com/api/playground/chat"
payload = {
"model": "<string>",
"messages": [{ "content": "<string>" }],
"api_key_id": "<string>"
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>', messages: [{content: '<string>'}], api_key_id: '<string>'})
};
fetch('https://api.aixy-gateway.com/api/playground/chat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Secure same-origin browser session cookie.
Body
application/json
Response
Provider response or server-sent event stream.
The response is of type object.
⌘I
Chat
curl --request POST \
--url https://api.aixy-gateway.com/api/playground/chat \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"model": "<string>",
"messages": [
{
"content": "<string>"
}
],
"api_key_id": "<string>"
}
'import requests
url = "https://api.aixy-gateway.com/api/playground/chat"
payload = {
"model": "<string>",
"messages": [{ "content": "<string>" }],
"api_key_id": "<string>"
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>', messages: [{content: '<string>'}], api_key_id: '<string>'})
};
fetch('https://api.aixy-gateway.com/api/playground/chat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}