For Teachers and Admins
Generative AI (GenAI) lets you bring large language models into your course in a controlled, budgeted way. There are two broad reasons to do this. The first is to give learners AI tutors and learning tools that support their work in any subject. The second is to give learners who are studying AI engineering or machine learning direct, budgeted access to GenAI API keys that they can call from their own code.
This article explains what GenAI enables in Vocareum lab environments, how Vocareum routes AI requests so that access stays scoped and budgeted, which lab types support GenAI API key generation, and what each AI learning tool in Vocareum Notebook does. It is written for instructors and admins who want to understand the model before configuring it.
This is an explanation article, not a procedure. For the steps to turn these features on in an assignment, refer to Configuring GenAI in an Assignment. For how admins grant a course or a person access to GenAI in the first place, refer to Provisioning GenAI Access. For the org-level setup that underpins all of this, refer to What is Vocareum GenAI Gateway?.
Before GenAI is available in any of your assignments, it must be configured at the organization level and enabled for your course by an admin at your institution.
How GenAI Access Is Routed
The core idea behind GenAI in Vocareum is that learners and instructors never hold your organization's provider credentials directly. Your institution stores its real provider API keys (for services such as OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, Amazon Nova, or a custom deployment) once, at the organization level. Those org-level credentials are never exposed in a lab.
Instead, when GenAI is enabled, Vocareum issues each user a scoped, budgeted GenAI API key in their lab environment. This per-user key is not the provider's key. It is a Vocareum-issued credential that authorizes that one user to make AI requests within the limits you have set.
Every request made with a Vocareum-issued key travels through the Vocareum GenAI Gateway before it reaches the provider. The Gateway performs the following steps for each request:
It records and validates the request, enforcing key expiration and budget limits.
It adds any appropriate context, such as custom prompts.
It routes the request to the AI service using your organization-level provider credentials.
It records the response and returns it to the user.
Because every request passes through this single point, the Gateway is what makes budget enforcement, key expiration, and usage tracking possible. If a user reaches their allotted budget, or if their key has expired, the request stops at the Gateway and never consumes your provider account. Usage is tracked per key, so you can account for spend at the level of a course, a group, or an individual.
A single Vocareum-issued key can provide access to multiple language models across several services at once, depending on the policy applied to it. The same key might reach models hosted by OpenAI, Anthropic, Gemini, Azure, Amazon Nova, or a custom large language model deployment, without the user ever handling a provider credential.
This routing model is what distinguishes Vocareum GenAI from handing out raw provider keys. It keeps your organization's credentials private, caps spend before it happens, and gives you a complete record of how AI is being used in your courses.
Lab Types That Support GenAI API Key Generation
GenAI API key generation is supported in the following Vocareum lab types:
Vocareum Notebook — a Jupyter environment for computer science, data science, and AI education.
Visual Studio Code — the Visual Studio Code IDE for development and web-based curricula.
JupyterLab — labs that use JupyterLab as the IDE for data science and AI curricula.
Document — a lab type for pairing instructional content, in the form of a README file, with cloud or GenAI resources, for cases that do not need a full lab environment such as Vocareum Notebook.
When GenAI is enabled for an assignment, each user receives their own scoped GenAI API key in their lab environment, as described in How GenAI Access Is Routed. Learners can use that key through the AI learning tools or copy it to call AI services directly from their own code.
The key and its corresponding base URL are also made available to code through environment variables that are pre-populated in the learner work area. This article does not reproduce those variable names. For the exact environment variable for each service, refer to GenAI Environment Variables Reference.
AI Learning Tools in Vocareum Notebook
The AI learning tools described below are available only in Vocareum Notebook assignments. They are not available in Visual Studio Code, JupyterLab, or Document labs, which support GenAI API key generation but not these notebook-specific tools.
The tools are grouped as three top-level features that you turn on per assignment part once GenAI API key generation is enabled: the AI Assistant, Code Generation, and the Forum. The AI Assistant exposes several sub-options that build on it, described below. This article describes what each tool does and when to use it. For the steps to enable and configure them, refer to Configuring GenAI in an Assignment.
The AI Assistant
The AI Assistant is a customizable GenAI chatbot. Use it to give learners access to large language models for prompt engineering practice, or to provide a custom AI tutor tailored to your curriculum.
When the AI Assistant is on, learners open it from the left-side lab menu and converse with it. If your course has a customized assistant shared with it, that assistant is available in any assignment part where you turn the AI Assistant on. If no customized assistant is shared with the course, the assignment includes a default assistant, and learners choose from the models available for that assignment.
Reach for the AI Assistant when you want an open-ended conversational helper, whether that is a general tutor, a subject-specific guide, or a sandbox for practicing how to prompt a model.
Enabling the Assistant also unlocks a set of sub-options that extend what it can do and how it presents itself. These sub-options are not available on their own; each one requires the AI Assistant to be enabled first.
AI-Assisted Cells
AI-Assisted Cells is a capability of the AI Assistant, not a separate tool. It is enabled through a checkbox that appears once the AI Assistant is on, so offering in-cell help requires the AI Assistant to be enabled.
This adds a Get Help control to each cell of a Jupyter Notebook (.ipynb) file in the assignment. When a learner activates Get Help on a cell, an AI agent offers guidance and suggestions drawn from the context of that cell and the cells around it.
Use AI-Assisted Cells when you want learners to receive targeted, in-place help as they work through a notebook, without leaving the cell they are focused on. The tool explains and advises rather than writing code outright, which makes it well suited to guided practice where you want the learner to stay in the driver's seat.
Code Error Explanation
Code Error Explanation is another capability of the AI Assistant, enabled through its own checkbox once the AI Assistant is on. It lets learners request a plain-language explanation of an error in their code, so they can understand what went wrong rather than only receiving a raw error message.
Use Code Error Explanation when you want learners to build debugging skills with support, turning errors into teachable moments while keeping the learner responsible for the fix.
Rating and Presentation Options for the AI Assistant
The AI Assistant offers a few further sub-options that shape how learners experience it and how you gather feedback on it. Each requires the AI Assistant to be enabled.
Show Assistant Rating adds a thumbs up or thumbs down control to the assistant's responses, letting learners rate the quality of what the assistant produces. Use it when you want to gather feedback on how well the assistant is serving your learners, which can help you refine a custom assistant over time.
The AI Assistant can also be customized with an introduction message shown when a learner first opens it, a display name that learners see for the assistant, and a Default Assistant that pre-selects an assistant built in AI Studio for students. The Default Assistant option applies to Vocareum Notebook only. To build a custom assistant that you can offer as the Default Assistant, refer to Using AI Studio.
Code Generation
Code Generation adds a control to each cell of a Jupyter Notebook (.ipynb) file in the assignment. When a learner activates it, a prompt window opens where they can describe code to generate or changes to make to the code already in the cell. The Code Generation agent uses the context of the current and surrounding cells to inform what it produces.
Use this when you want learners to work with AI as a coding partner that can produce or revise code directly, for example in courses on AI-assisted development or when the learning goal is to evaluate and refine model-generated code rather than to write every line by hand. This feature is specific to Jupyter Notebook assignments in Vocareum Notebook.
Forum
The Forum adds a discussion space to Vocareum Notebook where learners and their teachers can discuss the responses produced by the AI Assistant or the Get Help agent. A learner can turn an AI interaction into a forum thread, and both learners and teachers can reply within the Forum panel in their lab.
Use the Forum when you want AI-assisted work to feed into human discussion, for example to surface common misconceptions, to let an instructor weigh in on an AI response, or to build a shared record of how a class is reasoning through AI output.
Related Articles
For the procedures and references that accompany this overview, refer to the following articles:
Configuring GenAI in an Assignment — the step-by-step process for enabling GenAI API key generation and the AI learning tools in an assignment.
Provisioning GenAI Access — how admins grant GenAI access to a course, a group, or an individual.
GenAI Environment Variables Reference — the environment variable names that hold each service's API key and base URL inside a lab.
What is Vocareum GenAI Gateway? — the org-level module that stores provider credentials, applies policies, and tracks usage.
