AI Engineering / Working with LLMs
Working with LLM APIs & SDKs
121 lessons in AI Engineering / Working with LLMs
- Synchronous API Calls vs Web UI InteractionSlides / Video
- Basic Error Handling for LLM APIsSlides / Video
- Token Usage and Cost in API ResponsesSlides / Video
- Extracting Generated Text from a ResponseSlides / Video
- Understanding the API Response StructureSlides / Video
- Common Request Parameters ExplainedSlides / Video
- Selecting a Model in the API RequestSlides / Video
- Structuring Request Messages with RolesSlides / Video
- Installing and Setting Up a Provider SDKSlides / Video
- API Keys and Authentication BasicsSlides / Video
- What an LLM API Is and How It WorksSlides / Video
- REST API vs SDK ApproachesSlides / Video
- Synchronous vs Asynchronous API CallsSlides / Video
- API Pricing and Cost BasicsSlides / Video
- Rate Limits and QuotasSlides / Video
- Basic API Error HandlingSlides / Video
- Streaming vs Non-StreamingQuiz
- API Keys and AuthenticationQuiz
- Making a Basic API RequestQuiz
- Structure of a Chat Messages ArrayQuiz
- Message RolesQuiz
- Setting Max TokensQuiz
- Extracting the Completion TextQuiz
- Token Usage in the ResponseQuiz
- API Cost and Pricing BasicsQuiz
- Rate LimitsQuiz
- Handling API ErrorsQuiz
- Multi-Turn ConversationsQuiz
- Common Sampling ParametersQuiz
- Streaming vs Non-Streaming ResponsesSlides / Video
- Reading Token Usage from the ResponseSlides / Video
- Extracting Text from a ResponseSlides / Video
- Understanding the API Response ObjectSlides / Video
- Common Request ParametersSlides / Video
- Selecting a Model in the API CallSlides / Video
- Passing conversation historyCode Quiz
- Avoiding hardcoded keysCode Quiz
- Iterating a streaming responseCode Quiz
- Specifying the model parameterCode Quiz
- Message roles structureCode Quiz
- Reading the API key from envCode Quiz
- Importing the OpenAI clientCode Quiz
- Common Request ParametersQuiz
- Reading the API Response ObjectQuiz
- Understanding Token Usage in ResponsesQuiz
- Extracting Generated Text from a ResponseQuiz
- Structuring the Messages Array (roles)Quiz
- Authenticating SDK RequestsQuiz
- Making a Basic Chat Completion RequestQuiz
- API Pricing and Token-Based CostQuiz
- What an LLM API IsQuiz
- REST/HTTP Requests vs SDK WrappersQuiz
- Synchronous vs Asynchronous RequestsQuiz
- Handling API Errors and Status CodesQuiz
- Streaming vs Non-Streaming ResponsesQuiz
- Installing and Importing an LLM SDKQuiz
- Rate Limits and QuotasQuiz
- Keeping API Keys SecureQuiz
- Obtaining and Using API KeysQuiz
- Setting max_tokens / Output LengthQuiz
- Setting the Temperature ParameterQuiz
- Selecting a Model in an API CallQuiz
- Messages Array and Role FieldsSlides / Video
- Structure of a Chat Completion RequestSlides / Video
- Making Your First API CallSlides / Video
- Setting the System MessageFlashcard
- Synchronous vs Streaming CallsFlashcard
- Extracting the Generated TextFlashcard
- Making Your First API CallFlashcard
- What an SDK IsFlashcard
- Latency ConsiderationsFlashcard
- Provider and Model SelectionFlashcard
- Chat vs Legacy CompletionsFlashcard
- REST API vs SDKFlashcard
- Rate LimitsFlashcard
- Token Usage FieldFlashcard
- Keeping API Keys SecretFlashcard
- Retries and TimeoutsFlashcard
- Streaming Responses BasicsFlashcard
- Pricing and Cost per TokenFlashcard
- API Response Object StructureFlashcard
- Installing a Provider SDKFlashcard
- Extracting the response textCode Quiz
- Sending conversation historyCode Quiz
- Specifying the modelCode Quiz
- Reading token usageCode Quiz
- Importing the OpenAI SDKCode Quiz
- Handling API errorsCode Quiz
- Structuring the messages arrayCode Quiz
- Basic chat completion callCode Quiz
- Initializing the clientCode Quiz
- Limiting output lengthCode Quiz
- Sync vs async client methodsCode Quiz
- Consuming a streaming responseCode Quiz
- Reading the key from envCode Quiz
- Installing and Setting Up an LLM SDKSlides / Video
- Keeping API Keys Secure with Env VarsSlides / Video
- API Keys and AuthenticationSlides / Video
- API Keys and AuthenticationFlashcard
- REST API vs Official SDKFlashcard
- API Pricing and Cost per TokenFlashcard
- Parsing the Response ObjectFlashcard
- Provider-Specific DifferencesFlashcard
- Installing an LLM SDKFlashcard
- Top-p and Sampling ParametersFlashcard
- Token Usage in ResponsesFlashcard
- Handling API ErrorsFlashcard
- Retries and Exponential BackoffFlashcard
- Sync vs Async API CallsFlashcard
- System Prompt via APIFlashcard
- Multi-Turn ConversationsFlashcard
- What an LLM API IsFlashcard
- max_tokens ParameterFlashcard
- Specifying the Model ParameterFlashcard
- Securing Keys with Env VariablesFlashcard
- Completion vs Chat EndpointsFlashcard
- Rate Limits and QuotasFlashcard
- Streaming ResponsesFlashcard
- Basic Chat Completion RequestFlashcard
- Stop SequencesFlashcard
- What an LLM API IsSlides / Video