Перевірити рівеньКурсиПрограмиДля командТарифи
RUУвійтиРеєстрація
Перевірити рівеньКурсиПрограмиДля командТарифиТест із ClaudeПромптиБлогПитання та відповідіПошукРеєстраціяRU
AcademlКурсиClaude API from A to ZYour first API call
Повідомлення користувача з двох блоків, текст і картинка, та відповідь моделіТермінал Claude Code: команда claude -p з дозволеними Read та EditПовторні запити після помилки 429: пауза щоразу вдвічі довша, потім успіх
Курс

Claude API from A to Z

Модуль 1 · Getting Started
01Your first API call02The Messages API structure03Choosing a model
Модуль 2 · Prompt Engineering for Claude
04Designing system prompts05The 1M context window06XML tags in prompts07Few-shot prompting
Модуль 3 · Tool Use
08Tool Use basics09Tool patterns10Multi-turn conversations11Computer Use and Browser Use
Модуль 4 · Production
12Streaming13Message Batches API14Prompt Caching15Vision16Production patterns
Claude API from A to Z · Урок 1

Your first API call

Install @anthropic-ai/sdk, create a client, send a message, and parse the response. Real TypeScript code.

ENМатеріали курсів поки англійською. Інтерфейс, ШІ-наставник і перевірка завдань — українською.

20 хв читанняОновлено 23.11.20262 питання у квізіГотовий промпт включено

Install

npm install @anthropic-ai/sdk

Use the current major version: @anthropic-ai/sdk 1.x (for Python, anthropic 2.x), released on 2026-10-21. These versions send the anthropic-version: 2026-10-21 header. That API version removed temperature, top_p and top_k, so code from older tutorials that sets them returns a 400 error.

Get a key in the Claude Console at platform.claude.com (the old console.anthropic.com address redirects there), under API keys. Put it in the ANTHROPIC_API_KEY environment variable. Never hardcode the key in the repository.

Далі урок відкривається після безкоштовної реєстрації

Реєстрація через email або Google відкриває перші два уроки кожного курсу назавжди і 7 днів повного доступу до всього каталогу. Картка не потрібна.

Зареєструватися безкоштовноАбо пробний урок без реєстрації →
У цьому уроці
InstallMinimal call in TypeScriptWhat's in the responseSame in PythonCheck it without codeПрактикаГотовий промптКвіз
КурсиКурси з LLMДля командТарифиПитання та відповідіБлогПро насКонфіденційність
© 2026 AcademlРозробка та просування сайтів —MMIX — Marketing Mix
Почати безкоштовно