Claude Code ガイド
Flaq AI の Claude モデルを設定し、Claude Code スキルを探す
OpenAIのGPT 6.1 Sol APIでウェブ検索、オンライン調査、最新情報に基づく回答を体験。Flaq AIの安定した手頃な価格の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-6.1-sol-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
})
});
if (!response.ok) {
const errorBody = await response.json().catch(() => null);
throw new Error(errorBody?.error?.message ?? errorBody?.message ?? `HTTP ${response.status}`);
}
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(/\r?\n\r?\n/);
buffer = frames.pop() || '';
for (const frame of frames) {
const lines = frame.split(/\r?\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-6.1-sol-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-6.1-sol-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
}'
| パラメータ | 料金 | 元の料金 | 割引 |
|---|
GPT 6.1 Sol Web Search API は、Flaq AI 上で検索を活用した質問応答とリサーチワークフローを支援します。トピック、 必要な情報、関連する背景情報を指定すると、ウェブ検索を利用した文章による回答をリクエストできます。このルートは、 メッセージベースの対話に、任意の補助添付ファイル、ストリーミング応答、調整可能な出力 長を組み合わせ、オンライン情報を扱う必要があるアプリケーションに対応します。
ウェブ検索機能: 会話内で既に提供されている背景情報を超えて調べる必要がある質問に、 検索対応のルートを利用できます。
プロンプトで方向づけるリサーチ: 対象、期間、希望する範囲を指定し、リクエストを アプリケーションに必要な情報に絞り込めます。
補助的な参考資料の入力: テキストの質問に対応形式のファイルや画像を添付し、リサーチ タスクに追加の背景情報を提供できます。
対話による絞り込み: フォローアップの質問でトピックを絞り込んだり、 以前の回答についてより明確な説明を求めたりできます。
リサーチ回答のストリーミング: 生成したテキストを順次返し、対話的なリサーチ体験を提供します。
回答の長さの調整: 出力トークン数の上限を設定し、簡潔な概要と 詳しい回答のどちらが必要かを指定できます。
入力: テキスト形式のリサーチ質問、関連する会話の背景情報、必要に応じて対応形式の画像またはファイルの 添付。
出力: ウェブ検索に対応したモデルルートを通じて生成される文章による回答。
設定項目: プロンプトで指定する調査範囲、任意の出力トークン数の上限、ストリーミングの選択。
対応機能: 検索を活用した質問応答、オンラインリサーチの要約、トピックの追加調査。
リサーチアシスタント: ユーザーによるトピックの調査と、掘り下げたい質問の絞り込みを支援します。
製品調査: 製品比較の概要資料に必要な情報を収集し、 意思決定の前に元の情報源を確認します。
業界動向レポート: 指定したトピックと期間における動向について、焦点を絞った概要をリクエストします。
ドキュメントの探索: 技術的な質問に関連する情報を探し、元の ドキュメントと照合して確認します。
背景情報を踏まえた調査: アップロードした参考資料と、追加のオンライン 情報を必要とする質問を組み合わせます。
注意 関連する日付範囲を明記し、調査結果を利用する前に情報源の日付と元のページを確認してください。 ウェブにアクセスできても、すべての関連ページの利用可能性や、返されるすべての記述の最新性が保証されるわけではありません。
GPT 6.1 Sol Web Search と GPT 6.1 Sol Text-to-Text Text-to-Text はウェブ検索を行わず、提供されたメッセージを処理します。 Web Search ルートは、オンライン情報が必要な質問に対応する構成です。
GPT 6.1 Sol Web Search と GPT 6.1 Sol File Analysis File Analysis は、ユーザーがアップロードした資料を中心に扱います。Web Search は、任意の参考資料入力を維持しながら、添付資料の範囲を超えた調査に対応します。
GPT 6.1 Sol Web Search と GPT 6.1 Sol Image-to-Text Image-to-Text は、提供された画像の説明や、 画像に関する質問への回答を中心に扱います。Web Search はテキストの調査質問を扱い、画像を補助的な背景情報として利用できます。
GPT 6.1 Sol Web Search と Claude Sonnet 5.5 File Analysis Claude の File Analysis 構成は、ドキュメント と画像を受け付けますが、ウェブ検索は有効になっていません。この GPT ルートは、タスクにオンライン資料も 必要な場合に、検索対応の選択肢を提供します。
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の画像・動画生成ツールに接続
WorkBuddy で GPT 6 Astra と Claude Fable 5.1 を使用