Claude Code 가이드
Flaq AI Claude 모델을 설정하고 Claude Code 스킬 살펴보기
스트리밍 응답을 지원하는 Flaq AI의 안정적인 API를 통해 OpenAI GPT 6 Astra API의 고급 시각적 추론, 차트 해석, OCR, 이미지 질의응답을 경험하세요.전문 분석에 활용하세요.
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-astra-image-to-text',
messages: [
{
role: 'user',
content: [
{ type: 'text', text: 'Describe the image and extract any visible text.' },
{
type: 'image_url',
image_url: {
url: 'https://example.com/sample-image.jpg'
}
}
]
}
],
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-6-astra-image-to-text',
'messages': [
{
'role': 'user',
'content': [
{'type': 'text', 'text': 'Describe the image and extract any visible text.'},
{
'type': 'image_url',
'image_url': {
'url': 'https://example.com/sample-image.jpg'
}
},
],
}
],
'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-astra-image-to-text",
"messages": [
{
"role": "user",
"content": [
{ "type": "text", "text": "Describe the image and extract any visible text." },
{
"type": "image_url",
"image_url": {
"url": "https://example.com/sample-image.jpg"
}
}
]
}
],
"stream": true,
"max_tokens": 2048
}'
| 매개변수 | 가격 | 원래 가격 | 할인 |
|---|
GPT 6 Astra Image-to-Text API는 OpenAI의 플래그십 GPT-6 Astra 추론을 Flaq AI의 이미지, 차트, 시각적 질의응답에 적용합니다. 이 이미지 대 텍스트 API 통합을 통해 개발자와 전문 팀은 지원되는 이미지와 선택적 텍스트 지시를 설명, 추출한 세부 정보, 구조화된 분석으로 변환할 수 있습니다. 모델은 시각 추론을 제공하고, Flaq AI는 안정적이고 비용 효율적인 API 접근을 제공합니다.
참고 OpenAI 이용 정책 및 Flaq AI 약관을 준수하는 이미지와 프롬프트를 사용하세요. 오류가 발생하면 제한되거나 지원되지 않는 시각 콘텐츠가 있는지 확인하고, 질문을 단순하게 바꾼 뒤 다시 시도하세요.
GPT 6 Astra와 GPT 5.6 Sol Image-to-Text 비교
GPT 5.6 Sol Image-to-Text는 Flaq AI에서 이전 OpenAI 플래그십 비전 API로 계속 제공됩니다. 시각 추론, 차트 읽기, 이미지 질의응답에 더 새로운 GPT 세대가 필요할 때 GPT 6 Astra가 현행 플래그십 선택지입니다.
GPT 6 Astra와 Claude 비전 워크플로 비교
Claude Fable 모델은 특히 파일 분석 API에서 문서 안에 포함된 차트와 표를 처리하는 데 강점이 있습니다. GPT 6 Astra Image-to-Text API는 문서 업로드 없이 이미지와 선택적 텍스트를 분석하도록 특별히 설계된 OpenAI API입니다.
GPT 6 Astra와 Gemini 비전 모델 비교
Gemini 비전 API는 Google 중심 멀티모달 제품에 자연스럽게 어울립니다. GPT 6 Astra Image-to-Text API는 Flaq AI의 이미지 대 텍스트 채팅 경로를 통해 OpenAI의 플래그십 시각 추론을 활용하려는 팀을 위한 API입니다.
GPT 6 Astra와 전용 OCR 엔진 비교
전용 OCR 도구는 스캔 이미지에서 원시 텍스트를 복원하는 데 최적화되어 있습니다. GPT 6 Astra는 보이는 텍스트에 플래그십 시각 추론을 더하므로, 단순한 전사보다 해석, 질의응답, 차트 읽기가 필요한 작업에서 더 유용합니다.
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 사용