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-text-to-text',
messages: [
{
role: 'user',
content: 'Write a concise product update for a developer audience.'
}
],
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-text-to-text',
'messages': [
{
'role': 'user',
'content': 'Write a concise product update for a developer audience.',
}
],
'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-text-to-text",
"messages": [
{
"role": "user",
"content": "Write a concise product update for a developer audience."
}
],
"stream": true,
"max_tokens": 2048
}'
| パラメータ | 料金 | 元の料金 | 割引 |
|---|
GPT 6 Astra Text-to-Text API は、OpenAI のフラッグシップモデル GPT-6 Astra を、Flaq AI 上で高度な推論、ソフトウェアエンジニアリング、専門的な知識業務に活用できるようにします。このテキストからテキストへの API 連携により、開発者や専門チームは会話メッセージをもとに、複雑なコーディング課題、設計の詳しい説明、技術文書の作成に取り組めます。GPT-6 Astra は難易度の高い言語タスク向けに位置づけられており、Flaq AI は別途モデル実行基盤を用意することなく、安定した費用対効果の高い API アクセスを提供します。
注意 プロンプトとアプリケーションのワークフローは、OpenAI の利用ポリシーと Flaq AI の利用規約に従ってください。リクエストが失敗した場合は、制限対象のコンテンツを取り除き、タスクの範囲を絞ってから再試行してください。
GPT 6 Astra と GPT 5.6 Sol の比較
GPT 5.6 Sol は Flaq AI 上の前世代の OpenAI フラッグシップであり、引き続き本番用途に適した優れたテキストモデルです。従来の GPT-5.6 世代よりも最新 GPT の深い推論能力とコーディング能力が求められる処理では、現行フラッグシップの GPT 6 Astra が選択肢になります。
GPT 6 Astra と Claude Fable 5.1 の比較
Claude Fable 5.1 は、高度なコーディングと知識業務に向けた Anthropic の現行 Fable クラスモデルです。GPT 6 Astra Text-to-Text API は、同水準の難しい言語・ソフトウェア課題に対応する OpenAI ネイティブの選択肢です。そのため、どちらが適しているかは通常、すでに信頼しているエコシステムと評価結果によって決まります。
GPT 6 Astra と Claude Fable 5 の比較
Claude Fable 5 は前世代の Fable で、その Anthropic モデルを標準として利用するチームには今も有用です。GPT 6 Astra は、複雑な推論と専門的な文章作成に向けた OpenAI の新しいフラッグシップ級テキストモデルです。
GPT 6 Astra と Gemini テキストモデルの比較
Gemini のテキスト API は、Google を中心とした技術基盤やマルチモーダル製品群に適しています。GPT 6 Astra Text-to-Text API は、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 を使用