TECHQUEST AI TECH WORKSHOP · LEARN · BUILD · SHIP
iQOO Connect

Building with AI: Fundamentals & OpenRouter

iQOO Connect
Reskilll
ABOUT THE SPEAKER
iQOO Connect

Hi, I'm Shangeeth.

Staff Software Engineer with over 9+ years of experience building Android products at scale, Kotlin systems, and AI workflows.

Android & Kotlin

Architecting high-scale Android applications, Kotlin Multiplatform, and resilient mobile systems.

AI & Agentic Workflows

Building with LLM APIs, developer agents, and on-device intelligent systems.

Speaker & Community

Organizing Kotlin/Android circles in Chennai & sharing deep-dives on YouTube @shravzdev.

TRIVIA TIME

Can You Guess The Connection?

A quick puzzle before we dive into how modern AI actually generates text.

iQOO Connect
🤔 KICK-OFF QUESTION

"Why did Anthropic name its flagship AI model 'Claude'?"

Before modern LLMs, Transformers, or chatbots existed... an incredible breakthrough in 1950 changed how we predict information forever.

THE ARCHITECTURAL BRIDGE

From Next-Letter to Next-Token Prediction

How Shannon's 1950 theoretical guessing experiment evolved into modern token & word prediction engines.

iQOO Connect
1951: THEORY & EXPERIMENT Paper & Pencil

Theoretical Human Guessing

Shannon tested human subjects guessing covered letters to prove language is statistically predictable: "SHIP TODA[ Y ]".

BELL LABS EXPERIMENTAL RESULT
TODA[ Y ] · 98% Certainty
70 YEARS
LETTER → TOKEN
2026: NEXT TOKEN / WORD Token Level

Sub-Word & Word Streaming

Modern LLMs predict sub-word tokens (~4 chars) across a 100k+ vocabulary to stream entire answers.

⚡ LIVE TOKEN STREAMING token_by_token
THE EVOLUTION OF GRANULARITY
1950: Next Letter (A-Z) → 2026: Next Token/Word (~100,000 candidate vocabulary).
Letter → Token Scale
70-YEAR HISTORICAL EVOLUTION · ERA 1 OF 4
iQOO Connect
1940s–
1950s
The Dream of Thinking Machines
✨ ARTIFICIAL INTELLIGENCE (1956)
↓ 1960s–1990s

"Can computers learn to think like humans, or just crunch math equations?"

1943 · THE ARTIFICIAL BRAIN CELL

McCulloch & Pitts (First Neuron)

The Idea: What if a simple switch could imitate a biological brain cell?
Real-World Change: Shifted computers from calculators into machines wired like brains.

1950 · CAN MACHINES THINK?

Alan Turing (The Turing Test)

The Idea: If you talk to a machine behind a curtain and can't tell it's a computer, is it intelligent?
Real-World Change: Created the world's first benchmark for human-level AI.

1950 · THE NEXT-LETTER GAME

Claude & Betty Shannon

The Idea: Claude hid letters in sentences and Betty guessed what came next. She was almost always right!
Real-World Change: Proved language is statistically predictable—the engine of ChatGPT.

AI COINED
1956 · NAMING THE FIELD

The Dartmouth Workshop — Birth of "AI"

The Idea: Co-organized by Claude Shannon, John McCarthy & Marvin Minsky to define machine learning.
Real-World Change: Coined "Artificial Intelligence" and formally founded AI as an academic discipline.

70-YEAR HISTORICAL EVOLUTION · ERA 2 OF 4
iQOO Connect
↑ 1940s–1950s
1960s–
1990s
The Rule-Book Era & The AI Winter
✨ MACHINE LEARNING (1980s)
↓ 1986–2010s

"What happens when humans try to hand-write every rule into code?"

HANDCODED RULES

The "If-Then" Approach

The Idea: Programmers manually wrote strict rules: "IF user says hello, THEN say hi".
Real-World Change: Worked for chess, but broke on messy human language and slang.

1966 · FIRST THERAPIST BOT

ELIZA at MIT

The Idea: Parroted words back: "I'm feeling sad" → "Why are you sad?" People poured their hearts out!
Real-World Change: Proved humans love talking to bots, but exposed zero true understanding.

1970s–1980s · DOCTOR IN A BOX

Expert Systems

