Claude Code ガイド
Flaq AI の Claude モデルを設定し、Claude Code スキルを探す
Flaq AI のチーム向けの安定した低コスト API を通じて、OpenAI GPT 6 Astra 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-astra-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-6-astra-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-6-astra-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
}'
| パラメータ | 料金 | 元の料金 | 割引 |
|---|
GPT 6 Astra File Analysis API は、OpenAI のフラッグシップモデル GPT-6 Astra の推論を、Flaq AI での複雑な文書の読解、証拠の検証、専門的なファイル分析に適用します。このファイル分析 API 連携により、開発者や専門チームは、対応する文書、画像、任意のテキスト指示から情報を抽出し、主張を原資料と照合し、結果を統合できます。
注意 OpenAI の利用ポリシー、Flaq AI の利用規約、およびご自身のデータ取り扱いルールに準拠するファイルとプロンプトのみをアップロードしてください。エラーが発生した場合は、非対応または制限対象の資料がないか確認し、指示を簡潔にして再試行してください。
GPT 6 Astra と GPT 5.6 Sol File Analysis の比較
GPT 5.6 Sol File Analysis は、Flaq AI における前世代の OpenAI フラッグシップ文書分析モデルです。ファイルの推論、抽出、証拠の検証に新しい世代の GPT が必要な場合、GPT 6 Astra が現行のフラッグシップモデルです。
GPT 6 Astra と Claude Fable 5.1 File Analysis の比較
Claude Fable 5.1 File Analysis は、PDF に含まれるグラフ、表、図の分析に特に優れています。GPT 6 Astra File Analysis API は、複雑な文書推論、抽出、ファイルを横断した情報統合に対応する OpenAI フラッグシップのルートです。
GPT 6 Astra と Claude Fable 5 File Analysis の比較
Claude Fable 5 は、その世代をすでに利用しているチームにとって、引き続き有用な Anthropic の文書分析モデルです。GPT 6 Astra は、Flaq AI における OpenAI の新しいフラッグシップのファイル分析クラスに位置付けられます。
GPT 6 Astra と Gemini File Understanding の比較
Gemini のファイルワークフローは、Google を中心としたマルチモーダル構成に適合します。GPT 6 Astra File Analysis API は、マネージドなチャット連携を通じて 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 を使用