Skip to content
All articles
By Kiia Verified on 8 min read

How much does an AI agent cost? Cheap models priced per task

TL;DR. To estimate how much an AI agent costs, multiply billable tokens by their rates and monthly volume. Add retries, tools, integration and review minutes. Qwen4-Max and Hy4 Flash expand the pricing options, but the choice depends on cost per accepted task in your process. Copy the template below and recalculate three illustrative examples.

Official prices and sources checked on November 16, 2026, Europe/Madrid. Amounts are in USD. This article focuses on the cost of an automation using rates from this date. The guide to the full cost of an AI agent covers the wider channel, infrastructure and maintenance budget.

Calculate a complete task

For email classification, count instructions, the message, retrieved context, tool definitions and any subsequent calls. For an invoice, add document or image tokens according to the billing modality. Measure billable output, including reasoning where the provider charges for it. Check each model’s usage counters.

For an initial estimate with similarly sized calls, use this formula. r means additional calls per task divided by initial calls. An r = 0.10 assumes one additional full call for every ten initial calls.

API cost per execution = (input tokens × input price
                        + output tokens × output price) / 1,000,000
Monthly API cost = monthly tasks × (1 + r) × API cost per execution
Review cost = monthly tasks × fraction reviewed
              × minutes per review / 60 × hourly cost
Monthly total = API + review + tools + infrastructure
                + maintenance + amortized integration
Cost per accepted task = monthly total / accepted tasks

If an agent makes several calls per execution, add their costs. If retries include a longer history or switch models, calculate each route separately. Context resent on each turn contributes to usage again. Record the cost of correcting or recovering failures too.

Official prices for the template

API rates per million tokens, using uncached input and standard output. These are consumption prices. Budget taxes and currency conversion for your account. The table shows list prices except for the explicitly labeled Gemini promotion. Commercial availability in your country and any account-specific contract conditions remain to be verified with the provider.

Model and channelInput USD/1MOutput USD/1MScope and conditionsSource and check date
Qwen4-Max, Model Studio1.504.50Singapore, International deployment, input up to 1M. Thinking and Non-ThinkingAlibaba Cloud pricing, Nov 16, 2026
Hy4 Flash, TokenHub0.0700.281List price, Singapore table. Temporary 50% discount until Nov 30, 2026 at 12:00 Beijing timeTencent Cloud pricing, Nov 16, 2026
Claude Haiku 5.5, Claude API0.100.50Prompts up to 100,000 tokens. Above that, 0.50/2.50Anthropic pricing, Nov 16, 2026
Gemini 3.6 Flash, Gemini Developer API0.753.75Paid Standard through Dec 31, 2026. From Jan 1, 2027, 1.50/7.50Google pricing, Nov 16, 2026
Claude Sonnet 5.5, Claude API2.0010.00Standard base rateAnthropic pricing, Nov 16, 2026

The calculations below use Hy4 Flash list prices so you can budget beyond the promotion. For eligible usage during its discount, multiply that column by 0.5. Recalculate Gemini after December. The Gemini Flash and Flash-Lite guide provides context on that family. Use the dated rates in this table for this estimate.

Reading the launch announcements

Alibaba attributes a task-cost reduction versus Qwen3.8-Max of “around 60%” to its internal evaluation. The initial announcement’s “more than 60%” wording remains to be verified. Validate cost with your workload. Alibaba’s official release, Nov 16, 2026.

Tencent compares Hy4 Flash with Claude Haiku 5.5 for “everyday work” and claims similar satisfaction in its own blind tests involving internal WorkBuddy users. This is a manufacturer comparison. To make a decision about your company’s emails or invoices, measure your outcomes with a reviewed sample. Tencent’s official announcement, Nov 16, 2026.

Three illustrative B2B small-business examples

These scenarios use calculation assumptions. To isolate the rate’s effect, every model receives the same token volumes and 10% additional calls of equal size. In a pilot, measure each model’s consumption, errors and review requirements. The table calculates API spending for requested volume. Record final acceptance separately.

TaskAssumed monthly volumeInput per callOutput per callPlanned validation
Classify email and assign a queue10,000 emails2,000 tokens150 tokensValid label and correct queue
Extract invoice fields5,000 invoices4,000 tokens600 tokensSupplier, currency, tax and total checked
Prepare an order or extract a Mexican customs declaration (pedimento)1,000 documents12,000 tokens1,200 tokensFields and line items checked, approval before recording

The invoice example starts with extracted text. The order or customs declaration example starts with a readable document and a defined field schema. Budget OCR, image processing and external validation where your workflow requires them.

Monthly API spending, USDQwen4-MaxHy4 Flash, listHaiku 5.5Gemini 3.6 Flash, promotionSonnet 5.5
Email, 11,000 calls40.432.003.0322.6960.50
Invoice, 5,500 calls47.852.473.8528.8877.00
Order or customs declaration, 1,100 calls25.741.291.9814.8539.60

