Skip to main content

Claude vs GPT vs Gemini: An API Comparison for Developers (2026)

By Pashalis LaoutarisUpdated: Category: AI & LLM Development26 min read

Choosing a model API used to be simple. You picked the best model and wrote code against it. In 2026 you face three serious vendors, each with a family of models, its own pricing tricks, its own way of calling tools, and its own habit of changing things every few months.

This guide compares the three APIs that most developers consider: Anthropic’s Claude API, the OpenAI API, and the Gemini API from Google. It is about the developer experience and the economics. It is not a leaderboard. I will not rank the models by intelligence, because any ranking I wrote would be stale within weeks and would not match your task.

A transparency note: I drafted this article with the help of an AI assistant built by Anthropic, which is one of the three vendors compared here. To keep that from tilting the result, I limited every claim to what the official documentation says, and I used the same standard for all three. Check the linked sources if a Claude statement looks too kind.

I did not call any of the three APIs for this article, because I did not use paid keys. Every price, limit, and feature below comes from the vendors’ own documentation, which I read on November 19, 2026. The code samples follow the documented shapes and are untested. Treat the numbers as a snapshot, because several of them are already scheduled to change.

This is the final article in my AI and LLM series. It follows my guides to MCP servers, local LLM tooling, and agent frameworks.

Table of Contents

  1. The Short Answer
  2. The Current Lineups
  3. Feature Comparison at a Glance
  4. Your First Request in Each SDK
  5. Pricing and the Real Cost of a Task
  6. Prompt Caching and Batch
  7. Tool Use and MCP
  8. Structured Outputs
  9. Thinking and Reasoning Controls
  10. Context Windows and Long Prompts
  11. Stability, Lifecycle, and Lock-In
  12. Data Handling Notes
  13. How to Choose
  14. Common Mistakes
  15. Frequently Asked Questions
  16. Conclusion
  17. References

1. The Short Answer

All three vendors now offer a million-token context window, tool calling, structured outputs, prompt caching, a half-price batch mode, and adjustable reasoning. The differences that matter most are in the details.

If you care most about… Look at first
The lowest price for simple, high-volume work The smallest model from each vendor. Two of them list the same price of $0.10 and $0.50 per million tokens.
Predictable pricing across long prompts Claude, where most current models bill the full 1M window at one rate. Check the one exception.
A single API that covers text, tools, and state The OpenAI Responses API or the Gemini Interactions API. Both add server-side state.
Controlling every step of an agent loop The Claude Messages API or a framework. Section 7 explains the trade.
Calling remote MCP servers from the API All three have a path. Claude and OpenAI document one directly. Check Gemini’s current docs.
Avoiding churn Whoever publishes the clearest retirement dates, then a thin adapter layer in your own code.

Three rules cover most of the value.

  • Compare cost per finished task, not per token: Tokenizers differ, caching differs, and reasoning effort changes output length.
  • Run your own evaluation: Ten real prompts on all three will tell you more than any benchmark chart.
  • Keep a seam in your code: Wrap the vendor call in one small module so you can switch when prices or models change.

2. The Current Lineups

Each vendor sells a ladder of models. The names differ, but the tiers line up. The table lists what the official pages showed on November 19, 2026. Prices are USD per million tokens, input first and output second.

Tier Claude OpenAI Gemini
Top reasoning Fable 5.2 (claude-fable-5-2): $8 / $40 GPT-6.2 Astra (gpt-6.2-astra): $8 / $40 Gemini 4 Carbon (gemini-4-carbon): $4 / $20 since Dec 1, 2026 (was $2 / $10)
Strong all-rounder Opus 5.5 (claude-opus-5-5): $4 / $20 None at this exact rung Gemini 4 Neon (gemini-4-neon): $3 / $15
Everyday workhorse Sonnet 5.5 (claude-sonnet-5-5): $2 / $10 GPT-6.2 Sol (gpt-6.2-sol): $2 / $10 Gemini 4 Hydrogen (gemini-4-hydrogen): $1.50 / $7.50
Fast and cheap Haiku 5.5 (claude-haiku-5-5): $0.10 / $0.50 for prompts up to 100K tokens GPT-6 Luna (gpt-6-luna): $0.10 / $0.50 Gemini 3.5 Flash-Lite (gemini-3.5-flash-lite): $0.30 / $2.50

