คู่มือ Claude Code
ตั้งค่าโมเดล Claude ของ Flaq AI และสำรวจสกิล Claude Code
ทดลอง API วิเคราะห์ไฟล์ GPT 5.6 Luna ฟรีสำหรับดึงข้อมูลหลายไฟล์ สรุป เปรียบเทียบอย่างรวดเร็ว และเวิร์กโฟลว์เอกสารปริมาณสูงที่คุ้มค่า
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-luna-file-analysis',
messages: [
{
role: 'user',
content: [
{ type: 'text', text: 'Summarize this file and extract the key risks.' },
{
type: 'file',
file: {
filename: 'demo.pdf',
file_data: 'https://example.com/demo.pdf'
}
}
]
}
],
stream: true,
max_tokens: 4096
})
});
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-luna-file-analysis',
'messages': [
{
'role': 'user',
'content': [
{'type': 'text', 'text': 'Summarize this file and extract the key risks.'},
{
'type': 'file',
'file': {
'filename': 'demo.pdf',
'file_data': 'https://example.com/demo.pdf'
}
},
],
}
],
'stream': True,
'max_tokens': 4096,
},
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-luna-file-analysis",
"messages": [
{
"role": "user",
"content": [
{ "type": "text", "text": "Summarize this file and extract the key risks." },
{
"type": "file",
"file": {
"filename": "demo.pdf",
"file_data": "https://example.com/demo.pdf"
}
}
]
}
],
"stream": true,
"max_tokens": 4096
}'
| พารามิเตอร์ | ราคา | ราคาเดิม | ส่วนลด |
|---|
API File Analysis GPT 5.6 Luna บน Flaq AI มอบความเข้าใจเอกสารที่รวดเร็วและคุ้มค่าสำหรับเวิร์กโฟลว์การผลิตที่ปรับขนาดได้ การผสาน API OpenAI นี้ช่วยให้ใช้คำสั่งภาษาธรรมชาติร่วมกับไฟล์ที่รองรับหลายไฟล์และบริบทภาพที่เลือกใช้ได้เพื่อสกัด สรุป เปรียบเทียบ และวิเคราะห์ตามปกติ ด้วยการสนทนาต่อเนื่องและการตอบแบบสตรีม Luna ช่วยประมวลผลภาระงานเอกสารที่เกิดซ้ำโดยไม่ต้องสร้างโครงสร้างพื้นฐานวิเคราะห์ไฟล์แยกต่างหาก
หมายเหตุ โปรดตรวจสอบว่าพรอมต์ ไฟล์ที่อัปโหลด และเวิร์กโฟลว์แอปพลิเคชันเป็นไปตามแนวทางความปลอดภัยและการใช้งานของ OpenAI หากเกิดข้อผิดพลาด ให้ตรวจสอบเนื้อหาที่ถูกจำกัดหรือไม่รองรับ ลดความซับซ้อนของคำขอ แล้วลองอีกครั้ง
GPT 5.6 Luna เทียบกับ GPT 5.6 Sol
GPT 5.6 Sol มุ่งเน้นการให้เหตุผลเอกสารที่ซับซ้อนที่สุดในระดับเรือธง ส่วน GPT 5.6 Luna ให้ความสำคัญกับการประมวลผลไฟล์ที่รวดเร็วและคุ้มค่าสำหรับภาระงานที่ปรับขนาดได้
GPT 5.6 Luna เทียบกับ GPT 5.6 Terra
GPT 5.6 Terra สร้างสมดุลระหว่างการวิเคราะห์เอกสารระดับมืออาชีพกับต้นทุนที่ต่ำกว่า ส่วน GPT 5.6 Luna เน้นความเร็วและประสิทธิภาพสูงสุดสำหรับงานไฟล์ที่เกิดซ้ำ
GPT 5.6 Luna เทียบกับ GPT 5.5 File Analysis
GPT 5.5 รองรับเวิร์กโฟลว์เอกสารที่เชื่อถือได้สำหรับงานระดับมืออาชีพที่ซับซ้อน ส่วน GPT 5.6 Luna เป็นตัวเลือกที่เร็วและคุ้มค่ากว่าสำหรับการวิเคราะห์ปริมาณสูง
GPT 5.6 Luna เทียบกับ Claude File Analysis
โมเดล Claude ให้การให้เหตุผลเอกสารที่แข็งแกร่งในระบบนิเวศ Anthropic ส่วน GPT 5.6 Luna เป็นทางเลือกแบบเนทีฟของ OpenAI ที่มีประสิทธิภาพสำหรับการวิเคราะห์ไฟล์ที่ปรับขนาดได้
GPT 5.6 Luna เทียบกับไปป์ไลน์เอกสารโมเดลแบบเปิด
โมเดลแบบเปิดให้การควบคุมการปรับใช้แต่ต้องมีโครงสร้างพื้นฐานการให้บริการและประมวลผลเอกสารเพิ่มเติม ส่วน GPT 5.6 Luna ให้การวิเคราะห์แบบมีการจัดการผ่านเวิร์กโฟลว์ API ของ Flaq AI
ตั้งค่าโมเดล Claude ของ Flaq AI และสำรวจสกิล Claude Code

ตั้งค่าโมเดล GPT ของ Flaq AI และสำรวจสกิล Codex
ใช้โมเดล LLM ของ Flaq AI ใน Hermes Agent
ใช้ GLM 5.2, Kimi K3 และ DeepSeek v4 ใน ZCode
เรียกใช้ DeepSeek Harness กับโมเดล DeepSeek ของ Flaq AI
เชื่อมต่อเอเจนต์ AI กับเครื่องมือสร้างรูปภาพและวิดีโอของ Flaq