Documentation Index
Fetch the complete documentation index at: https://docs.apigo.ai/llms.txt
Use this file to discover all available pages before exploring further.
이것을 언제 사용하는가
- 클로드 특유의 사고나 도구 선택 제어를 전달해야 합니다.
- 게이트웨이는 원시 Anthropic 관련 필드를 직접 노출해서는 안 됩니다.
Example
{
"model": "claude-sonnet-4-20250514",
"messages": [
{ "role": "user", "content": "Summarize this report." }
],
"model_extra": {
"thinking": { "type": "enabled", "budget_tokens": 1024 },
"tool_choice": { "type": "auto" }
}
}
cURL 예
curl https://maas.apigo.ai/v1/messages \
-H "Authorization: Bearer $YOUR API KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-20250514",
"messages": [
{ "role": "user", "content": "Summarize this report." }
],
"model_extra": {
"thinking": { "type": "enabled", "budget_tokens": 1024 },
"tool_choice": { "type": "auto" }
}
}'
파이썬 예제
import requests
response = requests.post(
"https://maas.apigo.ai/v1/messages",
headers={
"Authorization": "Bearer <YOUR API KEY>",
"Content-Type": "application/json",
},
json={
"model": "claude-sonnet-4-20250514",
"messages": [
{"role": "user", "content": "Summarize this report."}
],
"model_extra": {
"thinking": {"type": "enabled", "budget_tokens": 1024},
"tool_choice": {"type": "auto"},
},
},
)
print(response.json())
Node.js 예
const response = await fetch("https://maas.apigo.ai/v1/messages", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.YOUR API KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "claude-sonnet-4-20250514",
messages: [
{ role: "user", content: "Summarize this report." }
],
model_extra: {
thinking: { type: "enabled", budget_tokens: 1024 },
tool_choice: { type: "auto" }
}
}),
});
console.log(await response.json());
모범 사례
- Thinking 및 베타 관련 설정을 서버측에서 유지하세요.
- 공급자별 필드를 전달하기 전에 모델 지원을 검증하세요.