Claude Code 가이드
Flaq AI Claude 모델을 설정하고 Claude Code 스킬 살펴보기
Flaq AI의 안정적이고 합리적인 API로 OpenAI GPT 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-6-luna-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-luna-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-luna-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 6 Luna Web Search API는 비용 효율적인 GPT-6 모델과 웹 검색을 결합해 출처를 고려한 답변과 시의성 있는 조사를 지원합니다. 대량의 고객 문의, 뉴스 피드, 시장 모니터링을 위해 설계된 이 웹 검색 API 통합을 통해 개발자는 공개 정보를 검색하고, 출처를 비교하며, 검토할 수 있도록 조사 결과를 요약할 수 있습니다.
참고 프롬프트, 첨부 자료, 정보 검색 작업이 OpenAI의 사용 정책, Flaq AI 약관, 적용되는 웹 서비스 이용 약관을 준수하는지 확인하세요. 오류가 발생하면 질의 범위를 좁히고 제한된 용어나 첨부 파일을 제거한 후 다시 시도하세요.
GPT 6 Luna Web Search와 GPT 6 Sol Web Search 비교
GPT 6 Sol Web Search는 여러 공개 출처를 더 길고 상세하게 비교해야 하는 워크플로에 적합합니다. GPT 6 Luna Web Search는 범위가 명확하고 비용에 민감한 대량의 질의에 초점을 맞춥니다.
GPT 6 Luna Web Search와 GPT 5.6 Luna Web Search 비교
GPT 5.6 Luna Web Search는 검색으로 뒷받침되는 답변을 위한 이전 세대의 선택지입니다. GPT 6 Luna Web Search는 범위가 명확한 조사 질의에 새로운 GPT-6 제품군을 적용합니다. 전환하기 전에 실제 질의로 출처의 관련성과 답변 품질을 비교하세요.
GPT 6 Luna Web Search와 검색 중심 답변 엔진 비교
검색 중심 답변 엔진은 정형화된 발췌문과 많은 인용 링크를 반환하는 경우가 많습니다. GPT 6 Luna Web Search는 사용자의 프롬프트 형식과 시스템 지침에 직접 맞춘, 대화체의 일관성 있는 종합 답변을 제공합니다.
GPT 6 Luna Web Search와 Gemini Grounded Search 비교
Gemini의 검색 기반 모델은 Google 검색 생태계를 중심으로 설계되었습니다. GPT 6 Luna Web Search는 기본 채팅 완성 규약, 멀티턴 메시지 처리, Flaq AI의 경쟁력 있는 가격을 갖춘 OpenAI 네이티브 검색 옵션을 제공합니다.
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 사용