The Idea: Doctors and banks fed 500-page rule books into computers to diagnose illness and approve loans.
Real-World Change: Showed software could assist, but crashed whenever rules conflicted.

ML EMERGED
THE CRASH → MACHINE LEARNING

The "AI Winters" — Birth of ML

The Idea: When rule bots proved too brittle, companies froze funding for a decade.
Real-World Change: Forced scientists to invent Machine Learning: learning from data instead of hand-coded rules!

70-YEAR HISTORICAL EVOLUTION · ERA 3 OF 4
iQOO Connect
↑ 1960s–1990s
1986–
2010s
Learning from Examples & Deep Learning
✨ DEEP LEARNING (1986/2012)
↓ 2017–2026

"Don't tell it the rules. Show it 1,000,000 photos and let it learn!"

1986 · TRIAL & ERROR LEARNING

Backpropagation (Hinton)

The Idea: Like a kid shooting basketballs, every time the neural net misses, it tweaks connections until it scores.
Real-World Change: Gave neural networks the superpower to self-correct automatically.

THE BIG SHIFT

Show, Don't Tell

The Idea: Instead of describing "a cat has whiskers", engineers fed the computer 100,000 labeled photos.
Real-World Change: Enabled email spam filters, postal handwriting scanning, and fraud alerts.

DEEP LEARNING
2012 · GPU BREAKTHROUGH

AlexNet on ImageNet — Deep Learning

The Idea: Researchers trained deep neural networks on fast Nvidia gaming GPUs using millions of photos.
Real-World Change: Ushered in Deep Learning, unlocking Face ID and self-driving cars.

THE MOBILE REVOLUTION

Smartphones & Big Data

The Idea: Billions of smartphone users generated endless photos, videos, and voices for AI to learn from.
Real-World Change: AI moved out of academic laboratories and directly into every pocket on Earth.

70-YEAR HISTORICAL EVOLUTION · ERA 4 OF 4
iQOO Connect
↑ 1986–2010s
2017–
2026
Transformers, LLMs & OpenRouter
✨ LARGE LANGUAGE MODELS (2017+)

"What if a machine could read the whole internet and predict what comes next?"

LLMs BORN
2017 · THE TRANSFORMER

"Attention Is All You Need" — LLMs

The Idea: Transformers look at entire paragraphs at once, understanding deep context.
Real-World Change: Created Large Language Models, scaling reading speed by 1,000x!

SHANNON SCALED UP

Large Language Models

The Idea: Claude Shannon's 1950 letter-guessing game scaled across billions of parameters predicting the next word.
Real-World Change: AI transformed from search engines into creative partners that write code, poetry, and apps.

BEING HELPFUL & POLITE

RLHF Alignment

RLHF: Reinforcement Learning from Human Feedback.
The Idea: Raw internet text is messy. Human teachers graded AI replies to guide it to be polite, honest, and helpful.
Real-World Change: Turned raw probability engines into safe, friendly AI assistants anyone can talk to.

2026 · DEVELOPER POWER

OpenRouter on iQOO Z Series

The Idea: You don't need a supercomputer. A single API key connects your app to any model out there.
Real-World Change: Anyone in this room can build and ship a full AI startup in hours!

MODULE 02 · AI FUNDAMENTALS
iQOO Connect
02
MODULE 02

Intro to AI &
Fundamentals

By the end of this you’ll know what an LLM is, how it answers you, and the handful of terms you’ll use all day — in plain words, no maths.

🪆
1. Nesting Dolls

How AI, ML, Deep Learning & LLMs fit cleanly together.

⚙️
2. LLM Mechanics

Tokens, next-token prediction loops, and context windows.

💡
3. Build Patterns

6 concrete architectures for wiring AI into real apps.

MODULE 02 · AI FUNDAMENTALS

AI, ML, LLMs — the nesting dolls

iQOO Connect

Artificial Intelligence

The broad idea: machines doing things that normally need human smarts.

Machine Learning

Systems that learn patterns from data instead of being hand-coded with rules.

Deep Learning

ML using large neural networks — the engine behind modern AI.

Large Language Models

GPT · Claude · Llama · Gemini

Deep-learning models trained on huge text to predict and generate language. This is what you’ll be calling today.

MODULE 02 · AI FUNDAMENTALS

How an LLM actually works