Notes on reading the table.

  • Claude: Anthropic’s guidance says to start with Opus 5.5 for most workloads and to move to Fable 5.2 for demanding reasoning and long-horizon agentic work. All four models list a 1M-token context window and 128K tokens of maximum output.
  • OpenAI: The models page lists four flagships, Astra, Sol, Terra (gpt-6.1-terra, $1 / $5), and Luna. All list a 1.05M-token context window and 128K tokens of output. The pricing page also lists many older models, such as the GPT-5 family and GPT-4.1, so you will see a long tail of IDs.
  • Gemini: The Gemini 4 line has four models, Carbon, Neon, Hydrogen, and Argon (gemini-4-argon), which is priced like Carbon. They share a 1M-token context window and accept text, images, audio, video, and PDF input. The Gemini 3.x line continues, with gemini-3.8-flash priced at $0.75 / $3.75 today and scheduled to double on January 1, 2027.
  • The Haiku caveat: Claude Haiku 5.5 charges $0.50 / $2.50 for prompts over 100,000 tokens.
  • Scheduled price changes: Google’s page shows future prices in parentheses for several models, so plan for them in your budget.

The names are not strict equivalents. A model at the same tier from two vendors can differ a lot in quality and behavior. Use the table to find candidates, then test them.

3. Feature Comparison at a Glance

Area Claude OpenAI Gemini
Main API Messages API Responses API Interactions API, with generateContent still supported
Python package anthropic openai google-genai
JavaScript package @anthropic-ai/sdk openai @google/genai
Other official SDKs Java, Go, Ruby, C#, PHP .NET, Java, Go Go, Java, C#
Context window 1M tokens on current models 1.05M tokens on the four flagships 1M tokens on Gemini 4
Reasoning control Adaptive thinking plus an effort setting Reasoning levels from low to max thinking_level per model
Prompt caching Explicit breakpoints, plus automatic top-level caching Automatic by default Implicit by default
Batch discount 50% 50% 50%
Structured outputs output_config.format and strict tool use text.format with a JSON Schema and strict: true response_format with a JSON Schema
Remote MCP from the API MCP connector (beta header) mcp tool in the Responses API Not found in the pages I read
Hosted web search Yes, $10 per 1,000 searches Yes, $10 per 1,000 calls Check the current docs

I filled each cell from the vendor documentation. Where I did not find something, the cell says so, because a missing mention is not proof of a missing feature.

4. Your First Request in Each SDK

These examples follow the documented shapes. I did not run them, since that needs paid API keys.

Claude, using the anthropic package:

from anthropic import Anthropic

client = Anthropic()  # reads ANTHROPIC_API_KEY
message = client.messages.create(
    model="claude-opus-5-5",
    max_tokens=16000,
    messages=[{"role": "user", "content": "Explain how AI works in a few words."}],
)
print("".join(b.text for b in message.content if b.type == "text"))

OpenAI, using the openai package:

from openai import OpenAI

client = OpenAI()  # reads OPENAI_API_KEY
response = client.responses.create(
    model="gpt-6.2-sol",
    input="Explain how AI works in a few words.",
)
print(response.output_text)

Gemini, using the google-genai package:

from google import genai

client = genai.Client()  # reads GEMINI_API_KEY
interaction = client.interactions.create(
    model="gemini-4-hydrogen",
    input="Explain how AI works in a few words.",
)
print(interaction.output_text)

Three differences stand out.

  • Required output limit: The Claude call needs max_tokens. The other two do not.
  • Response shape: Claude returns a list of content blocks, so you filter for text. The other two give you a convenience property.
  • State: The OpenAI and Gemini calls can keep conversation state on the server. Claude’s Messages API is stateless, so you resend the history each turn.

Gemini’s documentation says the Interactions API became generally available in June 2026 and is recommended for new projects. The older generateContent method remains fully supported but lacks the stateful, step-based features. Many tutorials online still show the old shape, so check the date on anything you copy.

Google also deprecated its older client libraries as of November 30, 2025. The current packages are google-genai and @google/genai, and the older google-generativeai family is no longer maintained.

5. Pricing and the Real Cost of a Task

List prices are the easy part. Real cost depends on how many tokens your task uses, how much of the input is cached, and whether you can run it in batch.

A worked example

Take a monthly workload of 50 million input tokens and 5 million output tokens. The formula is input millions × input price + output millions × output price. I computed these totals from the list prices in section 2. They assume equal token counts across vendors, which is not true in practice. To try your own numbers, use my free LLM API cost calculator, which adds caching, batch, long prompts, and tokenizer differences.