Amounts rounded to two decimals after calculation. For example, an invoice call using Qwen4-Max costs (4,000 × 1.50 + 600 × 4.50) / 1,000,000 = USD 0.0087. Multiplying by 5,500 calls gives USD 47.85.

Review changes the budget. Suppose a person reviews 20% of the 5,000 invoices, spends two minutes on each and costs USD 12 per hour. That adds USD 400 per month. Using Hy4 Flash at list price, API plus that review would total USD 402.47 before other components. The percentage, minutes and hourly cost are illustrative assumptions. Cost per accepted invoice depends on how many pass the complete process.

Copy this spreadsheet template

Use one row per route and model. Add routes at month end and divide by unique accepted tasks, avoiding counting a retry as another task.

task,model,region,rate_date,source,monthly_volume,input_per_call,output_per_call,input_price_1M,output_price_1M,extra_calls_per_initial,fraction_reviewed,review_minutes,hourly_cost,monthly_tools,monthly_infra,monthly_maintenance,total_integration,amortization_months,accepted_tasks

Calculate amortized integration = total integration / amortization months with an explicit period. After the pilot, replace assumed averages with summed billable tokens and actual minutes. Add cache or additional modality columns if your contract bills them separately.

What to measure beyond the token

Spanish quality needs examples from your clients. Include abbreviations, currencies, date formats, incomplete emails and local terminology. For invoices and customs declarations, record errors by field and severity. A wrong label and a wrong amount require different controls.

Measure end-to-end latency, usage limits and time spent waiting in an exception queue. Include authentication, ERP integration, audit logs, monitoring and connector maintenance in the budget. Record why each retry happened and prevent duplicate orders when repeating an execution.

For tasks requiring more reasoning, you can evaluate an escalation route with its own cost and controls. The Fable 5.2 guide covers that type of evaluation for demanding work.

Privacy and data residency

With Chinese providers, review the service, endpoint and contract you will use. Alibaba documents Singapore storage and says the International scope can run inference on global nodes outside mainland China. Verify the processing country your client requires. Alibaba regions and endpoints, checked Nov 16, 2026.

TokenHub’s agreement allows resources in different countries based on availability. It describes enabled ZDR in Singapore, Frankfurt or Silicon Valley and general retention of up to 30 days without that option for customer and generated content. It includes a restriction on sensitive data. Hy4 Flash eligibility and your exact route’s residency remain to be verified in your account and contract. Tencent processing agreement, checked Nov 16, 2026.

Alibaba announces future smaller open-weight Qwen4 models. Weights and licenses for self-hosting Qwen4-Max or Hy4 Flash remain to be verified. Budget GPUs, operations and security when evaluating self-hosting. Alibaba announcement, Nov 16, 2026.

Before uploading documents, ask legal or your client which fields you may send, which countries and subprocessors they accept, what retention they require and how you will demonstrate deletion. Check training use and coverage of logs, backups and support in the specific contract. These questions help prepare the review with the appropriate owner.

Decide through a pilot of your process

A cheap model deserves a trial when you have high volume, a bounded task and a verifiable output, such as message classification or field extraction with validation rules. Define who handles exceptions and how long each task may take.

For decisions with financial impact, sensitive data or nuanced Spanish, first evaluate permissions, required review and the consequences of an error. If an option fails the data contract or acceptance criteria, exclude it from that route. A midrange model must also demonstrate that it meets those criteria.

Select an authorized real sample with routine cases and exceptions. Set acceptance criteria before running it and keep evaluation conditions consistent. Record tokens, additional calls, human minutes, latency and accepted tasks per model. Use those measurements to complete the template and decide which routes to migrate.

Choose one task from your operation and measure its cost per accepted outcome in a pilot. Prepare the scope with the guide to what to automate first in a business.

Frequently asked questions

How much does an AI agent cost per month for a small business?

It depends on tokens per task, volume, retries and human review, plus integration, tools and maintenance. In the illustrative example of 5,000 invoices, Hy4 Flash API usage at list price totals USD 2.47, while reviewing 20% for two minutes at USD 12/hour adds USD 400. These are calculation assumptions.

Does a cheaper token price reduce cost per task?

It can if the model meets your acceptance criteria with suitable usage and review rates. Compare total spending divided by accepted tasks on a real sample, including errors, retries and human time.

Can I send client invoices to Qwen4-Max or Hy4 Flash?

Confirm the contract, authorized data, processing and storage locations, retention and subprocessors for the specific service. TokenHub includes conditions on sensitive data. The endpoint region and the residency of all inference require specific checks.

From insight to action

Want to turn this into an agent that works for your team?

Tell us which process you want to improve. In a free call, we will identify the first workflow worth building.

Book a free call