Create chat response
curl --request POST \
--url https://api.caprioletech.com/v1/chat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai-latest",
"input": "Hello World!"
}
'import requests
url = "https://api.caprioletech.com/v1/chat"
payload = {
"model": "openai-latest",
"input": "Hello World!"
}
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-latest', input: 'Hello World!'})
};
fetch('https://api.caprioletech.com/v1/chat', 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.caprioletech.com/v1/chat",
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' => 'openai-latest',
'input' => 'Hello World!'
]),
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.caprioletech.com/v1/chat"
payload := strings.NewReader("{\n \"model\": \"openai-latest\",\n \"input\": \"Hello World!\"\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.caprioletech.com/v1/chat")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"openai-latest\",\n \"input\": \"Hello World!\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.caprioletech.com/v1/chat")
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\": \"openai-latest\",\n \"input\": \"Hello World!\"\n}"
response = http.request(request)
puts response.read_body{
"id": "49da8eb7-916b-43a3-ab02-442bc2841839",
"model": "openai/gpt-6-astra",
"result": {
"text": "Here is a short joke."
},
"usage": {
"input_tokens": 8,
"output_tokens": 6,
"total_tokens": 14,
"cached_tokens": 0,
"charged_tokens": 14
}
}
엔드포인트
Chat
모델에서 텍스트 응답을 만듭니다.
POST
/
v1
/
chat
Create chat response
curl --request POST \
--url https://api.caprioletech.com/v1/chat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai-latest",
"input": "Hello World!"
}
'import requests
url = "https://api.caprioletech.com/v1/chat"
payload = {
"model": "openai-latest",
"input": "Hello World!"
}
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-latest', input: 'Hello World!'})
};
fetch('https://api.caprioletech.com/v1/chat', 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.caprioletech.com/v1/chat",
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' => 'openai-latest',
'input' => 'Hello World!'
]),
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.caprioletech.com/v1/chat"
payload := strings.NewReader("{\n \"model\": \"openai-latest\",\n \"input\": \"Hello World!\"\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.caprioletech.com/v1/chat")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"openai-latest\",\n \"input\": \"Hello World!\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.caprioletech.com/v1/chat")
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\": \"openai-latest\",\n \"input\": \"Hello World!\"\n}"
response = http.request(request)
puts response.read_body{
"id": "49da8eb7-916b-43a3-ab02-442bc2841839",
"model": "openai/gpt-6-astra",
"result": {
"text": "Here is a short joke."
},
"usage": {
"input_tokens": 8,
"output_tokens": 6,
"total_tokens": 14,
"cached_tokens": 0,
"charged_tokens": 14
}
}
이 엔드포인트로 모델에 일반 텍스트 입력을 보내고 일반 텍스트 응답을 받습니다. 이 Capriole 네이티브 경로는 비스트리밍입니다. 클라이언트에 SSE 스트림이 필요하면 Chat Completions, Responses 또는 Messages를 사용하세요.
POST /v1/chat는 openai-latest, claude-latest, google-latest와 GET /v1/models가 반환하는 공개 구체 모델 ID를 받습니다. 해당 제공자의 권장 플래그십 모델을 Capriole AI가 선택하게 하려면 latest 별칭을 사용하세요. 버전 고정이 중요하면 구체적인 모델 ID를 사용하세요.
GPT-6 Astra의 Web Chat은 Thinking(medium, 기본 선택)과 Fast(low)를 제공합니다. GPT-5.6의 두 모드는 Other Models에 있습니다. 공개 API는 브라우저 전용 Thinking ID 대신 openai-latest 또는 openai/gpt-6-astra를 사용합니다. 이 네이티브 Chat 엔드포인트는 Astra의 low 설정을 사용하며, Responses와 Chat Completions는 호출자의 추론 옵션을 그대로 전달합니다.
Capriole AI 웹 채팅과 공개 API는 서로 다른 제품 표면입니다. 웹 채팅에서 Fable 5.1과 Fable 5.1 Thinking이 기본 Anthropic 모드이고, Fable 5, Fable 5 Thinking, Opus 5, Opus 5 Thinking은 Other Models에 표시됩니다. 공개 API는 웹 채팅 Thinking 프리셋을 별도의 모델 ID로 노출하지 않습니다. Claude Chat API 요청에는 claude-latest 또는 anthropic/claude-fable-5-1, anthropic/claude-fable-5, anthropic/claude-opus-5, anthropic/claude-sonnet-4-6 같은 공개 구체 Claude 모델 ID를 사용하세요. 기존 Opus 4.8, Opus 4.7, Opus 4.6 통합은 계속 지원됩니다.인증
Use an API key created in the Capriole AI page. Send it as Authorization: Bearer sk-....
본문
application/json
Public model identifier or latest alias returned by GET /v1/models
사용 가능한 옵션:
openai-latest, openai/gpt-6-astra, openai/gpt-5.6-terra, openai/gpt-5.6-luna, openai/gpt-5.5, openai/gpt-5.4-mini, claude-latest, anthropic/claude-fable-5-1, anthropic/claude-fable-5, anthropic/claude-opus-5, anthropic/claude-opus-4-8, anthropic/claude-opus-4-7, anthropic/claude-opus-4-6, anthropic/claude-sonnet-4-6, google-latest, google/gemini-3.1-pro-preview, google/gemini-3.8-flash, xai/grok-4.6, xai/grok-4.5, zai/glm-5.3-flash, zai/glm-5.2, moonshot/kimi-k3 Plain text user input
Enable provider-native web search when the selected model supports it.
Optional sampling temperature.
필수 범위:
x >= 0Optional maximum number of output tokens.
Optional maximum number of provider retries.
필수 범위:
x >= 0Optional provider request timeout in seconds.
마지막 수정일 2026년 9월 5일