Modern GenAI Landscape
After this lesson, you will be able to:
- Name the kind of output a job needs (image, video, audio, 3D or code) and know what to check for each kind
- Tell an open model (you can download it and run it yourself) from a closed one (you rent it by the request), and say what each choice costs you
- Weigh cost, delay and quality against each other with the six-axis rubric, and find the volume at which running your own GPU beats paying per image
- Read a licence for the three questions that matter: who may use it, for what, and what it says about the outputs
- Test a claim of the form 'model X is better' on your own prompts, and recognise the building blocks that published open models share
Before you start
The short request you give a model, usually a sentence of text, sometimes with a reference image.
A kind of output: image, video, audio, 3D object or code.
A model whose learned numbers you can download and run on your own machine.
A web address you send a request to and get an answer back; the maker runs the model and charges you per request.
The wait between sending a request and getting the result.
The written rules that say who may use a model or its outputs, and for what.
A fixed set of test prompts and a scoring rule, used to compare models on the same ground.
The monthly volume at which running your own GPU costs the same as paying per request.
- What kind of output do I need? Image, video, audio, 3D and code each have their own checks.
- Open or closed? Can you download the model, or do you rent it by the request?
- What is the cost, delay and quality trade-off? Better results usually cost more money or more waiting.
- What does the licence allow? Read it before you test anything else.
- How do I test the claim? Use your own prompts, not the maker's demo.
#The Model Zoo, Mapped
#One prompt, four pipelines
The same sentence can start four very different jobs. The viz below sends one prompt down the standard pipeline for each kind of output. All four start by turning the words into numbers, then they split.
- Do: Pick each kind in turn (image, video, audio, 3D) and press Next to walk through its pipeline.
- Notice: The first stage is shared. After it, each kind has its own middle stages and its own final output.
- Why: Pictures, sound and shapes are stored differently, so each needs its own decoder. This is a drawn guide to the standard design, not a trained model.
#Product facts, as of Oct 2026 (verify before relying)
This is the only place the lesson states facts about named products. Each row is limited to what is well established and may have changed since. Check the maker's own page before you decide. If a product or detail is missing here, the lesson makes no claim about it.
| Product | Maker | Fact | Why it matters |
|---|---|---|---|
| FLUX.1 [schnell] | Black Forest Labs | Open weights under the Apache 2.0 license, which allows commercial use | The most permissive of the three FLUX.1 variants |
| FLUX.1 [dev] | Black Forest Labs | Open weights under a non-commercial license; read the text for what it says about using the outputs | Weights you may not run in a paid product without a separate agreement |
| FLUX.1 [pro] | Black Forest Labs | Available through an API only, with no downloadable weights | You cannot self-host it |
| Stable Diffusion 3.5 | Stability AI | Open weights under the Stability AI Community License, free below a revenue threshold; check the current terms | Larger companies need a separate license |
| SDXL | Stability AI | Open weights under the CreativeML Open RAIL++-M license | Large ecosystem of ControlNet and LoRA add-ons |
| DALL-E 3 | OpenAI | Closed model with no downloadable weights. OpenAI added image generation inside GPT-4o in March 2025 | Image generation moved into the chat assistant |
| Midjourney | Midjourney | Closed, subscription service. Version 7 was released in 2025 | Check the current version before comparing |
| Adobe Firefly | Adobe | Adobe states that Firefly models are trained on licensed Adobe Stock, openly licensed, and public-domain content, and it offers IP indemnification to some enterprise customers | Procurement teams ask about training data and indemnity; read the contract |
| Veo 3 | Google DeepMind | Announced in May 2025; generates 8-second clips with audio | Clip length is a hard limit for planning |
| HunyuanVideo | Tencent | Open weights, 13 billion parameters | Open video model you can run yourself if you have the hardware |
| Claude models | Anthropic | Read text and images and write text. They do not generate images or audio themselves | Image and voice features in assistants come from separate models |
Names you will meet, by kind (names only, no claims; check each before relying)
| Kind | Names |
|---|---|
| Video, closed | Sora (OpenAI), Veo (Google DeepMind), Runway, Kling (Kuaishou) |
| Video, open weights | HunyuanVideo (Tencent), Wan (Alibaba) |
| Text to speech | ElevenLabs, OpenAI TTS, Sesame |
| Voice cloning | ElevenLabs; open: OpenVoice, Coqui XTTS |
| Music | Suno, Udio, Stable Audio; open: MusicGen (Meta), Stable Audio Open |
| 3D | Common Sense Machines, Tripo and TripoSR, DreamGaussian, 3D Gaussian Splatting |
| Code | GitHub Copilot, Cursor, Claude Code, Devin, Replit Agent |
| Hosting services | Replicate, fal.ai, Together.ai, Modal, RunPod, Hugging Face Inference Endpoints |
#Image Generation
Image generation is the oldest and most mature kind. Rankings of products go stale within months, so compare on things you can check yourself:
- Prompt following. Does the image contain every object, count and position you asked for?
- Text in images. Does a sign or label come out spelled correctly?
- Control. Can you add a pose guide (ControlNet), a small style patch (LoRA) or a reference image? Open-weights models allow this; closed services decide for you.
- Licence and training data. This is the axis that most often decides commercial work. See the dated table above.
- Cost per image and delay. Use the calculator below with your own prices.
Both closed services and open-weights models exist for images; the table above lists examples of each.
Picture first: renting a GPU for an hour costs a fixed amount. If it makes many images in that hour, each image is cheap. If it sits idle, each image is dear. An API charges the same price per image whatever your volume. The formula below compares the two.
#Video Generation
Video is the fastest-moving kind. Both closed services and open-weights models exist (names in the table above). Clip length, resolution and audio support change with almost every release, so this lesson gives one checked fact (Veo 3, in the dated table) and asks you to look up the rest on the day you decide.
Check three things for video: how long a clip can be, whether it holds a person or object steady from frame to frame, and whether sound is included.
#Audio, Music, Voice
Audio splits by task, and the leaders differ for each task (names in the table above).
| Category | What to check |
|---|---|
| Text to speech | Voice quality, price per character, and who owns the voice |
| Voice cloning | Consent. Laws are tightening (the Tennessee ELVIS Act of 2024 restricts using a person's voice without consent) |
| Music | Legal status. Label lawsuits against two music services were followed by settlements and licensing deals with some labels in late 2025. Check where things stand today |
| Speech to speech | Response delay, and whether the model hears speech directly or goes through text |
| Open music generation | You can run these yourself, but the weights carry their own licences, so read them |
#3D Generation
3D is a newer kind, and no single option has won yet. Check four things: whether the input is text or an image, what the output is (a mesh you can edit, or a cloud of coloured blobs called splats), how long a result takes, and the licence of the weights.
#Code Generation (see the Transformers track)
- Editor plugins suggest the next lines as you type.
- AI-first editors build the assistant into the whole editing screen.
- Command-line agents make multi-file edits and refactors on request.
- Task agents take a description and try to produce a finished change for review. Results vary by task, so test on your own work.
#The Six-Axis Selection Rubric
The five questions at the top turn into six things to score for every candidate: task fit (what kind of output), control (open or closed), quality, cost and delay (the trade-off), and licence. Skipping one is how a project passes the demo and fails in production.
Picture first: give each candidate a mark from 0 to 1 on each axis. Multiply each mark by how much that axis matters to you, and add them up. The highest total wins for your project, not for everyone.
Put every axis on a common 0 to 1 scale first (for cost and latency, use the best candidate's value divided by this candidate's). Otherwise the axis with the biggest raw numbers decides the winner whatever its weight.
#Reading a licence
A licence is a contract, and a model family can carry several licences at once. Ask these questions, in this order:
- Who may use it? Some licences are free only below a revenue limit.
- For what? Many licences allow research and personal use but not a paid product.
- What about the outputs? The rules for the pictures you make can differ from the rules for the weights.
- What restrictions follow the model? Some licences ban listed uses even for paying customers.
- Can the terms change? A hosted service can update its terms at any time, so re-read before you ship.
The dated table above shows one family with three licences, which is why this question comes before quality. A takedown notice costs far more than the hour it takes to read a licence.
#Testing a claim
"Model X is better" is a claim, and a claim can be tested. Ask:
- Better at what, measured on whose prompts? A maker's demo shows its best results. Run twenty of your own prompts instead.
- Same settings? Compare at the same image size, step count and budget.
- Quality and cost together? A better score that takes ten times as long is a trade, not a win.
- Who ran the test? A public leaderboard votes by many people; a vendor chart is one side of the story.
- Does it still hold next quarter? Leaderboards rotate every few months, so note the date.
The playground later in this lesson does this on a small scale.
A marketing agency needs 10,000 product variation images a month for a large client. The client's lawyers demand documented training data and legal cover, and the images must keep one brand style. Which combination fits best?
#Closed vs Open Economics
The break-even shifts every quarter as hardware prices fall and open models catch up:
The formula above is easy to misuse, so it helps to see where it comes from and what the symbols hold. The derivation is optional reading.
Three rules of thumb (rough; the lines move with your prices)
- Below 1K outputs/month → API every time. Operational overhead dominates.
- 1K–100K outputs/month → mixed. Use APIs for proof-of-concept, self-host once you know your steady-state volume.
- 100K+ outputs/month → self-host is worth modeling seriously. The GPU can pay for itself, and you get latency and customization wins.
A hosted-API comparison needs a token and network access, so it cannot run in the browser. Copy this block to Colab or your own machine to try it. A runnable stand-in follows below it.
# COPY TO COLAB (needs a Hugging Face token; will not run in the browser)
# Compare FLUX.1 schnell and SDXL on the same prompt through Hugging Face's client library.
# Hosting arrangements change, so check the current Inference Providers docs before relying on this.
import os
from huggingface_hub import InferenceClient
client = InferenceClient(token=os.environ["HF_TOKEN"])
PROMPT = "A photo of a Husky dog wearing aviator sunglasses on a beach at sunset"
MODELS = {
"FLUX.1-schnell": "black-forest-labs/FLUX.1-schnell",
"SDXL-base": "stabilityai/stable-diffusion-xl-base-1.0",
}
for name, model_id in MODELS.items():
try:
image = client.text_to_image(PROMPT, model=model_id) # returns a PIL image
image.save(f"output_{name.replace('.', '_')}.png")
print(f"Saved output_{name.replace('.', '_')}.png")
except Exception as err: # cold start, quota, or no provider
print(f"{name} failed: {err}")
# Then open both PNGs and compare prompt following (the sunglasses), detail (the fur),
# and speed (schnell is built for very few steps; SDXL usually uses many more).
# CHALLENGE: add Stable Diffusion 3.5 and FLUX.1 [dev]. FLUX.1 [pro] is API-only, through its maker or a partner host.The runnable twin below keeps the idea: judge two generators on the same prompt by quality and by cost, not by name. The "prompt" is three clusters the image must land in. Both models use the same exact denoiser; the fast one takes 4 steps and the slow one takes 30. Cost is counted in network calls.
Tests: Verify the 30-step run lands on-prompt more often than the 4-step run, and that the printed call counts equal the step counts.
#Key Takeaways
- There is no universal best model. Start from what the job needs, then score each candidate on the six axes: task fit, quality, cost, control, delay and licence.
- Under the lesson's example prices, paying per request wins at low volume and running your own GPU wins at high volume. Where the line falls depends on your prices, your utilisation and your engineers' time, so compute it yourself.
- Read the licence before you benchmark. A family of models can carry several licences, and the outputs can have different rules from the weights.
- Test a claim on your own prompts, with the same settings, and look at quality and cost together.
- Published open image and video models share building blocks: diffusion transformers, often flow matching. Closed models' designs are mostly unpublished, so do not rely on claims about them.
- Hybrid stacks are common: pay per request for the rare, high-value calls and run your own for the bulk.
#Quick Check
You are building a real-time art tool. It needs sub-second images, custom style adapters, and about 1M images a day at peak. Which stack?