Create a Model Response
curl --request POST \
--url https://api.agipower.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/gpt-5",
"input": "Write a short API test.",
"stream": false
}
'import requests
url = "https://api.agipower.ai/v1/responses"
payload = {
"model": "openai/gpt-5",
"input": "Write a short API test.",
"stream": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'openai/gpt-5', input: 'Write a short API test.', stream: false})
};
fetch('https://api.agipower.ai/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}OpenAI Compatible API
Create a Model Response
POST
/
v1
/
responses
Create a Model Response
curl --request POST \
--url https://api.agipower.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/gpt-5",
"input": "Write a short API test.",
"stream": false
}
'import requests
url = "https://api.agipower.ai/v1/responses"
payload = {
"model": "openai/gpt-5",
"input": "Write a short API test.",
"stream": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'openai/gpt-5', input: 'Write a short API test.', stream: false})
};
fetch('https://api.agipower.ai/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
200 - application/json
Response object or streaming event stream
The response is of type object.