Working with LLM APIs in Depth
Messages and roles, the key generation settings, tokens and cost estimation, prompt caching, streaming, structured outputs with JSON Schema and Pydantic, and tool use from the developer's side.
Part of AI Engineering, module 1: How AI Applications Are Built
What you will learn
- Task 1: Messages, roles and statelessness
- Task 2: The settings that shape the output
- Task 3: Tokens, cost and prompt caching
- Task 4: Streaming and structured outputs
- Task 5: Tool use from the developer's side
Key terms in this lesson
- Input tokens
- JSON Schema
- Output tokens
- Prompt caching
- Pydantic
- Stateless
- Stop sequences
- Streaming
- Structured output
- Temperature
- Time to first token
- Tool call
Start learning free
This lesson is part of the Professional plan. Create a free account to start with the free lessons first.