Руководство Claude Code
Настройте модели Claude от Flaq AI и изучите навыки Claude Code
Claude Opus 4.6 API для глубокого обзора документов, анализа контрактов, резюме отчетов и Q&A по файлам. Стабильно и доступно для профессиональных команд. Подходит для бесплатного тестирования и стабильных 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: 'claude-opus-4.6-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,
top_p: 0.5,
top_k: 50
})
});
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': 'claude-opus-4.6-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,
'top_p': 0.5,
'top_k': 50,
},
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": "claude-opus-4.6-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,
"top_p": 0.5,
"top_k": 50
}'
| Параметры | Цена | Исходная цена | Скидка |
|---|
Claude Opus 4.6 File Analysis API на Flaq AI предоставляет доступ к Claude API для сложных workflow, которым нужны тщательный анализ, четкое следование инструкциям и надежный long-form output. Эта глубокая, управляемая и готовая к production интеграция Claude API помогает разработчикам создавать сценарии анализа файлов с гибким контекстом диалога, document-aware подсказками, поддерживаемыми инструментальными workflow и настройками маршрута на Flaq AI. Созданная для production-нагрузок, она дает командам стабильный способ добавить продвинутые AI-возможности без управления инфраструктурой моделей или написания provider-specific интеграционного кода с нуля.
Примечание Убедитесь, что ваши prompts, загруженные файлы и application workflows соответствуют правилам безопасности и использования Anthropic. Если возникла ошибка, проверьте input на restricted content, упростите запрос и попробуйте снова.
Claude Opus 4.6 vs. GPT 5.5 GPT 5.5 позиционируется для продвинутых OpenAI reasoning и coding workflows. Claude Opus 4.6 выделяется Claude-style следованием инструкциям, аккуратным анализом и хорошим соответствием writing, file, and agent workflows.
Claude Opus 4.6 vs. GPT 5.4 GPT 5.4 делает акцент на доступной производительности OpenAI для профессиональной работы. Claude Opus 4.6 предлагает альтернативу Claude API с аккуратным качеством ответов, практичными controls и надежным output для file analysis tasks.
Claude Opus 4.6 vs. Gemini Модели Gemini сильны для Google-native multimodal use cases. Claude Opus 4.6 отличается аккуратным стилем ответов Claude, практичным рассуждением по документам и production-oriented tool behavior.
Claude Opus 4.6 vs. DeepSeek Reasoner DeepSeek Reasoner полезен для cost-sensitive reasoning workloads. Claude Opus 4.6 обеспечивает управляемое качество Claude, более безопасное production behavior и лучше подходит для professional writing, coding и analysis workflows.
Claude Opus 4.6 vs. Llama Модели Llama дают разработчикам open-model control и гибкость self-hosting. Claude Opus 4.6 лучше подходит командам, которым нужен managed API, сильное следование инструкциям и качественный output без работы с model infrastructure.
Настройте модели Claude от Flaq AI и изучите навыки Claude Code

Настройте модели GPT от Flaq AI и изучите навыки Codex
Используйте LLM-модели Flaq AI в Hermes Agent
Используйте GLM 5.2, Kimi K3 и DeepSeek v4 в ZCode
Запустите DeepSeek Harness с моделями DeepSeek от Flaq AI
Подключайте ИИ-агентов к инструментам Flaq для генерации изображений и видео
Используйте GPT 6 Astra и Claude Fable 5.1 в WorkBuddy