iQOO Connect
01

Your text

The prompt you send — a question or instruction.

02

Tokens

Text is chopped into tokens (word-pieces) the model can read.

03

Predict next

The model scores every possible next token and picks one.

04

Repeat

It adds that token and predicts again… and again.

The one idea to remember: “It predicts the next token, over and over. That’s the whole trick.”
Context window = how much text it can “see” at once (your prompt + its reply). Run out of room and it forgets the start. Bigger idea → shorter, sharper prompts.
MODULE 02 · AI FUNDAMENTALS

The terms you’ll hear today

iQOO Connect

Model

The trained AI you call (e.g. GPT-4o, Claude, Llama). Different models = different skill, speed, cost.

Token

A word-piece. Prompts and replies are measured — and billed — in tokens.

Context window

The max tokens a model can hold at once. Prompt + reply must fit inside it.

Temperature

Creativity dial. Low = focused and repeatable, high = varied and surprising.

Hallucination

When a model states something wrong with full confidence. Always sanity-check facts.

System prompt

Hidden instructions that set the model's role and rules before the user types anything.

MODULE 02 · AI FUNDAMENTALS

What AI can do inside a build

Six patterns cover almost every app you could build. Pick one of these instead of just “adding AI”.

iQOO Connect

Chat & Q&A

Answer questions, act as a helper or tutor inside the app.

Generate content

Write captions, stories, replies, ideas, quiz questions.

Summarise

Turn long text or notes into a short, clean summary.

Classify & tag

Sort input into categories — mood, topic, spam / not spam.

Extract structure

Pull clean JSON or fields out of messy text for the UI.

Vision

Describe or read an image the user captures on the iQOO.

How it plugs in: The app sends text to a model over an API, gets a reply back, and shows it in the UI. That’s the whole loop.

MODULE 03 · OPENROUTER
iQOO Connect
03
MODULE 03

OpenRouter
APIs

Here you’ll grab an API key with credit and make your first call to a model — before wiring it into the app. One key, many models.

🔑
1. APIs & Keys

An API in one picture: Your app (customer) & the API (waiter).

🎟️
2. Claim $10 Key

Instant team credit from the Reskilll portal with your email.

3. First Model Call

Let AI tools write the call, pick minimax, and protect credit.

MODULE 03 · OPENROUTER

APIs & keys — one door to every model

iQOO Connect

An API, in one picture

Your app is the customer placing an order
The API is the waiter carrying the order back and forth
The model is the kitchen that cooks the response
The API key is your ID badge — proves it’s you, keep it secret

Why OpenRouter

One key, many models
Reach OpenAI, Anthropic, Google & Meta models through a single account.
Swap models in one line
Change the model name in your request — no new sign-ups, no rewrite.
Pay per use with credit
Each team gets event credit; you only spend what you call.
Familiar format
Requests look just like the OpenAI API — copy-paste examples work.
MODULE 03 · OPENROUTER

Claim your API key — the Reskilll portal

No forms, no waiting. The portal issues your team's OpenRouter key the moment it verifies your hackathon email.

iQOO Connect
1
Open the portal
Scan the QR (or go to openrouterclaim.reskilll.com) and hit Claim Credits.
2
Sign in
Log in with the email you registered for the hackathon with — nothing else.
3
Get verified
The portal checks your email against the database automatically.
4
Copy your key
Your key + $10 team credit are ready instantly — copy it and store it safely.
5
Keep it secret
Never put the key in GitHub or screenshots. Treat it like a password.
SCAN TO CLAIM YOUR KEY
Scan QR Code to Claim API Key
openrouterclaim.reskilll.com
200+ models
<10s setup
MODULE 03 · OPENROUTER

Your first call — no code needed

You won’t hand-write API code. An AI coding tool (Claude Code, Cursor, and the like) writes and runs it — you just describe what you want and hand it three things.

iQOO Connect

How it works

1
Open your AI coding tool
Claude Code, Cursor — whatever your team is using to build.
2
Hand it the three things
Your OpenRouter key, the base URL, and the model (see right).
3
Describe it in plain English
Say what the app should do with the AI — no syntax required.
4
It writes & runs the call
Review the reply, then ask it to tweak until it's right.

Just tell it something like

“Use my OpenRouter key to call minimax/minimax-m3 When the user enters a topic, generate 5 quiz questions and return them as JSON to show in the app.”

