Deploying Models with FastAPI

Serve machine learning models through REST APIs, package them with Docker, and prepare for cloud deployment.

IntermediateCertificate

New courseUpdated October 2026English

Part of Data Scientist with Python · Course 1 of 16

USD 8

Pay once for 3 months, or get every course with Yiga Plus from USD 10 a month.

Buy this course · USD 8
  • Pay with MTN MoMo, Airtel Money, M-Pesa or card
  • Learn on phone or laptop
  • Certificate of completion
  • Data saver for low data: words without sound, light pictures
Training 5 or more people? Get Yiga for Business

What you'll learn

  • Build REST endpoints for model predictions with FastAPI.
  • Define the inputs and outputs of a prediction request.
  • Serialise model inputs and prediction outputs for API exchange.
  • Test API requests and inspect responses.
  • Package a model serving application with Docker.
  • Deploy a containerised prediction API to a cloud environment.
  • Combine API development and deployment in a graded project.

Skills you'll gain

This course includes

  • 14h of video
  • 16 lessons
  • 4 quizzes
  • 1 project
  • AI tutor
  • Certificate of completion
  • Learn on your phone or computer

Curriculum

4 modules · 21 lessons · 14h total
  • Overview and set up40m
  • Core concepts40m
  • Worked example40m
  • Hands on practice40m
  • Module quiz: REST APIs20m

Projects

Graded project: Deploying Models with FastAPI

Apply everything from Deploying Models with FastAPI in one graded, portfolio ready build.

Requirements

  • A computer with permission to install Python, Docker, and development tools.
  • Working knowledge of Python, including functions, packages, and running scripts.
  • Basic experience training or using a machine learning model.
  • Internet access for lessons, software downloads, and cloud deployment practice.

Description

Learn how to turn a machine learning model into an API with FastAPI. This intermediate Data course covers REST APIs, serialisation, Docker, and cloud deployment, connecting model code to a service that other applications can call. Each module includes set up, core concepts, a worked example, hands on practice, and a topic quiz. Practise handling prediction requests, preparing model inputs and outputs for exchange, and packaging your application for deployment. Bring these steps together in the graded project: Deploying Models with FastAPI. The focus is on moving beyond a model running locally to a prediction service that can be deployed and tested.

Who this course is for

  • Data scientists who want to make model predictions available through an API.
  • Python developers adding machine learning features to applications.
  • Data analysts with Python and modelling experience who want to learn deployment.
  • Computing students in Uganda, Kenya, Tanzania, Rwanda, or Nigeria who have built a model and want to serve it.

Career outcomes

Frequently asked questions

Will I receive a certificate?

Yes. Deploying Models with FastAPI ends with a Yiga certificate of completion. Finish every lesson, and it appears under Certificates with a link anyone can use to check it is real.

How long will I have access to the course?

Check the access terms shown when you enrol. Contact support if the access period or rules for revisiting lessons are unclear.

Can I study offline or with limited data?

Check whether Yiga AI offers downloadable materials or low data viewing for this course. Do not assume all lessons work offline. Software downloads and cloud deployment practice require internet access.

Can I pay with MTN MoMo, Airtel Money, M-Pesa, or a card?

Check the payment options displayed at checkout for your country. Availability of MTN MoMo, Airtel Money, M-Pesa, or card payments may vary; contact support if your preferred option is not listed.

How do I request a refund?

Contact Yiga AI support to ask about refunds and the policy that applies to your enrolment.

Tree Based Models & Gradient Boosting cover illustration

Tree Based Models & Gradient Boosting

Build and compare decision trees, Random Forest, XGBoost and LightGBM models for tabular data.

Yiga AI

CourseNew
14 total hours16 lessonsIntermediate
Natural Language Processing cover illustration

Natural Language Processing

Turn text into useful features with tokenisation, TF IDF, sentiment analysis and an introduction to transformers.

Yiga AI

CourseNew
16.7 total hours20 lessonsIntermediate
Unsupervised Learning cover illustration

Unsupervised Learning

Find patterns, group similar records, reduce dimensions, and spot unusual data without labelled answers.

Yiga AI

CourseNew
14 total hours16 lessonsIntermediate
Experiment Design & A/B Testing cover illustration

Experiment Design & A/B Testing

Plan A/B tests, estimate sample sizes, analyse results, and report findings clearly.

Yiga AI

CourseNew
14 total hours16 lessonsIntermediate

Deploying Models with FastAPI

USD 8