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 のフラッグシップ視覚推論を利用したいチーム向けです。
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 を使用