Hand your AI tool these three

Base URL https://openrouter.ai/api/v1
API key your key from the claim portal — as a secret, not hardcoded
Model minimax/minimax-m3 (or openrouter/auto)
MODULE 03 · OPENROUTER

Which model? Let AI decide

iQOO Connect

Don’t overthink the model

Your key unlocks 200+ models. You don’t need to be an expert — pick a sensible default and let AI do the choosing.

START HERE
minimax/minimax-m3
Fast, cheap and capable — handles almost every build.
Let AI pick for you — use openrouter/auto to auto-route each request, or just ask the AI which model fits your feature.
Swap anytime — change one model string and you’re on a different model. No rewrite.

Protect the credit

$10 OpenRouter credit per team · we top up if you run low
Keep prompts short — you pay per token, both ways.
Set a sensible max_tokens so replies don't run long.
Don't call the API in a loop or on every keystroke.
Watch the OpenRouter dashboard — it shows spend live.
Handle errors: a failed call shouldn't retry forever.
MODULE 04 · BUILD & SHIP
iQOO Connect
04
MODULE 04

Prompting &
Android Studio

Here you’ll turn a vague idea into a precise prompt, then wire it into an Android app that builds. This is where the app comes alive.

🎯
1. Precise Prompts

Role, context, task & JSON format that the app can parse directly.

🤖
2. Android Studio

Open starter kit, let Gradle sync, add INTERNET permission & hit Run.

🚀
3. Ship to iQOO

Enable USB debugging, install the debug APK & demo live on hardware.

MODULE 04 · PROMPTING

Anatomy of a strong prompt

iQOO Connect
ROLE
Who the model should be
“You are a friendly travel assistant.”
CONTEXT
What it needs to know
“The user is planning a weekend trip in India.”
TASK
The one clear thing to do
“Suggest 3 places with a one-line reason each.”
FORMAT
Exactly how to reply
“Return JSON: [{place, reason}]. No extra text.”
EXAMPLES
Show one if it’s tricky
Give a sample input → output so it copies the shape.
// a prompt that ships
PROMPT_TEMPLATE.MD
SYSTEM
You are a friendly travel assistant for weekend trips in India.
USER
Suggest 3 places near Chennai for a 2-day trip. Return JSON only:
[{ "place": "...", "reason": "..." }]
// role + context + task + format
// = a reply the app can drop
//   straight into the UI
MODULE 04 · PROMPTING

Prompt patterns that ship

iQOO Connect

Four patterns that work

1
Be specific
Vague in → vague out. Name the count, tone, and length you want.
2
Give an example
One sample of the output shape beats a paragraph of description.
3
Ask for a format
Request JSON or a list so the app can parse it cleanly.
4
Iterate live
Not right? Tweak one thing and re-run. Prompting is a loop, not a guess.
DO
“5 quiz questions, easy, on the solar system.”
“Reply in one short sentence.”
“Return only JSON, no notes.”
“If unsure, say you’re not sure.”
DON'T
“Make a quiz.” (too vague)
“Tell me about space.” (no limit)
Expecting clean JSON with no ask
Trusting facts without a check
MODULE 04 · ANDROID STUDIO

Android Studio in five minutes

iQOO Connect

Get building fast

Open the projectFile → Open the starter, then wait for the first index.
Let Gradle syncThe build system pulls dependencies — let the bar finish before running.
Add INTERNET permissionNo API call works without it. Add it to AndroidManifest.xml early.
Pick a deviceUse the connected iQOO (real device) — faster than the emulator and it’s where you demo.
Hit RunThe green ▶ builds and launches the app so you can see changes.
🗂️

The panels you’ll use

Project The file tree — your code, layouts and the manifest live here.
Editor Where you write Kotlin/Java and the UI.
Logcat Live logs from the iQOO — the first place to look when it crashes.
Run / Build Launches the app, and later builds the APK.
Gradle The build engine — “sync” pulls libraries you add.
MODULE 04 · ANDROID STUDIO

Wire the model in, then build the APK

