Claude Code 가이드
Flaq AI Claude 모델을 설정하고 Claude Code 스킬 살펴보기
빠른 다중 파일 추출, 요약, 비교 및 경제적인 대용량 문서 워크플로를 지원하는 GPT 5.6 Luna 파일 분석 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-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
}'
| 매개변수 | 가격 | 원래 가격 | 할인 |
|---|
Flaq AI의 GPT 5.6 Luna File Analysis API는 확장 가능한 프로덕션 워크플로에 빠르고 비용 효율적인 문서 이해를 제공합니다. 자연어 지시와 여러 지원 파일, 선택적 이미지 맥락을 결합해 추출, 요약, 비교, 일상 분석을 수행할 수 있습니다. 대화형 후속 질문과 스트리밍 응답으로 별도 파일 분석 인프라 없이 반복적인 문서 워크로드를 처리합니다.
참고 프롬프트, 업로드 파일, 애플리케이션 워크플로가 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는 Flaq AI 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 이미지 및 동영상 생성 도구에 연결