Saqqa Academy blog
Learn AI, one clear guide at a time
Free, practical guides on AI for everyone: new models and what they change, prompting, AI video and images, coding with AI, agents and automation, and keeping AI costs down.
34 guides
Careers & freelancing
How to start a faceless YouTube channel with AI, without breaking YouTube’s rules
Faceless AI channels are allowed on YouTube, but templated videos can't earn money. How to plan one, when to tick the AI label and what monetisation needs.
17-Nov-2026 · 6 min read
Coding with AI
How to fix the Claude API error 400 invalid_request_error
A 400 invalid_request_error means Claude rejected the request. The common causes on newer models (prefill, thinking, forced tools, spend limits) and each fix.
17-Nov-2026 · 5 min read
AI video & images
What size should an AI video be for Reels, TikTok and YouTube Shorts?
Make AI videos vertical (9:16) from the start, export at 1080x1920 or larger, and keep text inside the safe zone so buttons and captions don't cover it.
16-Nov-2026 · 6 min read
Coding with AI
How to fix the Claude API error 429 rate_limit_error
A 429 from the Claude API can be a rate limit, a ramp limit or your monthly spend cap. How to tell them apart, when to retry and when retrying never helps.
16-Nov-2026 · 5 min read
Careers & freelancing
What to ask a client before you start an AI video project
A short brief checklist for AI video work, covering goal, platform, product, people, rules, scope, approvals and delivery, so you quote right and avoid endless changes.
16-Nov-2026 · 6 min read
AI video & images
How to turn one product photo into an AI ad image without changing the product
Use your real product photo as the reference, describe the scene around it, say what must stay exactly the same, and check every result against the original.
15-Nov-2026 · 6 min read
Tokens & costs
How to use the Claude Message Batches API to pay half price
The Message Batches API runs Claude requests in the background at 50% of the normal price. When to use it, its limits, and code to send a batch and read the results.
15-Nov-2026 · 6 min read
Careers & freelancing
How to build an AI video portfolio when you have no clients yet
No clients yet? Make three spec projects from realistic briefs, present each as a short case study, and be open about AI use. A step-by-step plan.
15-Nov-2026 · 5 min read
Careers & freelancing
How to price AI video work as a beginner, without guessing
Work out your price from your hours, your tool costs, the revisions you include and a small buffer, then turn it into simple packages clients can say yes to.
15-Nov-2026 · 5 min read
AI video & images
How to write an image-to-video prompt that actually moves
"Make it move" gives weak AI videos. Use five parts instead: subject motion, camera move, background motion, what stays fixed and sound, with examples you can copy.
15-Nov-2026 · 6 min read
Coding with AI
How to fix the Claude API error 401 authentication_error (invalid x-api-key)
A 401 from the Claude API means the key never arrived or was rejected. Read the message, check the header and the environment variable, and fix it in five minutes.
13-Nov-2026 · 6 min read
AI models & news
What is Gemini 4 Carbon? Price, access and when to use it instead of Argon
Google opened Gemini 4 Carbon to developers and AI Ultra users on 10 November 2026. Here is what it is, what it costs, who can use it and when Argon is the better pick.
13-Nov-2026 · 6 min read
Prompting
How to write a system prompt: what goes in it, with a template you can copy
A system prompt sets the role, rules and output format for every reply. Learn what belongs in it, what belongs in the user message, and copy a template that works.
13-Nov-2026 · 6 min read
Tokens & costs
What is a context window? Why long AI chats get slower, pricier and worse
Everything a model can see in one request, reply included. What fills the context window, what happens when it overflows, and how to keep a long chat inside it.
13-Nov-2026 · 6 min read
AI agents & automation
What is RAG (retrieval-augmented generation)? Build a tiny one in JavaScript
RAG finds the right documents first and puts them in the prompt, so the model answers from your facts, not memory. How it works, with a small example you can run.
13-Nov-2026 · 5 min read
AI agents & automation
What does stop_reason mean in the Claude API? Every value and what to do
A simple guide to Claude's stop_reason field, end_turn, tool_use, max_tokens, pause_turn, refusal and more, with a tested switch statement for your agent.
12-Nov-2026 · 5 min read
Coding with AI
Fix the Claude API error: tool_use ids were found without tool_result blocks
Why Claude returns a 400 error saying tool_use ids have no tool_result blocks, and how to fix your message history so every tool call gets its answer.
12-Nov-2026 · 5 min read
AI video & images
Veo 3.1 Preview was shut down in the Gemini API: how to switch to Gemini Omni Flash
Google shut down the Veo 3.1 Preview models in the Gemini API on 22 October 2026. Here is what replaced them, what changes in your code, and what a clip costs now.
12-Nov-2026 · 7 min read
AI models & news
Which Claude model should I use? Fable 5.2, Opus 5.5, Sonnet 5.5 or Haiku 5.5
A plain guide to the four current Claude models in November 2026, what each costs, and a simple way to pick one and test it for your own project.
12-Nov-2026 · 6 min read
AI video & images
How to keep the same AI character across images and videos
Your AI character's face changes in every image? Use a reference sheet, a locked description and reference images, then animate from stills. A step-by-step method.
11-Nov-2026 · 5 min read
Prompting
What is few-shot prompting? How to add examples to a prompt
Few-shot prompting means showing an AI model a few worked examples before your real task. Learn how many to use, how to format them, and the mistakes to avoid.
11-Nov-2026 · 5 min read
Coding with AI
Why is my Claude API response cut off? How to handle stop_reason max_tokens
If Claude's answer stops mid-sentence, check stop_reason. Here is what max_tokens and the other stop reasons mean, and code that continues or retries safely.
11-Nov-2026 · 5 min read
Tokens & costs
How prompt caching works in the Claude API, and when it saves money
Prompt caching lets Claude reuse the long, unchanging start of your prompt at a fraction of the price. How to switch it on, check it works and work out the saving.
10-Nov-2026 · 5 min read
Tokens & costs
How to count tokens before you send a prompt to Claude or OpenAI
Count a prompt's input tokens before you pay for it, with Claude's free count_tokens endpoint and OpenAI's input_tokens endpoint, then use the number to stay on budget.
10-Nov-2026 · 5 min read
Coding with AI
How to fix the Claude API error 529 overloaded_error
A 529 overloaded_error means Anthropic's servers are busy, not that your code is wrong. How to retry it safely, catch it inside a stream and keep your app working.
10-Nov-2026 · 6 min read
Coding with AI
How to fix the OpenAI API error 429 Too Many Requests
A 429 from the OpenAI API means either you are going too fast or you have run out of credit. Here is how to tell which one, and the retry code that fixes the first.
10-Nov-2026 · 5 min read
Prompting
How to get valid JSON from ChatGPT or Claude every time
Models sometimes wrap JSON in chat, add code fences or invent values. Use structured outputs where you can, and validate and retry where you cannot. Here is how.
10-Nov-2026 · 5 min read
AI agents & automation
What is an AI agent loop? Build one in about 40 lines of JavaScript
An AI agent is a model that calls tools in a loop until the job is done. Here is how the loop works, with a small agent you can run today without an API key.
10-Nov-2026 · 4 min read
AI agents & automation
What is MCP (Model Context Protocol)? A simple explanation with examples
MCP is an open standard that lets AI apps like Claude, ChatGPT and VS Code connect to tools and data in one common way. What it is, how it works and when to use it.
10-Nov-2026 · 6 min read
AI video & images
How to start making AI videos: a beginner's roadmap
New to AI video? Follow this order: images first, then a consistent character, then motion, voice and editing. No camera or studio needed.
08-Nov-2026 · 2 min read
Careers & freelancing
How to find your first client for AI video work
A realistic plan for landing your first paid AI video project in Pakistan: build proof, choose a niche, and approach small businesses directly.
08-Nov-2026 · 2 min read
Careers & freelancing
What Pakistani companies actually ask for in AI video jobs
We read AI video job listings from Karachi and Lahore. Here are the skills that keep coming up, why work samples matter, and what beginners should build first.
08-Nov-2026 · 2 min read
AI video & images
Why your AI images look fake, and how to fix them
Plastic skin, dead eyes and flat light give AI images away. Here are the causes and the prompt changes that make images look like real photographs.
08-Nov-2026 · 2 min read