curl --request POST \
--url https://www.anyfast.ai/v1/responses \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-6-sol",
"input": "Review this retry design and propose a safe implementation plan.",
"reasoning": {"effort":"high","summary":"auto"},
"max_output_tokens": 4096
}'import requests
url = "https://www.anyfast.ai/v1/responses"
payload = {
"model": "gpt-6-sol",
"input": "<string>",
"instructions": "<string>",
"reasoning": { "effort": "medium" },
"max_output_tokens": 64000,
"text": {},
"tools": [
{
"type": "<string>",
"name": "<string>",
"description": "<string>",
"parameters": {},
"strict": True
}
],
"stream": False,
"prompt_cache_key": "<string>",
"prompt_cache_options": { "ttl": "30m" },
"include": ["<string>"]
}
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: 'gpt-6-sol',
input: '<string>',
instructions: '<string>',
reasoning: {effort: 'medium'},
max_output_tokens: 64000,
text: {},
tools: [
{
type: '<string>',
name: '<string>',
description: '<string>',
parameters: {},
strict: true
}
],
stream: false,
prompt_cache_key: '<string>',
prompt_cache_options: {ttl: '30m'},
include: ['<string>']
})
};
fetch('https://www.anyfast.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://www.anyfast.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' => 'gpt-6-sol',
'input' => '<string>',
'instructions' => '<string>',
'reasoning' => [
'effort' => 'medium'
],
'max_output_tokens' => 64000,
'text' => [
],
'tools' => [
[
'type' => '<string>',
'name' => '<string>',
'description' => '<string>',
'parameters' => [
],
'strict' => true
]
],
'stream' => false,
'prompt_cache_key' => '<string>',
'prompt_cache_options' => [
'ttl' => '30m'
],
'include' => [
'<string>'
]
]),
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://www.anyfast.ai/v1/responses"
payload := strings.NewReader("{\n \"model\": \"gpt-6-sol\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"reasoning\": {\n \"effort\": \"medium\"\n },\n \"max_output_tokens\": 64000,\n \"text\": {},\n \"tools\": [\n {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parameters\": {},\n \"strict\": true\n }\n ],\n \"stream\": false,\n \"prompt_cache_key\": \"<string>\",\n \"prompt_cache_options\": {\n \"ttl\": \"30m\"\n },\n \"include\": [\n \"<string>\"\n ]\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://www.anyfast.ai/v1/responses")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"gpt-6-sol\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"reasoning\": {\n \"effort\": \"medium\"\n },\n \"max_output_tokens\": 64000,\n \"text\": {},\n \"tools\": [\n {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parameters\": {},\n \"strict\": true\n }\n ],\n \"stream\": false,\n \"prompt_cache_key\": \"<string>\",\n \"prompt_cache_options\": {\n \"ttl\": \"30m\"\n },\n \"include\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.anyfast.ai/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\": \"gpt-6-sol\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"reasoning\": {\n \"effort\": \"medium\"\n },\n \"max_output_tokens\": 64000,\n \"text\": {},\n \"tools\": [\n {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parameters\": {},\n \"strict\": true\n }\n ],\n \"stream\": false,\n \"prompt_cache_key\": \"<string>\",\n \"prompt_cache_options\": {\n \"ttl\": \"30m\"\n },\n \"include\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "response",
"model": "gpt-6-sol",
"status": "queued",
"output": [
{}
],
"output_text": "<string>",
"usage": {},
"error": {}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}gpt-6-sol
Create GPT-6 Sol responses and chat completions through AnyFast.
curl --request POST \
--url https://www.anyfast.ai/v1/responses \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-6-sol",
"input": "Review this retry design and propose a safe implementation plan.",
"reasoning": {"effort":"high","summary":"auto"},
"max_output_tokens": 4096
}'import requests
url = "https://www.anyfast.ai/v1/responses"
payload = {
"model": "gpt-6-sol",
"input": "<string>",
"instructions": "<string>",
"reasoning": { "effort": "medium" },
"max_output_tokens": 64000,
"text": {},
"tools": [
{
"type": "<string>",
"name": "<string>",
"description": "<string>",
"parameters": {},
"strict": True
}
],
"stream": False,
"prompt_cache_key": "<string>",
"prompt_cache_options": { "ttl": "30m" },
"include": ["<string>"]
}
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: 'gpt-6-sol',
input: '<string>',
instructions: '<string>',
reasoning: {effort: 'medium'},
max_output_tokens: 64000,
text: {},
tools: [
{
type: '<string>',
name: '<string>',
description: '<string>',
parameters: {},
strict: true
}
],
stream: false,
prompt_cache_key: '<string>',
prompt_cache_options: {ttl: '30m'},
include: ['<string>']
})
};
fetch('https://www.anyfast.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://www.anyfast.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' => 'gpt-6-sol',
'input' => '<string>',
'instructions' => '<string>',
'reasoning' => [
'effort' => 'medium'
],
'max_output_tokens' => 64000,
'text' => [
],
'tools' => [
[
'type' => '<string>',
'name' => '<string>',
'description' => '<string>',
'parameters' => [
],
'strict' => true
]
],
'stream' => false,
'prompt_cache_key' => '<string>',
'prompt_cache_options' => [
'ttl' => '30m'
],
'include' => [
'<string>'
]
]),
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://www.anyfast.ai/v1/responses"
payload := strings.NewReader("{\n \"model\": \"gpt-6-sol\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"reasoning\": {\n \"effort\": \"medium\"\n },\n \"max_output_tokens\": 64000,\n \"text\": {},\n \"tools\": [\n {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parameters\": {},\n \"strict\": true\n }\n ],\n \"stream\": false,\n \"prompt_cache_key\": \"<string>\",\n \"prompt_cache_options\": {\n \"ttl\": \"30m\"\n },\n \"include\": [\n \"<string>\"\n ]\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://www.anyfast.ai/v1/responses")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"gpt-6-sol\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"reasoning\": {\n \"effort\": \"medium\"\n },\n \"max_output_tokens\": 64000,\n \"text\": {},\n \"tools\": [\n {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parameters\": {},\n \"strict\": true\n }\n ],\n \"stream\": false,\n \"prompt_cache_key\": \"<string>\",\n \"prompt_cache_options\": {\n \"ttl\": \"30m\"\n },\n \"include\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.anyfast.ai/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\": \"gpt-6-sol\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"reasoning\": {\n \"effort\": \"medium\"\n },\n \"max_output_tokens\": 64000,\n \"text\": {},\n \"tools\": [\n {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parameters\": {},\n \"strict\": true\n }\n ],\n \"stream\": false,\n \"prompt_cache_key\": \"<string>\",\n \"prompt_cache_options\": {\n \"ttl\": \"30m\"\n },\n \"include\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "response",
"model": "gpt-6-sol",
"status": "queued",
"output": [
{}
],
"output_text": "<string>",
"usage": {},
"error": {}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}reasoning_effort: "none".output[].content[].text. Some official SDKs expose output_text as a convenience property, but the raw HTTP response may omit it.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
When reasoning effort is not none, omit temperature, top_p, and top_logprobs.
gpt-6-sol Text or ordered input items, including text and image content.
Show child attributes
Show child attributes
Maximum visible-output and reasoning tokens.
1 <= x <= 128000Text verbosity or Structured Outputs configuration.
Show child attributes
Show child attributes
none, auto, required Show child attributes
Show child attributes
Do not request message.output_text.logprobs when reasoning effort is not none.
Response
Response created successfully.
"response"
"gpt-6-sol"
queued, in_progress, completed, incomplete, failed, cancelled Optional SDK convenience field that aggregates text output. In raw HTTP responses, read generated text from output message items at output[].content[].text and do not require this field to be present.
Was this page helpful?