Tier Model List price Batch (50% off)
Top reasoning Claude Fable 5.2 $600 $300
Top reasoning GPT-6.2 Astra $600 $300
Top reasoning Gemini 4 Carbon $300 $150
Strong all-rounder Claude Opus 5.5 $300 $150
Strong all-rounder Gemini 4 Neon $225 $112.50
Workhorse Claude Sonnet 5.5 $150 $75
Workhorse GPT-6.2 Sol $150 $75
Workhorse Gemini 4 Hydrogen $112.50 $56.25
Fast and cheap Claude Haiku 5.5 $7.50 $3.75
Fast and cheap GPT-6 Luna $7.50 $3.75
Fast and cheap Gemini 3.5 Flash-Lite $27.50 $13.75

The table shows how close the prices are within a tier, and it also shows a trap. Gemini 4 Carbon was half this price when I first wrote this article. Its price doubled on December 1, 2026, as Google’s page had announced. Its list price now equals Claude Opus 5.5’s, so check announced price changes before you commit to a model.

Why token counts are not comparable

Each vendor uses its own tokenizer, so the same text produces different token counts. Anthropic’s documentation notes that its current tokenizer, introduced with Claude Opus 4.7, fits about 555,000 words into one million tokens, compared with about 750,000 words for earlier models. I did not measure the other two. Measure your own prompts through each vendor’s token counting feature, and compare the totals.

Reasoning also changes cost. Thinking tokens generally count toward output, which is billed at the higher rate, and higher effort settings produce more of them. Confirm the exact rule on each pricing page. A cheaper model that needs three attempts is not cheaper. Judge cost per completed task, using your own evaluation set.

Other costs to include

  • Search tools: Claude lists web search at $10 per 1,000 searches, plus token costs for the content. OpenAI lists $10 per 1,000 calls for its standard web search tool, plus content tokens at model rates.
  • Faster service tiers: OpenAI lists Flex, Fast, and Ultrafast tiers with different multipliers. Claude documents a fast mode on some models. These trade price for latency in different ways, so read each page before you rely on one.
  • Data residency: Claude lists a 1.1x multiplier for US-only inference on current models through the inference_geo parameter.

6. Prompt Caching and Batch

Both features cut cost sharply when your workload suits them, and all three vendors offer both.

Caching

Caching reuses the processed prefix of a repeated prompt. A long system prompt, a large document, or a stable tool list are the classic cases.

Point Claude OpenAI Gemini
How it starts You mark breakpoints, or set top-level automatic caching On by default Implicit caching on by default for 2.5 and newer models
Read price 10% of input price by default, and 5% on Opus 5.5 and Sonnet 5.5 For example, GPT-6.2 Sol lists $0.10 against $2.00 input, which is 5% For example, Gemini 4 Hydrogen lists $0.075 against $1.50 input, which is 5%
Write price Higher than input, for example 1.25x for the 5-minute cache On GPT-5.6 and later, 1.25x for 30 minutes or 2.5x for 12 hours Not covered on the page I read
Minimum prefix Varies by model 1,024 visible tokens on GPT-5.6 and later 4,096 tokens on Gemini 4 and 3.8 Flash
Where to check hits usage.cache_read_input_tokens usage.input_tokens_details.cached_tokens usage.total_cached_tokens

Two cautions apply to all three. A single changed byte early in the prompt breaks the cache for everything after it, so keep volatile content such as timestamps at the end. Also, Gemini lists hourly storage fees for explicit caches on some models, and its page says explicit caching is not supported for Gemini 4 models.

A rough illustration of the effect: if 80% of the input in my worked example is served from cache at the 5% read price, the Sonnet 5.5 and GPT-6.2 Sol totals fall from $150 to about $74. That excludes cache write costs, so treat it as an upper bound on the saving.

Batch

Claude’s documentation lists a 50% discount for batch processing on both input and output. OpenAI says batch rates are 50% of standard for the text models it lists. Google’s page shows batch prices at half of standard for the models I checked. Batch jobs run asynchronously, so they suit evaluations, bulk classification, and nightly reports, and they do not suit interactive features.

7. Tool Use and MCP

Tool use means the model asks your code to run a function, and you send the result back. All three vendors support it, and the differences are in who runs the loop and how much state the server keeps.

