Claude Code ガイド
Flaq AI の Claude モデルを設定し、Claude Code スキルを探す
最新情報の調査、ファクトチェック、市場監視、安定した費用対効果の高い本番ワークフローに対応するGPT 5.6 Terraウェブ検索APIを無料でお試しいただけます。
const response = await fetch('https://api.flaq.ai/api/v1/chat/completions', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
Accept: 'text/event-stream',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'gpt-5.6-terra-web-search',
messages: [
{
role: 'user',
content: 'Find the latest public information about Flaq AI and summarize it for a product brief.'
}
],
stream: true,
max_tokens: 2048
})
});
const reader = response.body.getReader();
const decoder = new TextDecoder();
let buffer = '';
let assistantText = '';
while (true) {
const { done, value } = await reader.read();
if (done) break;
buffer += decoder.decode(value, { stream: true });
const frames = buffer.split('\n\n');
buffer = frames.pop() || '';
for (const frame of frames) {
const lines = frame.split('\n').filter(Boolean);
let eventName = 'message';
const dataLines = [];
for (const line of lines) {
if (line.startsWith('event:')) {
eventName = line.slice(6).trim();
} else if (line.startsWith('data:')) {
dataLines.push(line.replace(/^data:\s*/, ''));
}
}
const raw = dataLines.join('\n').trim();
if (raw === '[DONE]') {
console.log('\nFinal text:', assistantText);
continue;
}
let payload;
try {
payload = JSON.parse(raw);
} catch {
continue;
}
if (eventName === 'error' || payload.error) {
const msg = payload.error?.message ?? payload.message ?? 'Chat request failed';
throw new Error(msg);
}
const delta = payload.choices?.[0]?.delta;
if (delta?.content) {
assistantText += delta.content;
console.log(assistantText);
}
}
}
import json
import requests
response = requests.post(
'https://api.flaq.ai/api/v1/chat/completions',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Accept': 'text/event-stream',
'Content-Type': 'application/json',
},
json={
'model': 'gpt-5.6-terra-web-search',
'messages': [
{
'role': 'user',
'content': 'Find the latest public information about Flaq AI and summarize it for a product brief.',
}
],
'stream': True,
'max_tokens': 2048,
},
stream=True,
)
response.raise_for_status()
event_name = 'message'
assistant_text = ''
for raw_line in response.iter_lines(decode_unicode=True):
if not raw_line:
event_name = 'message'
continue
if raw_line.startswith('event:'):
event_name = raw_line.replace('event:', '', 1).strip()
continue
if raw_line.startswith('data:'):
raw_data = raw_line.replace('data:', '', 1).strip()
if raw_data == '[DONE]':
print('\nFinal text:', assistant_text)
continue
payload = json.loads(raw_data)
if event_name == 'error' or payload.get('error'):
error = payload.get('error') or payload
raise RuntimeError(error.get('message', 'Chat request failed'))
choices = payload.get('choices') or []
if choices:
delta = choices[0].get('delta') or {}
content = delta.get('content')
if content:
assistant_text += content
print(content, end='', flush=True)
curl -N -X POST "https://api.flaq.ai/api/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: text/event-stream" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.6-terra-web-search",
"messages": [
{
"role": "user",
"content": "Find the latest public information about Flaq AI and summarize it for a product brief."
}
],
"stream": true,
"max_tokens": 2048
}'
| パラメータ | 料金 | 元の料金 | 割引 |
|---|
Flaq AI の GPT 5.6 Terra ウェブ検索 API は、バランスの良い GPT-5.6 の推論能力と最新の公開ウェブ情報へのアクセスを組み合わせます。このコスト効率の高い OpenAI 検索連携により、開発者は市場監視、ファクトチェック、時事要約、専門的なナレッジワークフローのための調査ツールを構築できます。会話コンテキストと関連するマルチモーダル入力への対応により、Terra は継続的な本番利用に適した実用的な検索連動 API を提供します。
注記 プロンプト、アップロードした入力、アプリケーションのワークフローが OpenAI の安全性および利用ガイドラインに準拠していることを確認してください。エラーが発生した場合は、入力に制限対象のコンテンツがないか確認し、リクエストを簡略化して再試行してください。
GPT 5.6 Terra と GPT 5.6 Sol の比較
GPT 5.6 Sol は、フラッグシップ級の推論の深さを必要とする複雑な調査に適しています。GPT 5.6 Terra は、幅広い専門的なウェブ調査にバランスの良い低コストの選択肢を提供します。
GPT 5.6 Terra と GPT 5.6 Luna の比較
GPT 5.6 Luna は、検索に基づく迅速で非常に効率的な応答を重視します。GPT 5.6 Terra は、継続的な調査と情報統合タスクにより優れたバランスを提供します。
GPT 5.6 Terra と GPT 5.5 Web Search の比較
GPT 5.5 は、信頼性の高い最新情報ワークフローに対応します。GPT 5.6 Terra は、より新しい GPT ファミリーの検索機能をコストを抑えて利用できる選択肢です。
GPT 5.6 Terra と Claude の検索ワークフローの比較
Claude モデルは、Anthropic エコシステムで慎重な調査と情報統合を提供します。GPT 5.6 Terra は、検索に基づくアプリケーションにバランスの良い OpenAI ネイティブの選択肢を提供します。
GPT 5.6 Terra と Gemini の検索ワークフローの比較
Gemini の検索体験は、Google のエコシステムと密接に連携します。GPT 5.6 Terra は、OpenAI 形式の API ワークフローに統一するチームにとって実用的な選択肢です。
Flaq AI の Claude モデルを設定し、Claude Code スキルを探す

Flaq AI の GPT モデルを設定し、Codex スキルを探す
Hermes Agent で Flaq AI の LLM モデルを使用
ZCodeでGLM 5.2、Kimi K3、DeepSeek v4を使用
Flaq AI の DeepSeek モデルで DeepSeek Harness を実行
AIエージェントをFlaqの画像・動画生成ツールに接続