Claude Code

Tarification Claude Code en 2026

There are four ways to pay for Claude Code: the free tier, the $20 plan (Pro), the $100 plan (Max), or a pay-as-you-go API key. RunAPI mirrors every Claude model at half the official rate for the API route.

Mis à jour le June 18, 2026 RunAPI Editorial
En un coup d'œil

Combien coûte Claude Code ?

Claude Code itself is free to install. What you pay for is model usage. You can use a subscription with fixed monthly limits, or an API key billed per token with no cap. If you keep hitting the limit on your current plan, that's the right signal to upgrade — not the model name on the box.

Niveau gratuit

Utilisation limitée de Claude Code sans frais. Suffisant pour essayer l'outil, pas assez pour un travail quotidien.

Pro ($20/mois)

The $20 plan gives Sonnet access with modest daily limits. Fine for light, individual use — most people don't need more.

Max ($100/mois)

The $100 plan adds higher limits and Opus access. Note: Opus burns through your 5-hour block about 2x faster than Sonnet. The $200 plan gives 5x the usage of the $100 plan.

API via RunAPI

Pay per token with no cap. Sonnet 4.6 at $3/M input and $15/M output — 50% off official. No hitting limits mid-session.

Quatre façons de payer

Gratuit vs Pro vs Max vs API — quel plan Claude Code vous convient ?

The subscriptions trade a fixed monthly fee for usage caps. The API route has no cap and full model choice — you pay per token and scale freely. The table compares all four so you can match the plan to how much you actually code.

Plan Prix Modèles & limites Idéal pour
Gratuit $0 Sonnet limité, faible limite quotidienne Essayer Claude Code
Pro $20/mois Sonnet, limites quotidiennes modestes Codage individuel léger
Max $100/mois ($200 pour 5x) Sonnet + Opus, limites élevées Utilisateurs quotidiens intensifs
API via RunAPI Paiement par token Tous les modèles Claude, sans limite Équipes, CI, configurations multi-modèles

Subscriptions cap usage by session over a 5-hour block window. On the $100 plan, Opus burns through a block roughly 2x faster than Sonnet — if you want the full session, stick to Sonnet. The API has no block limit — you pay for the tokens you use.

Coût par niveau d'utilisation

Quel est le coût de Claude Code à différents niveaux d'utilisation ?

La voie la moins chère dépend de la quantité que vous codez. Le tableau estime le coût mensuel de l'API via RunAPI à quatre niveaux d'utilisation et montre quand un abonnement devient la meilleure option.

Niveau d'utilisation Tokens de sortie approximatifs/mois Coût API via RunAPI (Sonnet 4.6) Voie la moins chère
Occasionnel ~1M ~$15/mois API ou Pro
Quotidien léger ~3M ~$45/mois API
Quotidien intensif ~6,7M ~$100/mois Seuil de rentabilité avec Max
Utilisateur avancé ~15M+ ~$225/mois+ Max ($100 ou $200)

Les estimations utilisent Sonnet 4.6 à $15/M de sortie via RunAPI. Les tokens d'entrée et les remises sur le cache réduisent le total réel. Le seuil de rentabilité avec Max ($100/mois) se situe autour de 6,7M de tokens de sortie par mois.

La voie API

Comment la voie RunAPI réduit-elle de moitié votre facture Claude Code ?

Instead of a fixed subscription, you point Claude Code at the RunAPI endpoint and pay per token at 50% of Anthropic's published rates. No monthly cap, no hitting limits mid-session, and every Claude model is available.

50 % de remise sur chaque modèle

Sonnet 4.6 à $3/M en entrée et $15/M en sortie. Opus 4.7 à $5/M en entrée et $25/M en sortie. Haiku 4.5 à $1/M en entrée et $5/M en sortie. Tous à la moitié du tarif officiel.

Pas de limite d'utilisation

Unlike Pro and Max, the API does not cut you off after a 5-hour block. You pay for what you use and keep working through long sessions without watching the clock.

Les remises sur le cache s'appliquent

