0Pricing
NLP Academy · Lesson

Calling an LLM From Python

Send prompts and parse responses.

Talk to a Model in Code

You do not run giant models on your laptop. Instead you send text to a hosted model over an API and get a reply back. 🌐

Install a Client

Most providers ship a Python client library so you can call the model with a few clean lines instead of raw HTTP.

pip install openai

All lessons in this course

  1. What Makes a Model Large
  2. Calling an LLM From Python
  3. Zero-Shot and Few-Shot Prompting
  4. Structured Output and Guardrails
← Back to NLP Academy