Claude keeps the Messages API stateless and flexible. You define tools with JSON Schema, run them yourself, and return results. The strict: true option makes tool inputs match the schema exactly. On the newest models, forced tool choice is removed, so you steer with instructions or use structured outputs instead. Anthropic also offers a beta tool runner in its SDKs that drives the loop for you, and a hosted Managed Agents service for long-running work. My agent frameworks overview covers both.

OpenAI puts tools in the Responses API. Its flagship models support functions, web search, file search, and computer use. Its remote MCP tool uses "type": "mcp" with a server_label and server_url. By default OpenAI requests approval before sharing data with an MCP server, and you can change that with require_approval. The allowed_tools field limits which tools get imported, which cuts cost and latency. The documentation advises using only trusted servers, preferably official ones.

Gemini supports function calling with modes auto, any, none, and validated, parallel calls, and compositional calls that chain one after another. For very large tool libraries, roughly 20 to 30 or more, its docs describe a tool_search tool with defer_loading. In stateful mode, the server tracks the conversation through previous_interaction_id. I did not find a description of MCP client support on the function calling page, so check Google’s current documentation if MCP matters to you.

For Claude, the MCP connector takes two parts: an mcp_servers list and an mcp_toolset entry in tools, under a beta header. My MCP servers guide shows the request shape and the security rules that apply to all three vendors.

What this means for you:

  • If you want the least magic and the most control over the loop, the stateless Claude design is the most explicit.
  • If you want the server to hold state and run built-in tools, the OpenAI and Gemini designs do more for you.
  • If you plan to use MCP, remember the same prompt injection risks apply no matter which API calls the server.

8. Structured Outputs

Structured outputs make the model’s reply match a JSON Schema, so your code can parse it without guessing.

Point Claude OpenAI Gemini
How you ask output_config with a format object, or strict: true on a tool text.format with type: "json_schema" and strict: true response_format with mime_type: "application/json" and a schema
SDK helper messages.parse() validates against your schema responses.parse() with a Pydantic model or Zod schema Pydantic and Zod supported through JSON Schema conversion
What the docs warn about Citations cannot be combined with structured output format Handle refusals and incomplete responses before you use the output Some keywords, such as minLength and maxLength, are not enforced

Three habits help with all of them.

  • Validate in your own code anyway: A schema guarantees shape, not truth. A field can be valid and wrong.
  • Handle refusals and truncation: OpenAI’s guide says to check for refusals and for incomplete responses before you use the output.
  • Keep schemas simple: Google’s docs say overly complex schemas return a 400 error, and they suggest flattening nesting and reducing unions.

One related detail: Claude’s newest models removed forced tool choice, so developers who used a forced tool call just to get JSON should switch to structured outputs. Ollama and other local servers offer similar schema features, as I describe in my local LLM guide.

9. Thinking and Reasoning Controls

All three vendors let you trade speed and cost for deeper reasoning.

  • Claude: Current models use adaptive thinking, where the model decides how much to think, steered by an effort setting from low to max. Defaults differ by model. Opus 5.5 and Haiku 5.5 default to medium, while Fable 5.2 and Sonnet 5.5 default to high. On Fable 5.2 and Opus 5.5, thinking is always on, and the older budget-token style of control is not accepted. Thinking output is hidden by default unless you request a summary.
  • OpenAI: The flagships take reasoning levels. Astra and Sol list low, medium, high, xhigh, and max. Terra and Luna add a none level.
  • Gemini: The thinking_level setting varies by model. Gemini 4 Carbon and Argon default to medium with levels low, medium, and high. Neon and Hydrogen default to high and add xhigh. Summaries of thoughts are available when you set thinking_summaries to auto.

A practical tip: effort settings change both quality and cost, and the vendors disagree on defaults. Set the level explicitly in your code, and test two levels on your evaluation set before you pick one.

Multi-turn tool use adds one more rule. Gemini’s documentation says that in stateless mode you must resend thought blocks exactly as received. Claude’s documentation gives a similar rule for thinking blocks, with extra checks on the newest models. If you edit conversation history, test that loop carefully.

10. Context Windows and Long Prompts

