Claude Code ガイド
Flaq AI の Claude モデルを設定し、Claude Code スキルを探す
Flaq AI の安定した手頃な API で OpenAI の GPT 6 Sol 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-sol-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
})
});
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-sol-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-sol-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 Sol Image-to-Text API は、OpenAI の GPT-6 Sol が備える高度な推論能力を、Flaq AI 上の視覚理解、チャートの解釈、画像に関する質問応答に適用します。この画像からテキストへの API 連携により、開発者や専門チームは、対応する視覚素材と自然言語の指示を組み合わせ、明確な技術的説明、構造化されたデータ抽出、詳細な分析へと変換できます。GPT-6 Sol が強力な視覚推論を提供し、Flaq AI が信頼性と費用対効果に優れた API 連携を実現します。
注意 画像入力とプロンプトメッセージが、OpenAI の安全性および利用ポリシーと Flaq AI の利用規約に準拠していることを確認してください。エラーが発生した場合は、画像に未対応の属性や制限対象の要素がないか確認し、プロンプトを調整して再試行してください。
GPT 6 Sol Image-to-Text と GPT 6 Astra Image-to-Text の比較
GPT 6 Astra は、最も難度の高い推論向けの OpenAI のフラッグシップモデルです。GPT 6 Sol Image-to-Text は、本番環境のワークフローに向けてモデルの性能とコストのバランスを取った画像分析の選択肢を提供します。
GPT 6 Sol Image-to-Text と GPT 6 Luna Image-to-Text の比較
GPT 6 Luna Image-to-Text は、コストを重視する大量の視覚処理タスクに適しています。GPT 6 Sol Image-to-Text は、詳細な図や複数ステップの視覚的な質問に取り組むチーム向けの選択肢です。
GPT 6 Sol Image-to-Text と Claude Opus 5.5 の比較
Claude Opus 5.5 は、特に文書中心の分析や PDF を多用する分析で、優れたマルチモーダル能力を発揮します。GPT 6 Sol Image-to-Text は、標準的なチャット API 連携の中で、画像主体の迅速な検査、チャートの読み取り、対話形式の画像に関する質問応答を行えるよう最適化されています。
GPT 6 Sol Image-to-Text と専用 OCR エンジンの比較
専用 OCR ツールは、テキストの書き起こしや項目の抽出によく使用されます。GPT 6 Sol Image-to-Text は、チャート、レイアウト、目に見える要素間の関係など、周囲の視覚的な文脈に関する質問にも対応します。
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 を使用