programming · Level 2

Code for as little as possible: VS Code, OpenCode and app builders

What AI-assisted coding really costs, how to estimate it with a small calculator, and how free editors, an open-source agent, local models and paid app builders compare, with dated prices from the providers' own pages.

By Mickarle Wagstaff-Irons - Micky Irons

  • Level 2Getting going
  • 125 min
  • 6 chapters
  • Free PDF, no account
The Sequenceprogramming / 02

Start with the essentials

The short answer

AI-assisted coding can use subscription seats, per-token billing, app-builder credits or limited free tiers. Requests may include files and conversation history as well as your prompt. Estimate a month with a calculator, check the data terms and start without paid billing. Confirm which controls actually stop spending, then compare your estimate with real usage.

What you will learn

  • You will be able to explain the four ways AI-assisted coding is charged, and read a pricing page for its currency, period, unit, limits and data terms.
  • You will be able to estimate tokens and a monthly bill with a small offline Python calculator, and check its sums by hand.
  • You will know what a free editor route and an open-source terminal agent can cost, with a free model, your own key or a local model.
  • You will be able to price a local model honestly, counting electricity, hardware and time.
  • You will be able to judge when a paid app builder is worth its credits, and choose a route with a seven-step worksheet built on your own budget and task.

Who it is for

Beginners and small teams who code with AI help, or want to, and need to keep the cost as low as they honestly can. You need a computer that can run Python 3 for the calculator. None of the exercises needs an account, a payment method or any spending.

Before you start

  • Some experience of building a small program with an AI assistant, as in the Build your first app with an AI coding assistant workbook. You need Python 3 installed to run the calculator; the Python: from first script to a useful automation workbook shows how. No account, API key or payment method is needed.

Read a sample · Chapter 01 of 06

01

How AI coding is charged

Almost every tool charges in one of four ways. Learn to read them before you compare prices.

AI-assisted coding has two costs: the tool (editor, agent or app builder) and the model that writes the code. The tool is often free; the model is where bills come from.

Scroll sideways to see every column.

How AI coding is charged · Table 1
How you payWhat you are billed forWhat catches people out
Subscription seatA monthly fee per person, with an allowance.It can run out mid-month and often does not carry over.
Per token, on your own keyAn API key (a secret password for programs) lets a tool call a model provider, which bills every token.A looping agent can keep spending. Verify an enforced limit; alerts alone do not stop charges.
Credits in an app builderA monthly bundle for building, hosting and AI features.Messages cost different amounts.
Free tierA taster with limits.Limits change, and data terms may differ.

Prices move. Google's Gemini API pricing page (source 20, checked on 26 September 2026) lists Gemini 3.8 Flash at $0.75 per million input tokens and $3.75 per million output tokens until 31 December 2026, then $1.50 and $7.50. Limits can be hidden: Google's rate limits are shown in Google AI Studio, not on the page (source 21).

A worked reading. GitHub's Copilot documents (sources 1 to 3, checked on 26 September 2026) say:

  • Copilot Free: $0, 2,000 code completions a month, and AI credits of unstated size. Verified students can get the free Copilot Student plan.
  • Copilot Pro: $10 USD a month, with 1,000 base credits plus a 500-credit flex allotment that "may change over time". One credit is $0.01, spent on each request's tokens.
  • Credits reset at 00:00 UTC on the 1st and do not carry over. When they run out, you upgrade, set a budget for extra use, or wait.

Try it yourself · Activity 01

15 min

Read a pricing page like an auditor

Open the pricing page of an AI coding tool you are considering: the provider's own page, not a review.

  1. Note the date, the page's name and its address.
  2. Answer: (1) Currency, and is tax included? (2) Billing period? (3) Unit charged: seat, token, credit or message? (4) What the free tier includes and its limits? (5) What happens at a limit? (6) Does unused allowance carry over? (7) Are your inputs used to train or improve models?
  3. Write NOT STATED wherever the page is silent. Do not guess.

Which answer would have surprised you only after paying?

Worked answer

