Create a response
curl --request POST \
--url https://api.bianxie.ai/v1/responsesimport requests
url = "https://api.bianxie.ai/v1/responses"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.bianxie.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://api.bianxie.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",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bianxie.ai/v1/responses"
req, _ := http.NewRequest("POST", url, nil)
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.bianxie.ai/v1/responses")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bianxie.ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyOpenAI
Create a response
Generate model output with the Responses workflow
POST
/
v1
/
responses
Create a response
curl --request POST \
--url https://api.bianxie.ai/v1/responsesimport requests
url = "https://api.bianxie.ai/v1/responses"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.bianxie.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://api.bianxie.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",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bianxie.ai/v1/responses"
req, _ := http.NewRequest("POST", url, nil)
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.bianxie.ai/v1/responses")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bianxie.ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model ID. |
input | string/array | Yes | Text or input-item list. |
instructions | string | No | System-level instructions. |
max_output_tokens | integer | No | Maximum output tokens. |
stream | boolean | No | Return typed SSE events. |
tools, tool_choice | mixed | No | Tool definitions and selection policy. |
text | object | No | Text format, including JSON Schema. |
temperature, top_p | number | No | Sampling settings. |
previous_response_id | string | No | Continue a previous response. |
store, metadata, user, include | mixed | No | Storage, metadata, user ID, and included data. |
curl https://api.bianxie.ai/v1/responses \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model",
"input": "Hello"
}'
client.responses.create(model="your-model", input="Hello")
await client.responses.create({ model: "your-model", input: "Hello" });
id, status, model, output[], usage, and error details. Text is generally carried by output_text content items. Streaming returns typed response events.⌘I