iQOO Connect
THE REQUEST LOOP INSIDE THE APP
📱
User input
Type / tap in the app
🌐
HTTP request
Send text + key to OpenRouter
Model replies
OpenRouter returns the answer
Show in UI
Parse it and display on screen
BUILD THE APK
1
Build menu
Build → Build Bundle(s) / APK(s) → Build APK(s).
2
Wait for “locate”
A notification pops up when the build finishes.
3
Find the file
Click “locate” → app/build/outputs/apk/debug/app-debug.apk.
MODULE 04 · SHIP TO DEVICE

Prep the iQOO device

An iQOO device won’t accept a hand-built APK until developer mode is on. Do this once, early — before the build is even ready.

iQOO Connect
STEP 1 ⚙️

Open Developer Options

Settings → About phone → tap “Build number” 7 times. You’ll see “You are now a developer”.

STEP 2 🔌

Turn on USB debugging

Back in Settings → System → Developer options → enable USB debugging.

STEP 3 📦

Allow USB install

In the same menu, allow “Install via USB” / apps from USB so the APK isn’t blocked.

STEP 4 🤝

Connect & authorize

Plug the iQOO into the laptop. On the iQOO, tap “Allow” on the debugging prompt.

Pro-Tip: Menu names vary slightly on Funtouch OS versions — the flow is always About → Build number ×7, then Developer options.
MODULE 04 · SHIP TO DEVICE

Install, smoke-test, screen-record

iQOO Connect
OPTION A

A · Over USB (adb)

adb devices # is it seen?
adb install \
  app-debug.apk

Cleanest way — installs straight from the laptop.

OPTION B

B · Copy & tap

• Copy app-debug.apk to the iQOO (USB / Drive / share)
• Open Files on the iQOO and tap the APK
• Approve “install unknown app” if asked
Great backup if adb driver has issues.
CHECKLIST

Before you demo

App opens without crashing
The core AI feature actually works
Screen-record the happy path
Push the final code to GitHub
Ready for stage presentation!
Smoke-test = run the one thing the demo depends on. If the AI call needs internet, test on the venue Wi-Fi — not just the laptop. A screen recording is your safety net if the live demo hiccups.
STUCK? QUICK FIXES

When it breaks — fast fixes

Most blockers are one of these six. Find the symptom, apply the fix, and keep building.

iQOO Connect
401 / “Unauthorized” from API

Key is wrong or missing. Check the Authorization: Bearer header and that the key was copied whole.

App can’t reach the internet

Add the INTERNET permission to AndroidManifest.xml, then rebuild.

Gradle sync fails

Usually network. Retry sync, check Wi-Fi, and make sure the SDK finished downloading.

adb: “device unauthorized”

Re-plug the cable and tap Allow on the iQOO’s debugging prompt. Toggle USB debugging off/on.

APK won’t install

Uninstall any old copy first; enable install-from-USB / unknown apps on the iQOO.

“Insufficient credit” / rate limit

Check the OpenRouter dashboard — switch to a cheaper model or slow the calls down.

TECH WORKSHOP EXPERIENCE · LEARN · BUILD · SHIP

“Learn it. Then ship it.”

AI → A working Android app, shipped to an iQOO device.

iQOO Connect
STEP 01

GitHub

Clone starter repo template & configure your project setup.

git clone starter-kit
STEP 02

AI Prompting

Claude Code, Cursor & Gemini write and iterate your feature code.

Cursor · Claude Code
STEP 03

OpenRouter APIs

One door to 200+ models with your team's $10 event credit.

$10 Team Credit · 200+ Models
STEP 04

Android Studio

Build native Kotlin UI with Jetpack Compose & wire live API data.

Kotlin · Jetpack Compose
STEP 05

Ship to iQOO

Deploy APK to physical iQOO devices & present your live demo!

🚀 Live Device Demo
THE WORKSHOP GOAL: AI → A WORKING ANDROID APP, SHIPPED TO AN iQOO DEVICE
From empty prompt to native Android intelligence running in your hands today.
Chennai · August 2026
CONNECT & KEEP BUILDING

Let's Connect & Build Together

Scan the QR code to explore tutorials, open source projects, and dev content.

iQOO Connect
YouTube
Tech tutorials, architecture & live dev sessions.
@shravzdev
Instagram
Daily dev snippets, event updates & reels.
@shravzdev
"THINK FAST. BUILD FASTER. SHIP TODAY."
SCAN TO CONNECT
Scan QR Code to Connect with Shangeeth
shravz.dev