For GitHub Copilot (sources 1 to 5, 26 September 2026): (1) US dollars; tax NOT STATED. (2) Monthly. (3) A seat with AI credits ($0.01 each) spent on tokens at each model's rates. (4) 2,000 completions a month; credits NOT STATED. (5) Upgrade, set a budget, or wait. (6) No: reset on the 1st. (7) From 24 April 2026, Free, Pro and Pro+ interaction data trains GitHub's models unless you opt out.

Read a sample · Chapter 02 of 06

02

Tokens, and a calculator for your monthly bill

Per-token prices look tiny. A month of coding requests may not be. Estimate before you spend.

A token is a small piece of text a model reads or writes: about 4 characters for Google's Gemini models, and 100 tokens are about 60 to 80 English words (source 23). Other models differ; your usage page gives the true count. Prices are per million tokens, in three kinds:

  • Input: your prompt plus files, instructions and the conversation so far.
  • Cached input: input that qualifies for a cache hit under that provider's rules. Merely sending text recently does not ensure a hit.
  • Output: what the model writes, usually dearer per token.

Coding requests are big. v0 counts chat history and source files as input (source 33), and agent features can make several model calls per task (source 3). OpenCode's Go page (source 14) estimates a typical request for one model at 1,000 input, 50,000 cached and 220 output tokens, though usage varies. This workbook borrows that shape until you measure your own.

Build the calculator. Save this as plain text named costcalc.py, open a terminal in its folder and run python costcalc.py (or python3). It sends nothing anywhere.

python · 33 lines
# costcalc.py: estimate a monthly bill for AI-assisted coding.
# Offline, standard library only. Prices are per 1 million tokens,
# copied from the provider's own page, in that page's currency.


def request_cost(new_in, cached_in, out, p_in, p_cached, p_out):
    return (new_in * p_in + cached_in * p_cached + out * p_out) / 1_000_000


def month(label, per_day, days, tokens, prices, cur="USD"):
    one = request_cost(*tokens, *prices)
    total = one * per_day * days
    print(f"{label:<14} {one:.6f} per request x "
          f"{per_day * days} = {total:.2f} {cur} a month")
    return total


def electricity(watts, hours_a_day, days, pence_per_kwh):
    kwh = watts * hours_a_day * days / 1000
    return kwh, kwh * pence_per_kwh / 100  # kWh and pounds


if __name__ == "__main__":
    per_day, days = 60, 20          # your usage: an assumption
    shape = (1_000, 50_000, 220)    # new input, cached input, output tokens
    no_cache = (51_000, 0, 220)     # the same request, nothing cached
    a = (2.00, 0.20, 10.00)         # Price A, USD per 1M tokens
    b = (0.30, 0.006, 1.20)         # Price B, USD per 1M tokens
    month("A, cached", per_day, days, shape, a)
    month("A, no caching", per_day, days, no_cache, a)
    month("B, cached", per_day, days, shape, b)
    kwh, pounds = electricity(200, 2, 20, 26.32)
    print(f"Local model: {kwh:.1f} kWh, about {pounds:.2f} GBP a month")

With Python 3.12.10 on Windows 11 it printed:

text · 4 lines
A, cached      0.014200 per request x 1200 = 17.04 USD a month
A, no caching  0.104200 per request x 1200 = 125.04 USD a month
B, cached      0.000864 per request x 1200 = 1.04 USD a month
Local model: 8.0 kWh, about 2.11 GBP a month

The prices, in US dollars per million tokens, show a spread; they are not recommendations. Price A: Claude Sonnet 5 on Anthropic's pricing page (source 26, checked on 26 September 2026): $2 input, $0.20 cache hits, $10 output. Price B: deepseek-flash at peak times on DeepSeek's pricing page (source 24, checked on 26 September 2026): $0.30 input, $0.006 cache hits, $1.20 output.

Check line one by hand: 1,000 x 2 + 50,000 x 0.20 + 220 x 10 = 14,200; divided by a million, $0.0142 a request. Sixty requests on 20 days is 1,200, and 1,200 x 0.0142 = $17.04. The usage is an assumption, not a measurement.

