Course: AI through APIs
Integrate models into your applications through network calls, reliably and securely.
- Duration
- 14 hours (2 days)
- Price
- β¬990 excl. VAT per participant
- Format
- Remote / on-site
- Level
- Intermediate
Available formats
This course is offered in several formats, from an introductory webinar to an in-depth programme. The recommended format is highlighted.
Prices excl. VAT per participant, for guidance. Tailored quotes for in-company sessions and custom programmes.
Upcoming sessions
Book a place β- December 2026Monday December 14, 20269:30 AM Β· 14 hours (2 days)Book β
- January 2027Thursday January 14, 20279:30 AM Β· 14 hours (2 days)Book β
- February 2027Monday February 15, 20279:30 AM Β· 14 hours (2 days)Book β
- March 2027Monday March 15, 20279:30 AM Β· 14 hours (2 days)Book β
- April 2027Wednesday April 14, 20279:30 AM Β· 14 hours (2 days)Book β
- May 2027Friday May 14, 20279:30 AM Β· 14 hours (2 days)Book β
Remote or in-company sessions. Other dates are available on request.
A question before you decide? Book a video call on the date of your choice.
Learning objectives
By the end of the course, participants will be able to:
- βCall a language model through its API
- βManage keys, errors and rate limits securely
- βControl and monitor token-related costs
Target audience
Developers and technical people who want to integrate AI into an application.
Prerequisites
Being able to read and write a little code (JavaScript or Python) is recommended.
Detailed programme
Calling a model via API
Intermediateβ± 14 minModule 1 β How an API call to an LLM works
- Understand the request / response model: sending a prompt, receiving a completion over HTTP.
- Structure a request with the API key, the chosen model, a system prompt and a user prompt.
- Distinguish synchronous and streaming modes (response delivered token by token).
- Place the main providers (OpenAI, Anthropic) and the existence of multi-model gateways.
- Understand the role of parameters such as temperature and maximum output length.
Module 2 β API keys and security
- Generate and store an API key in environment variables, never hard-coded in the code.
- Never expose the key on the client side or in a public Git repository.
- Put key rotation and quotas in place per project or per environment.
- Restrict access and monitor usage to detect any key leak.
- Separate test and production environments with distinct keys.
Module 3 β Tokens and costs
- Understand the token as the unit of text splitting that is billed per call.
- Differentiate the billing of input tokens and output tokens, which have separate rates.
- Anticipate variability: two similar requests can have very different costs.
- Use prompt caching to reduce the cost of repeated contexts.
- Note that a tokenizer change between model versions can alter the number of billed tokens.
Module 4 β Errors and rate limits
- Understand rate limits, expressed in requests per minute (RPM) and tokens per minute (TPM).
- Handle the 429 code (too many requests), which can consume a quota slot even when the request is rejected.
- Implement exponential backoff and respect the Retry-After header provided by the API.
- Handle server errors (500, 503) with retries and logging.
- Plan delays and queues to smooth the load and stay under the limits.
Module 5 β Application integration
- Wrap calls in a service layer that isolates the application from the provider.
- Handle timeouts, retries and partial streaming responses on the application side.
- Set up observability: logs, cost metrics, error rate.
- Plan a fallback to another model or a degraded response in case of unavailability.
- Validate and sanitize outputs before display or storage for robustness and security.
Teaching methods
- βTheory illustrated with concrete, up-to-date examples
- βLive demonstrations on the tools covered
- βHands-on workshops and practice exercises
- βDigital course materials provided to each participant
Course flow and support
- βA phone call with your trainer
- βA skills-assessment questionnaire for participants
- βContent tailored to your real needs
- βCourse materials to keep
- βA recording (replay) of the session
- βAccess to our e-learning platform for 6 months
π Content updated every week
Generative AI moves fast. Our materials and e-learning platform are updated every week: you always learn on the latest models, tools and best practices, during and after the course.
Assessment methods
- βPlacement assessment before the training
- βPractical exercises and scenarios throughout the course
- βKnowledge-check quiz at the end of the training
- βImmediate satisfaction survey
- βCertificate of completion provided to each participant
Duration and format
Duration: 14 hours (2 days).
Remote training in a virtual classroom (video conference) or on-site in-company training. Small groups to encourage interaction.
Access terms and lead times
Registration is open until 11 business days before the start of the session, subject to availability. A placement interview takes place before the training begins.
Pricing
β¬990 excl. VAT per participant.
A tailored quote is provided for any in-company request.
Accessibility β disability
Our training courses are open to everyone. People with disabilities are invited to contact our disability officer so that we can work together on the necessary adaptations (teaching, equipment or organization).
Disability officer: contact@bricematter.com
Career outcomes and next steps
This training can be complemented by the other modules in the catalog to build a progressive generative AI learning path.
Contact and enrolment
To enrol or get a quote, email us at contact@bricematter.com.
Pre-registration
Book a place on the session of your choice. We then arrange a short call to prepare the course and help you with funding. No commitment.