A million-token window sounds identical across vendors, but the pricing around it is not.

  • Claude: Models from 4.6 onward, except Haiku 5.5, include the full 1M window at standard pricing. A 900,000-token request is billed at the same per-token rate as a 9,000-token one. Haiku 5.5 is the exception, with higher prices past 100,000 tokens.
  • OpenAI: The page splits pricing at 272,000 input tokens. Above it, GPT-6.2 Sol rises from $2 / $10 to $4 / $15 per million tokens.
  • Gemini: Only Gemini 3.1 Pro Preview and the deprecated 2.5 Pro list separate prices above 200,000 tokens. The Gemini 4 models list a single price.

A bigger window does not mean better recall. Long prompts cost more, run slower, and can bury the facts that matter. Retrieval and good summaries still beat stuffing everything into context for many tasks.

11. Stability, Lifecycle, and Lock-In

Your biggest long-term risk is not a price. It is the steady churn of the whole ecosystem. Models retire, aliases move, prices change, and SDKs get replaced.

  • Retirement commitments: Anthropic publishes a minimum retirement date for each current model on platforms it operates. For example, Opus 5.5 is listed as not retiring sooner than September 22, 2027, and Haiku 5.5 not sooner than October 7, 2027.
  • Moving aliases: Google’s pricing page says that from December 1, 2026, requests to gemini-2.5-pro route to Gemini 3.8 Flash, and requests to gemini-2.5-flash route to Gemini 3.5 Flash-Lite. If your code relies on an old name, its behavior has changed under you.
  • Scheduled price changes: Google raised prices for Gemini 4 Carbon and Argon on December 1, 2026, and its page lists another increase for Gemini 3.8 Flash on January 1, 2027.
  • Legacy SDKs: Google deprecated its older client libraries in late 2025. OpenAI’s SDK pages now show the Responses API in every example.
  • Moving documentation: Google’s docs now live at aistudio.google.com, and older ai.google.dev links redirect there.
  • Pre-release status: Some Gemini models carry a preview label, and preview models usually come with weaker stability promises.

Ways to limit the damage:

  • Pin exact model IDs, and never rely on a moving alias.
  • Put every vendor call behind one small adapter in your code.
  • Keep your prompts and evaluation set in version control, so you can re-test a new model in an hour.
  • Track the retirement and pricing pages of each vendor you use.
  • Avoid features that exist on only one vendor unless they earn their lock-in.

12. Data Handling Notes

Read the data terms before you send anything sensitive, because they differ by vendor, feature, and plan.

  • Stateful features store data: Gemini’s Interactions API stores interactions by default. The documentation says paid-tier data is kept for 55 days and free-tier data for one day, and that store=false makes a request stateless. Claude’s Managed Agents service is stateful too, and Anthropic says it is not eligible for Zero Data Retention or HIPAA coverage, except for the self-hosted option.
  • Free tiers may differ: Google’s pricing page says free-tier usage for some models may be used to improve its products. Check the exact wording for the model you use.
  • Residency options exist: Claude offers US-only inference through a parameter, at a price multiplier. Check the other vendors’ pages for equivalents.
  • Third-party servers have their own rules: OpenAI’s MCP guide says data sent to an MCP server follows that server’s own retention and residency policies.

For regulated data, involve your security and legal teams, and read the current enterprise terms rather than a blog post, including this one. My guides to secrets management and supply chain security cover the habits that protect the rest of your stack.

13. How to Choose

Work through these questions in order.

  1. What is the task? Classification and extraction usually fit a small model. Agentic coding and long reasoning usually need a top tier.
  2. What is your volume? At millions of requests, the price per task dominates, and batch and caching become design inputs.
  3. What must be real time? Interactive features rule out batch, and they make latency and fast tiers matter.
  4. Do you need server-side state? If yes, look at the OpenAI Responses API and the Gemini Interactions API. If you want to own state, the Claude Messages API fits.
  5. Which cloud are you on? Anthropic lists Claude on Amazon Bedrock, Google Cloud, and Microsoft Foundry, which can simplify procurement. Check the other vendors’ cloud options for your account.
  6. What are your data rules? Residency, retention, and zero-retention eligibility can decide the matter before quality does.
  7. How much lock-in can you accept? Prefer portable prompts and a thin adapter.

Then run a bake-off.

  1. Write ten to thirty real prompts from your product, with expected answers or a scoring rubric.
  2. Run each candidate at two effort levels.
  3. Record quality, tokens used, latency, and cost per task.
  4. Add the failure cases, such as refusals and invalid JSON, to your results.
  5. Repeat the test whenever a vendor ships a new model.