In pounds (this workbook's own arithmetic; your bank sets its own rate): the European Central Bank's reference rates for 25 September 2026 (source 29) were 1.1403 dollars and 0.86045 pounds to the euro, so $1 = 0.86045 / 1.1403 = £0.7546, and $17.04 is about £12.86.

Try it yourself · Activity 02

20 min

Estimate a smaller project

Estimate a month for a smaller project by hand, then with the calculator.

  1. By hand, at Prices A and B: each request sends 1,000 new and 20,000 cached input tokens and gets 300 output tokens. You make 40 requests on each of 22 days. Find the cost per request and per month.
  2. In the calculator set per_day, days = 40, 22, shape = (1_000, 20_000, 300) and no_cache = (21_000, 0, 300). Run it and compare.
  3. Try your own numbers, noting where each came from.

Which number moved the total most?

Worked answer

880 requests. A: 1,000 x 2 + 20,000 x 0.20 + 300 x 10 = 9,000, so $0.009 a request and $7.92 a month. B: 300 + 120 + 360 = 780, so $0.00078 and $0.69 a month. The calculator agreed, and showed 39.60 USD with nothing cached. Model and caching matter more than a few extra requests.

Read a sample · Chapter 03 of 06

03

Route 1: a free editor with a free-tier assistant

A free editor plus a free allowance is a cheap start, if you know the limits and the data terms.

VS Code is Microsoft's code editor. Its FAQ (source 6, checked on 26 September 2026) says it is free for private or commercial use and needs no account for the core editor. The product has a Microsoft licence (source 7); its source code is MIT-licensed. Three ways to add AI, as published that day:

Scroll sideways to see every column.

Route 1: a free editor with a free-tier assistant · Table 2
OptionPriceLimits
Copilot Free$02,000 completions a month; chat and agent credits of unstated size; automatic model choice (sources 1, 3).
Copilot Pro$10 USD a month1,000 base plus 500 flex credits, unlimited completions; extra use at the listed token rates if you set a budget (sources 3, 4).
Bring your own key (BYOK) or a local modelThe provider's prices, or electricityChat and agents need no GitHub account or plan; inline suggestions, semantic search and embeddings still need Copilot (sources 6, 9).

What leaves your computer. Telemetry is on by default in Copilot's free version; set telemetry.telemetryLevel to off to stop it (source 8). From 24 April 2026, Copilot Free, Pro and Pro+ inputs, outputs and code context train GitHub's models unless you opt out under Privacy in your Copilot settings (source 5). With your own key the provider's terms apply (source 8); a local model can run offline (source 9).

Subscription or own key? GitHub prices Claude Sonnet 5 at Price A's rates (source 4, checked on 26 September 2026), and base credits match the subscription price (source 3). So $10 of base credits buys about what $10 on your own key would. The extra is the flex allotment, unlimited completions and a 10% discount with automatic model selection (source 3).

Try it yourself · Activity 03

15 min

How far does an allowance go?

Take chapter 2's request at Copilot's Claude Sonnet 5 rates: $0.0142 a request, ignoring cache writes.

  1. How many whole requests fit in Pro's 1,000 base credits ($10), and in all 1,500 ($15)?
  2. For 1,200 requests a month with a budget set, what does Pro cost? And with no flex allotment?
  3. What can you work out for Copilot Free?

What would you check on your usage dashboard after a week?

Worked answer

10.00 / 0.0142 = 704.2, so 704; 15.00 / 0.0142 = 1,056.3, so 1,056. 1,200 requests use $17.04 of credits; $15.00 is included, so the month costs $10.00 + $2.04 = $12.04. With no flex: $17.04, the same as Price A on your own key. Copilot Free: only the 2,000 completions are known; read its credit allowance from your dashboard.

Read a sample · Chapter 04 of 06

04

Route 2: OpenCode with a free model, your own key or a local model

An open-source agent for your terminal. The agent costs nothing; the model behind it might.

OpenCode is an MIT-licensed coding agent for the terminal, desktop or an editor (source 16). Its home page (source 10, checked on 26 September 2026) says it is "100% free to use", with some free models; other providers may cost more. Your options, checked that day:

Scroll sideways to see every column.

Route 2: OpenCode with a free model, your own key or a local model · Table 3
Model sourceHow you payWatch out for
OpenCode's free modelsNothing, for a limited time (source 13)Some may use your data to improve the model during the free period.
OpenCode ZenUS dollars per million tokens, plus card fees of 4.4% + $0.30 a transaction (source 13)Auto-reload tops up $20 when the balance falls below $5 unless you change or disable it.
OpenCode Go$10 a month (source 14)Each model has a monthly dollar limit, with 5-hour and weekly caps.
Your own key, or a local modelThe provider's prices, or electricityKeys added with /connect sit in a file in your home folder (source 12): guard it.

Sharing a session makes a public link and copies it to OpenCode's servers; it is manual by default and can be disabled (source 15).

A model on your own computer. Tools such as Ollama (MIT-licensed, source 19) run open-weight models, whose trained weights you can download; OpenCode can connect to one (source 12). Ollama's pricing page says running models on your own hardware is always unlimited (source 17). Unlimited is not free:

  • Hardware: the model must fit your memory; the GPU memory maths workbook shows how to check.
  • Context: Ollama defaults to 4,096 tokens (source 18); OpenCode suggests 16k to 32k if tool calls fail (source 12), which needs more memory.
  • Time: a local model may be slower. Time a real task.
  • Electricity: kWh (kilowatt hours) = watts x hours / 1,000, times your price per kWh.

Ofgem's cap for 1 October to 31 December 2026 (source 28, checked on 26 September 2026) averages 26.32 pence per kWh for electricity by Direct Debit on a standard variable tariff in Great Britain, with no VAT. The calculator's last line assumes an extra 200 watts for 2 hours on 20 days: 8 kWh x 26.32 = 210.56 pence, about £2.11. Measure your own machine with a plug-in energy monitor.

Try it yourself · Activity 04

15 min

Price a local model honestly

Work out a month of electricity for a local model, then list what that leaves out.

  1. By hand: 90 extra watts, 3 hours a day, 22 days, 26.32 pence per kWh. Find the kWh and the cost.
  2. Change electricity(200, 2, 20, 26.32) to electricity(90, 3, 22, 26.32), run and compare.
  3. List two costs the figure leaves out.

When would a paid model be cheaper than your time?

Worked answer

90 x 3 x 22 / 1,000 = 5.94 kWh; 5.94 x 26.32 = 156.34 pence, about £1.56. The calculator printed Local model: 5.9 kWh, about 1.56 GBP a month (kWh rounded to one decimal). Left out: the hardware and its wear, waiting for slower answers, setting up and updating models, and extra rounds if answers are weaker. The electricity is small; time and hardware usually are not.

Read a sample · Chapter 05 of 06

05

Paid app builders: how they charge and when they pay off

App builders turn a description into a running, hosted app. You pay for the convenience in credits or tokens.

An app builder generates a whole app from a description and hosts it. Four, alphabetically, checked on 26 September 2026. Retained dollar prices are US dollars; a regional Lovable subscription quote was not confirmed:

Scroll sideways to see every column.

Paid app builders: how they charge and when they pay off · Table 4
Builder (source)Free planFirst paid planWhat is consumed
Bolt (30)300,000 tokens a day, 1 million a monthPro, $25 a month billed monthly: from 10 million tokens a monthTokens; bigger projects use more per message.
Lovable (31)5 build credits a day, up to 30 a monthPro: check the currently displayed price for your region and billing period. A paid quote was not confirmed in this review.Credits that vary with task complexity.
Replit (32)None listed on the pricing pageCore: $18 per month billed annually shown in the retrieved page, with $20 of credits. Verify the monthly option separately.Credits; the longer the agent works, the more it spends.
v0 (33)$5 of credits a month, 7 messages a dayPlus: $30 per user per month shown. Check the current offer, renewal price and tax before paying.Tokens, with history and files as input.

Credits vary per task. Lovable's FAQ (source 31) gives examples: "Make the button gray" 0.50 credits, "Remove the footer" 0.90, sign-up and login 1.20, a landing page with images 1.70. Daily free credits expire each day.

A builder can pay off when you need a hosted prototype fast, would otherwise pay separately for hosting and a database, or value the time saved above the fee. It is weaker as a project grows (Bolt says bigger projects use more tokens per message), when you iterate a lot, or when the code must run elsewhere: check ownership and export. Lovable says you own your code, subject to third-party rights in the models (source 31); check each provider's spending controls and whether they actually stop further charges, including hosting costs.

Wiring it yourself means a free editor, an assistant from chapter 3 or 4, and your own hosting, as in the Build and launch a website with AI workbook.

Try it yourself · Activity 05

15 min

Will the free credits cover your build?

Plan a small build with Lovable's published example costs and test it against the free limits.

  1. Add up: one landing page with images (1.70 credits), sign-up and login (1.20), four medium changes (0.90 each), twelve small tweaks (0.50 each).
  2. The free plan gives 5 credits a day, up to 30 a month, and each day's credits expire. At least how many days does it take, and does it fit one month?
  3. v0's free plan allows 7 messages a day. What is the most in a 30-day month?

What would make real costs differ from the examples?

Worked answer

1.70 + 1.20 + 3.60 + 6.00 = 12.50 credits: at least 3 days (5 + 5 + 2.50), and under the 30-credit monthly cap, so on paper it fits. v0: 7 x 30 = 210 messages at most, before its $5 of credits is counted. Real costs differ: credits vary with complexity, fixes take several tries and prices change.

Read a sample · Chapter 06 of 06

06

Choose by budget and task: the worksheet

Decide with your own numbers, data and hardware, not a headline price.

These exercises are offline and need no sign-up. If you are under 18, work through them with an adult or teacher and check the age and account conditions of any online service before trying it. A student discount does not by itself establish eligibility to open an account.

  1. Name the task and its size: a one-page tool, an app with logins, or a large codebase?
  2. Set a monthly cap you could lose without harm.
  3. Decide what may leave your computer. If nothing, only a local model fits. Never paste secrets or other people's personal data.
  4. Check your hardware if a local model is an option.
  5. Price two routes with the calculator, using prices you copied, dated.
  6. Check spending controls first: confirm whether a budget actually stops requests or only sends an alert. Turn auto-reload off and set alerts. If there is no enforceable limit within your budget, keep to a route with no paid billing attached.
  7. Review after a week against the usage page; change route if needed.

For step 3, the terms read on 26 September 2026 say:

Scroll sideways to see every column.

Choose by budget and task: the worksheet · Table 5
RouteWhere your code goesTraining use, as published
Copilot Free, Pro, Pro+GitHubTrains GitHub's models unless you opt out (source 5).
Gemini API free tierGoogleUsed to improve Google's products, with human review; but in the UK, EEA and Switzerland the paid terms, which exclude this, apply (source 22).
Anthropic APIAnthropicNot used for training by default (source 27).
DeepSeek APIDeepSeek; its privacy policy says personal data is stored in China (source 25)The policy lists model training among its uses; opting out may depend on where you live.
OpenCode ZenUS-hosted providersOpenCode states no model training or provider retention for its listed US-hosted models, with explicit exceptions for some free models (source 13).
Local modelInference can stay on the device in an offline setup; check the editor, extensions, tools and sharing separatelyNot applicable (source 9).

Try it yourself · Activity 06

20 min

Fill in the worksheet

Amina, a student in Leeds, has £5 a month to spare and a laptop with 8 GB of memory. She will build the bill splitter from the previous workbook, with about 30 requests on each of 10 evenings. Her code holds no personal data.

  1. Answer the seven steps for Amina, pricing two routes with chapter 2's request shape and per_day, days = 30, 10.
  2. Repeat for your own project.

Which step would you have skipped, and at what cost?

Worked answer

1. One small page. 2. £5. 3. The code may leave her laptop; she opts out of training where she can. 4. 8 GB is tight: she checks with the GPU memory maths method first. 5. 300 requests: the calculator printed 4.26 USD a month for A (about £3.21 at £0.7546 to the dollar) and 0.26 for B; Copilot Free or an OpenCode free model cost $0. 6. No card to start; if paying, a budget and auto-reload off. 7. After a week, real usage against 300 requests. The token-only estimate for Price B is below the budget, but minimum top-ups, fees and data terms could still rule it out. A genuinely unbilled free route avoids that spend; Price A leaves little room for tax or fees.

Keep learning

The complete workbook

This workbook shows how AI coding tools charge, how to turn per-token prices into a monthly figure with a small offline Python calculator, and what the low-cost routes really cost: a free editor with a free-tier assistant, an open-source terminal agent with a free model, your own key or a local model, and paid app builders. The retained prices were checked against the providers' own pages on 26 September 2026 and are dated. Where a price could not be confirmed, the workbook says so. It ends with a seven-step worksheet so you choose by your own budget and task, not by hype.

  1. 01
    How AI coding is charged

    Almost every tool charges in one of four ways. Learn to read them before you compare prices.

    Read here · 1 exercise
  2. 02
    Tokens, and a calculator for your monthly bill

    Per-token prices look tiny. A month of coding requests may not be. Estimate before you spend.

    Read here · 1 exercise
  3. 03
    Route 1: a free editor with a free-tier assistant

    A free editor plus a free allowance is a cheap start, if you know the limits and the data terms.

    Read here · 1 exercise
  4. 04
    Route 2: OpenCode with a free model, your own key or a local model

    An open-source agent for your terminal. The agent costs nothing; the model behind it might.

    Read here · 1 exercise
  5. 05
    Paid app builders: how they charge and when they pay off

    App builders turn a description into a running, hosted app. You pay for the convenience in credits or tokens.

    Read here · 1 exercise
  6. 06
    Choose by budget and task: the worksheet

    Decide with your own numbers, data and hardware, not a headline price.

    Read here · 1 exercise

Also inside: a 9-point checklist, a glossary of 11 terms and 10 questions and answers to test yourself. 6 hands-on exercises, each with a worked answer at the back where the workbook gives one.

No login, no card, no account. Before the download we ask you to follow Mickai (two quick links). Free to download and use for personal learning, study groups and inside your own team. Please do not resell the workbooks or republish them as your own. Link people to trust-agent.ai instead.

Test yourself

Questions and answers

Is VS Code really free?

Microsoft's FAQ says VS Code is free for private or commercial use, under a Microsoft product licence; its source code is MIT-licensed. The AI features are separate. Copilot Free adds 2,000 completions a month and an allowance of credits whose size GitHub's pages did not state on 26 September 2026. You can also use your own key or a local model for chat and agents, without a Copilot plan.

Is OpenCode free?

Its site says OpenCode is 100% free to use, and it is MIT-licensed. The models behind it may not be: its free models are free for a limited time, and some may use your data to improve them during that period. Otherwise you pay a provider per token, pay $10 a month for OpenCode Go, or run a local model at the cost of hardware, electricity and time.

What is a token, and how many will I use?

A token is a small piece of text; Google says about 4 characters for its Gemini models. Coding tools send much more than you type, including files and conversation history, and agents can make several model calls per task. OpenCode estimates one typical request at 1,000 input, 50,000 cached and 220 output tokens. Measure your own on the provider's usage page.

Can I use AI for coding with no money at all?

The exercises need no paid service. You can start with an editor and an available free AI allowance, or a local model on suitable existing hardware. Free tiers have limits and may change their data terms. Confirm that extra paid usage and automatic top-ups are disabled; having no new card attached is not proof that an existing account cannot bill you.

Is running a model on my own computer free?

There is no per-token bill, but it is not free: you pay in hardware, electricity and time. At Ofgem's average cap of 26.32 pence per kWh for October to December 2026, an assumed extra 200 watts for 2 hours on 20 days is 8 kWh, about £2.11. The model must also fit your memory, and it may be slower than a hosted one.

Should I pay for a subscription or use my own API key?

Compare them with your measured usage. GitHub's base credits match its subscription price; flex credits, completions and discounts can add value. An API key may allow spending beyond an allowance. Check whether the provider enforces a spending limit, because an alert alone does not stop charges. Price both routes with the calculator and leave extra paid usage disabled until you choose a budget.

When is a paid app builder worth it?

When you need a hosted prototype quickly, would otherwise pay separately for hosting and a database, or value the time saved above the fee. It is weaker for large projects, many iterations, or code you must run elsewhere. Builders charge by tokens or credits whose cost varies per message, so plan with their published examples and watch each message's cost.

Will my code be used to train AI models?

It depends on the product, region and plan. Check current terms and opt-out settings before sending code. The workbook records policies checked on 26 September 2026. Fully offline inference can keep model inputs on your computer, but the editor, extensions, tools and sharing features may still send data. A local model alone is not proof that the whole workflow is offline.

How do I stop an AI tool running up a big bill?

Before you start, set a hard monthly budget where the provider offers one, turn off automatic top-ups and switch on spending alerts. Start with a cheaper model and check the usage page after a day and after a week. Remember that one agent task can make several model calls, and that caching can change a month's cost several times over.

Most prices are in dollars. What will I pay in pounds?

Your card issuer converts at its own rate and may add a fee, and some prices exclude VAT. For a rough figure, use a published reference rate and show your working. On 25 September 2026 the European Central Bank's rates gave $1 = 0.86045 / 1.1403 = £0.7546, so $17.04 was about £12.86. Recheck the rate on the day you pay.

When you have finished

Get your certificate of completion

Type your name and download a certificate for this workbook as a PDF, ready to print or to add to LinkedIn. It is made on your own device, so your name is never sent to us. It is a self-declared certificate, not an accredited qualification.

Learn the language

Key terms

Token
A small piece of text a model reads or writes. Google says about 4 characters for its Gemini models; other models differ.
Input tokens
Everything sent to the model in a request: your prompt plus files, instructions and earlier conversation.
Output tokens
The text the model writes back. Usually priced higher per token than input.
Cached input
Input a provider has recently processed and charges less for when it is sent again. Some providers also charge to write or store the cache.
API key
A secret string that lets a program use a provider's service and bills your account. Guard it like a password.
BYOK
Bring your own key: using a tool with your own account at a model provider, so the provider bills you directly.

6 of the workbook's 11 terms. The complete glossary is in the workbook.

Follow the evidence

Sources and checks

Facts last checked: .

Examples in this workbook were run on: Python 3.12.10 on Windows 11; the calculator and exercise variants were run offline in an isolated folder. No accounts, keys, model calls or payments were used. (2026-09-26).

These workbooks use AI assistance. See how the workbooks are made.

  1. Plans for GitHub CopilotGitHub Docs
  2. GitHub Copilot: Plans and pricingGitHub
  3. Usage-based billing for individualsGitHub Docs
  4. Models and pricing for GitHub CopilotGitHub Docs
  5. Updates to GitHub Copilot interaction data usage policyThe GitHub Blog
  6. Visual Studio Code FAQMicrosoft
  7. License: Visual Studio CodeMicrosoft
  8. Set up GitHub Copilot in VS CodeMicrosoft
  9. AI language models in VS CodeMicrosoft
  10. OpenCode: The open source AI coding agentAnomaly (OpenCode)
  11. IntroOpenCode documentation
  12. ProvidersOpenCode documentation
  13. ZenOpenCode documentation
  14. GoOpenCode documentation
  15. ShareOpenCode documentation
  16. anomalyco/opencode repository (MIT licence)GitHub
  17. PricingOllama
  18. FAQOllama documentation
  19. ollama/ollama repository (MIT licence)GitHub
  20. Gemini Developer API pricingGoogle AI for Developers
  21. Rate limitsGoogle AI for Developers
  22. Gemini API Additional Terms of ServiceGoogle AI for Developers
  23. Understand and count tokensGoogle AI for Developers
  24. Models and PricingDeepSeek API Docs
  25. DeepSeek Privacy PolicyDeepSeek
  26. PricingClaude Platform Docs (Anthropic)
  27. Is my data used for model training?Anthropic Privacy Center
  28. Changes to energy price cap between 1 October and 31 December 2026Ofgem
  29. Euro foreign exchange reference ratesEuropean Central Bank
  30. Plans and pricingBolt
  31. Lovable PricingLovable
  32. Pricing and PlansReplit
  33. Plans and Pricingv0 by Vercel

Created by Mickarle Wagstaff-Irons - Micky Irons with the Mickai team. Published by Mickai LTD. Last updated 27 September 2026.

NextKeep going

Where to go next