OpenAI API from A to Z
A complete course on the OpenAI API for developers: Chat Completions, model selection (gpt-4o, o1/o3), tokens and cost, structured outputs, vision and audio, Assistants API v2, function calling, streaming, embeddings, and production patterns. Real TypeScript and Python code with current parameter names (2025).
API Basics
Installing the SDK, your first Chat Completions call, choosing a model for the task and budget, counting tokens and cost.
Chat Completions
System messages and sampling, structured outputs with a strict schema, gpt-4o multimodality: vision, Whisper, TTS.