responses
curl --request POST \
--url https://ai.pmock.com/api/ai/v1/responses \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"input": "<unknown>",
"instructions": "<string>",
"metadata": {},
"stream": true,
"temperature": 123,
"tools": [
"<unknown>"
],
"stream_options": {
"include_obfuscation": true
},
"top_p": 123,
"max_output_tokens": 123,
"service_tier": "<string>",
"extra": {}
}
'import requests
url = "https://ai.pmock.com/api/ai/v1/responses"
payload = {
"model": "<string>",
"input": "<unknown>",
"instructions": "<string>",
"metadata": {},
"stream": True,
"temperature": 123,
"tools": ["<unknown>"],
"stream_options": { "include_obfuscation": True },
"top_p": 123,
"max_output_tokens": 123,
"service_tier": "<string>",
"extra": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
input: '<unknown>',
instructions: '<string>',
metadata: {},
stream: true,
temperature: 123,
tools: ['<unknown>'],
stream_options: {include_obfuscation: true},
top_p: 123,
max_output_tokens: 123,
service_tier: '<string>',
extra: {}
})
};
fetch('https://ai.pmock.com/api/ai/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://ai.pmock.com/api/ai/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' => '<string>',
'input' => '<unknown>',
'instructions' => '<string>',
'metadata' => [
],
'stream' => true,
'temperature' => 123,
'tools' => [
'<unknown>'
],
'stream_options' => [
'include_obfuscation' => true
],
'top_p' => 123,
'max_output_tokens' => 123,
'service_tier' => '<string>',
'extra' => [
]
]),
CURLOPT_HTTPHEADER => [
"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://ai.pmock.com/api/ai/v1/responses"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"input\": \"<unknown>\",\n \"instructions\": \"<string>\",\n \"metadata\": {},\n \"stream\": true,\n \"temperature\": 123,\n \"tools\": [\n \"<unknown>\"\n ],\n \"stream_options\": {\n \"include_obfuscation\": true\n },\n \"top_p\": 123,\n \"max_output_tokens\": 123,\n \"service_tier\": \"<string>\",\n \"extra\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
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://ai.pmock.com/api/ai/v1/responses")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"input\": \"<unknown>\",\n \"instructions\": \"<string>\",\n \"metadata\": {},\n \"stream\": true,\n \"temperature\": 123,\n \"tools\": [\n \"<unknown>\"\n ],\n \"stream_options\": {\n \"include_obfuscation\": true\n },\n \"top_p\": 123,\n \"max_output_tokens\": 123,\n \"service_tier\": \"<string>\",\n \"extra\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ai.pmock.com/api/ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"input\": \"<unknown>\",\n \"instructions\": \"<string>\",\n \"metadata\": {},\n \"stream\": true,\n \"temperature\": 123,\n \"tools\": [\n \"<unknown>\"\n ],\n \"stream_options\": {\n \"include_obfuscation\": true\n },\n \"top_p\": 123,\n \"max_output_tokens\": 123,\n \"service_tier\": \"<string>\",\n \"extra\": {}\n}"
response = http.request(request)
puts response.read_bodyCompatible
responses
responses
POST
/
ai
/
v1
/
responses
responses
curl --request POST \
--url https://ai.pmock.com/api/ai/v1/responses \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"input": "<unknown>",
"instructions": "<string>",
"metadata": {},
"stream": true,
"temperature": 123,
"tools": [
"<unknown>"
],
"stream_options": {
"include_obfuscation": true
},
"top_p": 123,
"max_output_tokens": 123,
"service_tier": "<string>",
"extra": {}
}
'import requests
url = "https://ai.pmock.com/api/ai/v1/responses"
payload = {
"model": "<string>",
"input": "<unknown>",
"instructions": "<string>",
"metadata": {},
"stream": True,
"temperature": 123,
"tools": ["<unknown>"],
"stream_options": { "include_obfuscation": True },
"top_p": 123,
"max_output_tokens": 123,
"service_tier": "<string>",
"extra": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
input: '<unknown>',
instructions: '<string>',
metadata: {},
stream: true,
temperature: 123,
tools: ['<unknown>'],
stream_options: {include_obfuscation: true},
top_p: 123,
max_output_tokens: 123,
service_tier: '<string>',
extra: {}
})
};
fetch('https://ai.pmock.com/api/ai/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://ai.pmock.com/api/ai/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' => '<string>',
'input' => '<unknown>',
'instructions' => '<string>',
'metadata' => [
],
'stream' => true,
'temperature' => 123,
'tools' => [
'<unknown>'
],
'stream_options' => [
'include_obfuscation' => true
],
'top_p' => 123,
'max_output_tokens' => 123,
'service_tier' => '<string>',
'extra' => [
]
]),
CURLOPT_HTTPHEADER => [
"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://ai.pmock.com/api/ai/v1/responses"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"input\": \"<unknown>\",\n \"instructions\": \"<string>\",\n \"metadata\": {},\n \"stream\": true,\n \"temperature\": 123,\n \"tools\": [\n \"<unknown>\"\n ],\n \"stream_options\": {\n \"include_obfuscation\": true\n },\n \"top_p\": 123,\n \"max_output_tokens\": 123,\n \"service_tier\": \"<string>\",\n \"extra\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
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://ai.pmock.com/api/ai/v1/responses")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"input\": \"<unknown>\",\n \"instructions\": \"<string>\",\n \"metadata\": {},\n \"stream\": true,\n \"temperature\": 123,\n \"tools\": [\n \"<unknown>\"\n ],\n \"stream_options\": {\n \"include_obfuscation\": true\n },\n \"top_p\": 123,\n \"max_output_tokens\": 123,\n \"service_tier\": \"<string>\",\n \"extra\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ai.pmock.com/api/ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"input\": \"<unknown>\",\n \"instructions\": \"<string>\",\n \"metadata\": {},\n \"stream\": true,\n \"temperature\": 123,\n \"tools\": [\n \"<unknown>\"\n ],\n \"stream_options\": {\n \"include_obfuscation\": true\n },\n \"top_p\": 123,\n \"max_output_tokens\": 123,\n \"service_tier\": \"<string>\",\n \"extra\": {}\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Minimum string length:
1Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
200
OK
