Claude Code 指南
配置 Flaq AI Claude 模型并探索 Claude Code 技能
OpenAI GPT 5.4 Web Search 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.4-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.4-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.4-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 5.4 网页搜索 API 在 Flaq AI 上提供 OpenAI API 访问,适用于需要可靠 推理、编码帮助和实用聊天体验的专业工作流。这种快速、经济实惠且实用的 OpenAI API 集成 可帮助开发者构建网页搜索体验,支持灵活的会话上下文、研究感知提示、受支持的工具 工作流,以及 Flaq AI 上特定路由的设置。它为生产工作负载而构建,让团队能够稳定地添加 高级 AI 能力,而无需管理模型基础设施,也无需从零编写特定供应商的接入逻辑。
Note 请确保你的提示词、上传文件和应用工作流符合 OpenAI 安全与使用 指南。如果发生错误,请检查输入是否包含受限内容,简化请求后重试。
GPT 5.4 vs. Claude Opus 4.7 Claude Opus 4.7 擅长谨慎的长周期推理和 Claude 风格智能体 工作流。GPT 5.4 提供 OpenAI 原生行为、广泛的应用工具,以及适合已经 基于 OpenAI 生态构建团队的熟悉 API 路径。
GPT 5.4 vs. Claude Sonnet 4.6 Claude Sonnet 4.6 侧重智能与延迟之间的快速平衡。 GPT 5.4 是 开发者需要 OpenAI 模型行为、灵活聊天工作流,以及 Flaq AI 上集成网页搜索 能力时的强力选择。
GPT 5.4 vs. Gemini Gemini 模型对 Google 原生多模态和临近 Workspace 的用例很有吸引力。GPT 5.4 以 OpenAI 风格推理、可靠文本质量和生产友好集成形成差异化。
GPT 5.4 vs. DeepSeek Reasoner DeepSeek Reasoner 因经济实惠的推理实验而受到重视。 GPT 5.4 为专业网页搜索 工作流提供托管 API 体验,尤其适合重视可靠性和生态支持的场景。
GPT 5.4 vs. Llama Llama 模型为团队提供开放模型灵活性和部署控制。GPT 5.4 消除 基础设施开销,并为需要快速集成和稳定输出质量的开发者提供可扩展 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 图像和视频生成工具
在 WorkBuddy 中使用 GPT 6 Astra 和 Claude Fable 5.1