Create Response
curl --request POST \
--url https://api.intelligence.io.solutions/api/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "enabled-model",
"input": "Hello",
"store": false,
"stream": false
}
'import requests
url = "https://api.intelligence.io.solutions/api/v1/responses"
payload = {
"model": "enabled-model",
"input": "Hello",
"store": False,
"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: 'enabled-model', input: 'Hello', store: false, stream: false})
};
fetch('https://api.intelligence.io.solutions/api/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.intelligence.io.solutions/api/v1/responses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'enabled-model',
'input' => 'Hello',
'store' => false,
'stream' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.intelligence.io.solutions/api/v1/responses"
payload := strings.NewReader("{\n \"model\": \"enabled-model\",\n \"input\": \"Hello\",\n \"store\": false,\n \"stream\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.intelligence.io.solutions/api/v1/responses")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"enabled-model\",\n \"input\": \"Hello\",\n \"store\": false,\n \"stream\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.intelligence.io.solutions/api/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"enabled-model\",\n \"input\": \"Hello\",\n \"store\": false,\n \"stream\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created_at": 123,
"model": "<string>",
"status": "in_progress",
"object": "response",
"completed_at": 123,
"output": [
{}
],
"error": {},
"incomplete_details": {},
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"total_tokens": 123,
"input_tokens_details": {},
"output_tokens_details": {}
},
"store": false,
"background": false,
"previous_response_id": null,
"instructions": "<string>",
"max_output_tokens": 123,
"parallel_tool_calls": true,
"tool_choice": "<unknown>",
"tools": [
{}
],
"text": {},
"reasoning": {},
"temperature": 123,
"top_p": 123,
"truncation": "disabled",
"service_tier": "default",
"metadata": {}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}Getting Started with AI Models API
Create Response
Generate text or function calls with the stateless native Responses proxy.
POST
/
api
/
v1
/
responses
Create Response
curl --request POST \
--url https://api.intelligence.io.solutions/api/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "enabled-model",
"input": "Hello",
"store": false,
"stream": false
}
'import requests
url = "https://api.intelligence.io.solutions/api/v1/responses"
payload = {
"model": "enabled-model",
"input": "Hello",
"store": False,
"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: 'enabled-model', input: 'Hello', store: false, stream: false})
};
fetch('https://api.intelligence.io.solutions/api/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.intelligence.io.solutions/api/v1/responses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'enabled-model',
'input' => 'Hello',
'store' => false,
'stream' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.intelligence.io.solutions/api/v1/responses"
payload := strings.NewReader("{\n \"model\": \"enabled-model\",\n \"input\": \"Hello\",\n \"store\": false,\n \"stream\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.intelligence.io.solutions/api/v1/responses")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"enabled-model\",\n \"input\": \"Hello\",\n \"store\": false,\n \"stream\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.intelligence.io.solutions/api/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"enabled-model\",\n \"input\": \"Hello\",\n \"store\": false,\n \"stream\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created_at": 123,
"model": "<string>",
"status": "in_progress",
"object": "response",
"completed_at": 123,
"output": [
{}
],
"error": {},
"incomplete_details": {},
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"total_tokens": 123,
"input_tokens_details": {},
"output_tokens_details": {}
},
"store": false,
"background": false,
"previous_response_id": null,
"instructions": "<string>",
"max_output_tokens": 123,
"parallel_tool_calls": true,
"tool_choice": "<unknown>",
"tools": [
{}
],
"text": {},
"reasoning": {},
"temperature": 123,
"top_p": 123,
"truncation": "disabled",
"service_tier": "default",
"metadata": {}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}This endpoint requires an enabled model. It supports a stateless subset of the Responses protocol. Send the complete history with each request and use
store:false. See compatibility and tool replay.Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Minimum string length:
1Maximum array length:
128Available options:
auto, none, required Show child attributes
Show child attributes
Show child attributes
Show child attributes
Required range:
x >= 1Required range:
0 <= x <= 2Required range:
0 <= x <= 1Required range:
x >= -1Required range:
-2 <= x <= 2Required range:
-2 <= x <= 2Required range:
0 <= x <= 20Show child attributes
Show child attributes
Available options:
auto, default, flex, priority, scale Available options:
disabled, auto Response
Response JSON, or ordered Responses SSE events when stream=true. No [DONE] sentinel.
Available options:
in_progress, completed, incomplete, failed Allowed value:
"response"Show child attributes
Show child attributes
Allowed value:
"disabled"Allowed value:
"default"Show child attributes
Show child attributes
Was this page helpful?