Many teams end up with a mix. A small, cheap model handles routing and extraction, a mid-tier model handles the main work, and a top-tier model handles the hard cases. A router in your own code keeps that flexible.

14. Common Mistakes

  • Comparing list prices only: Tokenizers, caching, and reasoning effort change what a task really costs.
  • Trusting benchmark charts: They rarely match your prompts. Build your own test set.
  • Using moving aliases in production: Pin exact model IDs and watch the retirement pages.
  • Ignoring scheduled price changes: A cheap model today can double in a month, as Google’s page shows.
  • Copying old code: Tutorials for the Chat Completions API, generateContent, or older SDK packages may still work and still be out of date.
  • Leaving effort at the default: Defaults differ across vendors and models, and the wrong level wastes money or quality.
  • Skipping refusal and truncation checks: Structured outputs can fail without an HTTP error.
  • Forgetting the cache rules: One early change in a prompt kills the cache for everything after it.
  • Storing sensitive data in stateful APIs without reading the retention terms: Server-side state is convenient and it persists.
  • Locking your whole codebase to one vendor’s SDK types: Wrap them.

15. Frequently Asked Questions

Which API is best for developers in 2026?

There is no single best choice. All three offer strong models, a million-token context, tools, caching, and batch discounts. The right answer depends on your task, your cloud, your data rules, and your budget, and an evaluation on your own prompts settles it.

Which API is cheapest?

It depends on the tier and the date. Within the budget tier, Claude Haiku 5.5 and GPT-6 Luna list the same $0.10 and $0.50 per million tokens. Gemini 4 Carbon was the cheapest top-tier model until its price doubled on December 1, 2026, and it still costs half as much as Fable 5.2 or GPT-6.2 Astra. Compute cost per task, not per token.

Do all three support a one-million-token context window?

The current top models do. Claude’s four current models list 1M tokens, OpenAI’s four flagships list 1.05M, and the Gemini 4 line lists 1M. Pricing for long prompts differs by vendor, so read the pricing pages.

Which API has the best prompt caching?

All three give large read discounts. The listed read prices in my examples were about 5% of the input price for Claude Sonnet 5.5, GPT-6.2 Sol, and Gemini 4 Hydrogen. The differences are in write costs, minimum prefix lengths, and how much you control the cache.

Can I call MCP servers directly from the API?

Claude and OpenAI both document a way to do it. Claude uses an MCP connector with a beta header, and OpenAI uses an mcp tool in the Responses API. I did not find MCP client support described in the Gemini pages I read, so check Google’s current docs.

Are the SDKs similar?

They are similar in spirit and different in detail. All three ship official Python and JavaScript packages. Response shapes, required parameters, and state handling differ, which is why a small adapter in your own code is worth writing.

What is the Gemini Interactions API?

It is Google’s newer, stateful interface for models and agents. It became generally available in June 2026, and Google recommends it for new projects. The older generateContent method remains supported.

Is it safe to switch vendors later?

It is easier if you plan for it. Keep prompts in version control, wrap vendor calls in one module, avoid vendor-only features where you can, and keep an evaluation set. Then switching is a test run instead of a rewrite.

Do I need a framework to use several vendors?

No, you do not. A thin adapter can do the job, and many agent frameworks also support several providers. My agent frameworks overview lists which ones.

Can I run any of these models locally?

Not the models from these three vendors. For local work, you would use open-weight models through tools like Ollama and LM Studio, which my local LLM guide covers.

16. Conclusion

The three APIs have converged on the same big ideas. Million-token windows, cached prefixes, half-price batches, adjustable reasoning, and schema-checked outputs are everywhere. The remaining differences are real, but they are smaller than the marketing suggests.

What differs most is behavior over time. Prices move, aliases reroute, SDKs get replaced, and defaults change. A good developer plan assumes that churn and protects against it with pinned model IDs, a thin adapter, and a test set you trust.

Start with your own tasks. Shortlist one model from each vendor at the right tier, run them side by side, and compare cost per finished task. Revisit that test every few months, because the answer will change.

That closes this series on AI and LLM development. You now have the pieces: a protocol for tools, a way to run models locally, a map of the agent frameworks, and a clear view of the APIs underneath.

17. References

Official Anthropic API documentation:

Official OpenAI API documentation:

Official Google Gemini documentation:

Related posts on this site:


Back to All Posts
Share this post:
Share on X
Share on LinkedIn
Share on Reddit
Share on Facebook
Copy Link
Copied!