<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Work with a model on AI Vault</title><link>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/</link><description>Recent content in Work with a model on AI Vault</description><generator>Hugo</generator><language>en</language><atom:link href="https://namphuongtran.github.io/ai-vault/foundations/work-with-models/index.xml" rel="self" type="application/rss+xml"/><item><title>The AI API</title><link>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/the-ai-api/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/the-ai-api/</guid><description>&lt;p&gt;Everything you build talks to a model through an &lt;strong&gt;API&lt;/strong&gt;: you send messages over HTTP and get&#10;a generated response back. Most providers share the same shape, so the concepts here transfer.&lt;/p&gt;&#10;&lt;h2 id="the-requestresponse-cycle"&gt;The request/response cycle&lt;/h2&gt;&#10;&lt;pre class="mermaid"&gt;sequenceDiagram&#10; participant App as Your app / SDK&#10; participant API as Model API&#10; App-&amp;gt;&amp;gt;API: POST - messages &amp;#43; parameters&#10; API--&amp;gt;&amp;gt;App: assistant message &amp;#43; usage &amp;#43; stop reason&#10; App-&amp;gt;&amp;gt;API: next turn - full history &amp;#43; new message&#10; API--&amp;gt;&amp;gt;App: next assistant message&lt;/pre&gt;&#10;&lt;h2 id="the-request"&gt;The request&lt;/h2&gt;&#10;&lt;p&gt;You send the model id, the conversation as a list of &lt;strong&gt;messages&lt;/strong&gt;, and a few&#10;&lt;a href="https://namphuongtran.github.io/ai-vault/foundations/work-with-models/inference-parameters/"&gt;parameters&lt;/a&gt;:&lt;/p&gt;</description></item><item><title>Inference Parameters</title><link>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/inference-parameters/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/inference-parameters/</guid><description>&lt;p&gt;At request time a few parameters shape &lt;em&gt;how&lt;/em&gt; the model generates. These are the everyday&#10;knobs for controlling output.&lt;/p&gt;&#10;&lt;h2 id="the-core-knobs"&gt;The core knobs&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Parameter&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Controls&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Typical use&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Temperature&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Randomness&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Low (~0) = focused/deterministic-ish; high = creative/varied&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Top-p (nucleus)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Sampling from the top probability mass&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Alternative to temperature; lower = safer&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Top-k&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Sampling from the top &lt;em&gt;k&lt;/em&gt; candidates&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Similar effect; caps the candidate pool&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Max tokens&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Length cap on the output&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Prevent runaway or truncated responses&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Stop sequences&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Strings that end generation&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Cut off at a delimiter you control&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="temperature-in-practice"&gt;Temperature, in practice&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Low&lt;/strong&gt; for extraction, classification, code, factual answers — you want consistency.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Higher&lt;/strong&gt; for brainstorming, copy, variety — you want range.&lt;/li&gt;&#10;&lt;li&gt;Don&amp;rsquo;t tune temperature &lt;em&gt;and&lt;/em&gt; top-p aggressively at once; pick one lever.&lt;/li&gt;&#10;&lt;li&gt;Even at temperature 0, output isn&amp;rsquo;t guaranteed identical every time.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt; — prompt: &lt;em&gt;&amp;ldquo;Write a tagline for a coffee shop.&amp;rdquo;&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Prompt Engineering</title><link>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/prompt-engineering/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/prompt-engineering/</guid><description>&lt;h2 id="what-it-is"&gt;What it is&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Prompt engineering&lt;/strong&gt; is designing the input to a foundation model to get the output you&#10;want. It&amp;rsquo;s the most direct lever over model behavior — no retraining required.&lt;/p&gt;&#10;&lt;h2 id="anatomy-of-a-good-prompt"&gt;Anatomy of a good prompt&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Component&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Purpose&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Role&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Who the model should act as&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Task&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;What to do&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Context&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Background information needed&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Constraints&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Limits and conditions&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Response format&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Output structure&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Response style&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Tone and voice&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Success criteria&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;What &amp;ldquo;good&amp;rdquo; looks like&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Examples&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Sample inputs/outputs when helpful&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;&lt;strong&gt;Weak:&lt;/strong&gt; &amp;ldquo;Summarize this document.&amp;rdquo;&lt;/p&gt;</description></item><item><title>Context Engineering</title><link>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/context-engineering/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/context-engineering/</guid><description>&lt;p&gt;Builds on &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/work-with-models/prompt-engineering/"&gt;Prompt engineering&lt;/a&gt;. Prompting is&#10;&lt;em&gt;wording&lt;/em&gt; the request; &lt;strong&gt;context engineering&lt;/strong&gt; is deciding &lt;em&gt;everything&lt;/em&gt; the model sees in its&#10;finite &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/understand/how-llms-work/"&gt;context window&lt;/a&gt; — and what to leave out.&lt;/p&gt;&#10;&lt;h2 id="whats-in-the-context"&gt;What&amp;rsquo;s in the context&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;System prompt&lt;/strong&gt; — role, rules, output format.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Instructions / examples&lt;/strong&gt; — the task and any few-shot samples.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Retrieved data&lt;/strong&gt; — documents pulled in via &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/ground-in-data/rag/"&gt;RAG&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Tool results&lt;/strong&gt; — output from &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/make-it-act/tool-function-calling/"&gt;tools the model called&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;History / memory&lt;/strong&gt; — prior turns, or facts carried across sessions.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; SP[System prompt] --&amp;gt; CW[Context window]&#10; EX[Instructions and examples] --&amp;gt; CW&#10; RD[Retrieved data via RAG] --&amp;gt; CW&#10; TR[Tool results] --&amp;gt; CW&#10; H[History and memory] --&amp;gt; CW&#10; CW --&amp;gt; M[Model]&lt;/pre&gt;&#10;&lt;h2 id="the-core-problem-the-window-is-finite"&gt;The core problem: the window is finite&lt;/h2&gt;&#10;&lt;p&gt;Everything above competes for the same token budget. More is not better — irrelevant context&#10;distracts the model and costs money. The goal is the &lt;strong&gt;right&lt;/strong&gt; information, not the most.&lt;/p&gt;</description></item><item><title>Structured Outputs</title><link>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/structured-outputs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/structured-outputs/</guid><description>&lt;p&gt;Builds on &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/work-with-models/the-ai-api/"&gt;The AI API&lt;/a&gt;. To &lt;em&gt;build&lt;/em&gt; with a model you&#10;usually need output your code can parse — not prose. &lt;strong&gt;Structured outputs&lt;/strong&gt; constrain the&#10;model&amp;rsquo;s answer to a &lt;strong&gt;schema&lt;/strong&gt; (usually JSON).&lt;/p&gt;&#10;&lt;h2 id="the-idea"&gt;The idea&lt;/h2&gt;&#10;&lt;p&gt;You give a schema; the model returns data that matches it; you validate and use it directly.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; P[Prompt &amp;#43; schema] --&amp;gt; M[Model]&#10; M --&amp;gt; J[JSON matching the schema]&#10; J --&amp;gt; V{Valid?}&#10; V --&amp;gt;|yes| Use[Use directly in code]&#10; V --&amp;gt;|no| M&lt;/pre&gt;&#10;&lt;h2 id="example"&gt;Example&lt;/h2&gt;&#10;&lt;p&gt;Schema (what you ask for):&lt;/p&gt;</description></item><item><title>Reasoning Models</title><link>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/reasoning-models/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/reasoning-models/</guid><description>&lt;p&gt;A &lt;strong&gt;reasoning model&lt;/strong&gt; is trained to work through a problem step by step &lt;em&gt;before&lt;/em&gt; giving its&#10;final answer — trading time and tokens for accuracy on hard, multi-step tasks.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; Q[Question] --&amp;gt; R[Reasoning model]&#10; R --&amp;gt; Th[Internal step-by-step thinking]&#10; Th --&amp;gt; A[Final answer]&lt;/pre&gt;&#10;&lt;h2 id="how-it-shows-up"&gt;How it shows up&lt;/h2&gt;&#10;&lt;p&gt;Providers expose this differently, but the shape is the same: a &lt;strong&gt;thinking / effort&lt;/strong&gt; dial you&#10;turn up for harder problems (e.g. &amp;ldquo;extended&amp;rdquo; or &amp;ldquo;adaptive&amp;rdquo; thinking, an &lt;em&gt;effort&lt;/em&gt; level, or a&#10;dedicated reasoning model). Higher effort → more internal reasoning → slower and pricier.&lt;/p&gt;</description></item><item><title>Cost &amp; Tokens</title><link>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/cost-and-tokens/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/cost-and-tokens/</guid><description>&lt;p&gt;You pay per &lt;strong&gt;token&lt;/strong&gt; — input and output, priced separately. Cost is easy to reason about once&#10;you see what feeds it.&lt;/p&gt;&#10;&lt;h2 id="what-drives-cost"&gt;What drives cost&lt;/h2&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; In[Input tokens: prompt &amp;#43; context &amp;#43; history] --&amp;gt; Cost[Total cost]&#10; Out[Output tokens] --&amp;gt; Cost&#10; Tier[Model tier price] --&amp;gt; Cost&#10; Calls[Number of calls] --&amp;gt; Cost&lt;/pre&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Input tokens&lt;/strong&gt; — your system prompt, retrieved &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/work-with-models/context-engineering/"&gt;context&lt;/a&gt;,&#10;and the whole conversation history you resend each turn.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Output tokens&lt;/strong&gt; — usually priced higher than input.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Model tier&lt;/strong&gt; — a flagship model can cost 10×+ a small one (see&#10;&lt;a href="https://namphuongtran.github.io/ai-vault/foundations/work-with-models/choosing-a-model/"&gt;Choosing a model&lt;/a&gt;).&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Number of calls&lt;/strong&gt; — &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/make-it-act/agentic-ai/"&gt;agents&lt;/a&gt; multiply calls; a&#10;loop can be many requests per task.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="example--a-rough-cost-calc"&gt;Example — a rough cost calc&lt;/h2&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Support bot, per reply:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; input = 2,000 tokens (system + context + question)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; output = 300 tokens&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Illustrative price: $3 / 1M input, $15 / 1M output&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; input = 2000/1e6 × $3 = $0.0060&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; output = 300/1e6 × $15 = $0.0045&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; → ~$0.011 per reply ≈ $11 per 1,000 replies&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Prices are illustrative — check your provider&amp;rsquo;s. The point: input tokens (context + history)&#10;usually dominate.&lt;/p&gt;</description></item><item><title>Choosing a Model</title><link>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/choosing-a-model/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/foundations/work-with-models/choosing-a-model/</guid><description>&lt;p&gt;There&amp;rsquo;s rarely one &amp;ldquo;best&amp;rdquo; model — there&amp;rsquo;s the right model for &lt;em&gt;this&lt;/em&gt; task. Pick along a few&#10;axes.&lt;/p&gt;&#10;&lt;h2 id="the-dimensions-that-matter"&gt;The dimensions that matter&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Dimension&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Question&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Capability&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Is it smart enough for the task&amp;rsquo;s hardest step?&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Speed / latency&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Does the use case need fast responses (chat) or can it wait (batch)?&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Cost&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Price per input and output token — multiplied by your volume&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Context window&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;How much text must it handle at once?&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Modalities&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Text only, or also images / audio?&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Hosting&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Proprietary API vs open-weight model you can self-host&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="capability-tiers"&gt;Capability tiers&lt;/h2&gt;&#10;&lt;p&gt;Most providers offer a &lt;strong&gt;tier ladder&lt;/strong&gt; — a large flagship model (most capable, slower,&#10;pricier), a mid tier (balanced), and a small model (fast, cheap, good for simple or&#10;high-volume tasks). Match the tier to the job rather than defaulting to the biggest.&lt;/p&gt;</description></item></channel></rss>