Generative AI β€Ί Foundations β€Ί What is Generative AI?
LESSON 4 Β· FOUNDATIONS

What is Generative AI?

Generative AI is a type of artificial intelligence that can create new content such as text, images, audio, video, and code from a user's instructions.

The simple idea

Traditional software often follows rules to decide what to do. Generative AI learns patterns from large amounts of data and uses those patterns to produce a new output.


What makes Generative AI different?

Many AI systems are designed to predict, classify, detect, or recommend. Generative AI adds another capability: it can create an output that was not stored as a ready-made answer.

YOUR INPUTβ€œWrite a short product description.”
β†’
GENERATIVE AILearns patterns
and generates
β†’
NEW OUTPUTβ€œMeet the lightweight...”

Example 1: Creating a product description

Imagine an online store has thousands of products. Instead of writing every description manually, a Generative AI system can use product information and an instruction to draft a description.

INPUT

Product: Lightweight waterproof hiking backpack, 25 L, laptop sleeve.

INSTRUCTION

Write a friendly two-sentence product description for a customer.

GENERATED OUTPUT

β€œTake your essentials anywhere with this lightweight 25 L waterproof hiking backpack. A dedicated laptop sleeve and durable design make it ready for both trails and everyday travel.”

Notice: the model did not simply look up one stored sentence. It generated a new response from the information and instruction it received.

Example 2: Generating Python code

Generative AI can also create code. A developer can describe the task in natural language and ask a model to produce a first implementation.

# A simple support-ticket router

def route_ticket(message):
    text = message.lower()

    if "payment" in text or "refund" in text:
        return "Billing"

    if "password" in text or "login" in text:
        return "Account Support"

    return "General Support"


ticket = "I need a refund for my payment"

print(route_ticket(ticket))
OUTPUTBilling

This example is ordinary Python logic, but the important Generative AI connection is that a model can generate this code from a natural-language request, then a developer can inspect, run, change, and test it.

What can Generative AI create?

✍️ TextEmails, summaries, explanations, stories
πŸ–ΌοΈ ImagesIllustrations, designs, product concepts
πŸ’» CodeFunctions, SQL, scripts, prototypes
πŸŽ™οΈ AudioSpeech, narration, sound generation
🎬 VideoClips, animation, visual scenes
πŸ“Š Structured dataJSON, tables, extracted fields

How does it generate something new?

At a high level, a Generative AI model learns statistical patterns from training data. When you provide an input, the model uses those learned patterns to predict what should come next or what output best fits the request.

1Learn patternsTraining data contains many examples.
2Receive a promptThe user describes what they want.
3GenerateThe model predicts an appropriate sequence of output.
4Return contentThe generated result is shown to the user.
Important: Generative AI can produce useful content, but generated output is not automatically correct. Always evaluate important answers, code, calculations, and business decisions.

Generative AI vs traditional rule-based software

Traditional rules

A developer explicitly defines conditions and actions.

β€œIf payment fails β†’ show payment error.”
Generative AI

A model can interpret an instruction and produce a flexible response.

β€œExplain why this payment failed in simple language.”

Try it yourself

PRACTICE

Ask a model to generate useful content

  1. Choose a product, email, or small coding task.
  2. Write a clear instruction describing the output you want.
  3. Run it through a Generative AI model.
  4. Change one part of your instruction and compare the result.
Open Google Colab β†—

Quick check

Which statement best describes Generative AI?

A. It can create new content based on learned patterns and an input.
B. It can only return information that was manually stored by a developer.
C. It is only used for image generation.

Answer: A β€” Generative AI can create different types of content, including text, images, audio, video, and code.

Recap
  • Generative AI creates new content from instructions and learned patterns.
  • It can work with text, images, code, audio, video, and structured outputs.
  • A prompt provides the task or context for generation.
  • Generated output should be reviewed rather than blindly trusted.