voidduck

Section / ai

AI guides: API pricing, local models, prompting and coding

Practical AI guides on API prices, local models, prompts, coding agents and error handling, with provider documentation for current details.

Latest

About this section

Artificial intelligence illustration on a wall

© Tara Winstead / Pexels.

Updated: November 26, 2026.

This section covers the decisions that tend to come up after the first AI demo: which model fits a task, how much API usage costs, what can run locally and how to keep an application from retrying itself into a bill.

What changes quickly

Model names, plan limits, API prices and context defaults change. Check the provider’s current documentation before relying on a number from an older article. The API pricing page is dated; the other guides avoid fixed leaderboard claims where the result depends on a particular task or account.

How to use the coding guides

Start with one task from your own work. Give two tools the same input, inspect the results without looking at the brand, and run your test suite. That will tell you more about fit than a generic “best AI” list.

For privacy, read the data terms for the exact product and plan. A consumer chat subscription, developer API and local model can have different retention and training rules.

Choosing between chat, API and local inference

Use a chat product when a person is asking questions interactively and the plan includes the features they need. Use an API when software needs repeatable requests, structured output, or integration with an application. Run a model locally when hardware, privacy requirements, or repeated offline work justify the setup.

These options are not interchangeable. A chat subscription may not include API credits. An API account may not include the same document tools as the consumer interface. A local model may need more setup and can rely on a separate application that still sends data to a hosted service. Check the product terms and the actual data path before choosing.

Measure the whole task

Token price is one part of cost. Include retries, output length, time spent correcting answers and the cost of running hardware. A model that generates a low-cost response but needs extensive review may be more expensive than a higher-priced model that produces an accepted result.

For a small comparison, write down an acceptance rule before running the prompt. For code, require the project tests to pass and inspect the diff. For extraction, validate the output against a schema. For a summary, compare factual claims with the source document. Record failures as well as successful examples so a polished answer does not skew the result.

If the task is sensitive, include permission boundaries in the evaluation. An agent that can edit files should not receive broad access by default. Start with a limited folder, keep credentials outside its prompt, and review changes before merging or deploying.

Treat model output as a draft

Language models can produce fluent statements that are outdated or unsupported. For current prices, product features, laws, or security issues, check the primary source. For a calculation, verify the arithmetic. For a code change, run the relevant tests. A citation is useful only if it opens and supports the sentence beside it.

When the model lacks information, tell it whether to ask a question, mark the gap, or leave the field blank. This is especially important in customer-facing copy and structured data. A prompt cannot recover facts that were never supplied, and a larger context window does not guarantee the model noticed every relevant detail.

Keep a simple evaluation record

You do not need a large benchmark to make a practical choice. Keep a small set of representative tasks and rerun them when you change models, system prompts, tool access, or provider settings. Include a normal case and at least one awkward edge case.

Track the model and date, prompt version, settings, result, review time and any failure. For API use, log input and output usage separately. For local inference, record model tag, quantization, context length and machine. This makes later comparisons useful when defaults or model versions change.

Do not compare results from different prompts or different permissions as if they were a model-only test. If one candidate had access to the repository and another received only a pasted file, the comparison measures the whole setup, not just the underlying model.

When a result needs a human decision

Use the model to organize evidence, draft options, or identify questions. Keep a qualified person responsible for decisions with material consequences, such as approving a financial action, changing production systems, or interpreting a contract. The tool can make review faster, but it does not take responsibility for the outcome.

For routine tasks, choose a proportionate review. A low-risk format conversion may need an automated schema check. A code change that touches authentication needs tests and human review. A summary used to make a business decision should link back to source passages that the reader can verify.

FAQ

Where do the API price figures come from?

The price guide links to provider pricing pages for OpenAI, Anthropic, Google and Mistral. Check those sources again before budgeting because rates can change.

Are these guides based on benchmark tests?

The coding guide gives a method for testing candidates on your repository. It does not claim a lab benchmark or hands-on ranking for every model.

Is local AI automatically private?

No. The model can run locally while the connected app uses cloud features or external tools. Check the full data path and the selected model.

Are the guides also available in Polish?

Yes. Polish versions of this topic set live in the Polish tree, reachable with the language switcher in the header.

Sources