Claude Code réutilise le même prompt système et le même contexte de fichier à chaque requête. Les lectures du cache coûtent 90 % de moins, de sorte que les factures réelles sont inférieures au tarif par token affiché.

Contrôler la longueur de sortie

Définissez CLAUDE_CODE_MAX_OUTPUT_TOKENS pour limiter les tokens par réponse. Des limites plus basses réduisent le coût sur les tâches verbeuses ; augmentez-les quand vous avez besoin de longs edits en une seule passe.

Premiers pas

Comment utiliser une clé RunAPI dans Claude Code

1

Créer un compte RunAPI

Inscrivez-vous sur runapi.ai et créez une clé API depuis Tableau de bord → Clés API. Aucune carte de crédit requise pour le niveau gratuit.

2

Définir l'URL de base

Exportez ANTHROPIC_BASE_URL=https://runapi.ai pour que Claude Code route les requêtes via RunAPI au lieu de l'endpoint par défaut.

3

Définir votre clé API

Exportez ANTHROPIC_API_KEY avec votre clé RunAPI. Claude Code utilise ces deux variables au démarrage — aucune autre modification de configuration n'est nécessaire.

4

Exécuter Claude Code

Lancez claude dans votre projet. Choisissez claude-sonnet-4-6 ou claude-opus-4-7 et codez à 50 % du tarif officiel, avec l'utilisation visible dans le tableau de bord RunAPI.

Questions fréquentes

FAQ Tarification Claude Code

Claude Code est-il gratuit à utiliser ?

Claude Code is free to install and there is a free usage tier with a low daily cap. To do real daily work you need either a Pro or Max subscription, or an API key. The API route through RunAPI is pay-as-you-go at 50% off.

Is it worth paying $200 instead of $20 for Claude Max?

It depends on the route. The $20 plan (Pro) works for light individual use. The $100 plan (Max) suits daily heavy users. The $200 plan gives 5x the usage of Max. The API route has no fixed fee — at light use it runs around $45/month through RunAPI.

I feel like I code everything I need with the $20 plan. Is that normal?

Most people do fine with the $20 plan at the start. The right trigger to upgrade is hitting the usage limit repeatedly — not because you want Opus. Start at $20, hit limits consistently, move to $100. Don't jump straight to $200.

How quickly do you hit rate limits on the $100 vs. $200 plan?

Yes, but watch out. On the $100 plan, Opus burns through your 5-hour block in about 2 hours because it costs more tokens per task. If you want the full 5-hour session, stick to Sonnet-only mode. Opus is worth switching to only when Sonnet loops on the same error 3 or more times.

Is the API cheaper than Claude Max?

For most individual developers, yes. The break-even on Sonnet 4.6 through RunAPI is around 6.7M output tokens per month, the point where API cost reaches the $100 Max fee. Below that the API is cheaper; above it, Max wins on a flat fee.

What is claude code api cost based on?

The API cost is per token. You pay for input and output tokens at the model's rate. Through RunAPI, Sonnet 4.6 is $3/M input and $15/M output — half the official Anthropic rate. Cache reads cut the input cost by a further 90%.

Can I use my own API key in Claude Code?

Yes. Set ANTHROPIC_BASE_URL to https://runapi.ai and ANTHROPIC_API_KEY to your RunAPI key. Claude Code reads both on startup and routes every request through RunAPI without any other change. Persist the two exports in your shell profile so they survive new sessions.

What does CLAUDE_CODE_MAX_OUTPUT_TOKENS do?

It caps how many tokens Claude Code can return in a single response. Lowering it reduces cost on verbose tasks and prevents runaway token spend. Raise it when you need long edits or large file rewrites completed in one pass. Set it as an environment variable before launching.

ARTICLES CONNEXES

Explorer davantage

Exécutez Claude Code à moitié prix.

Create a free RunAPI account, set two environment variables, and code in Claude Code with Sonnet, Opus, or Haiku at 50% off official Anthropic pricing. No subscription required — pay only for what you use.