Claude chat

Claude API in India: pay in rupees, by UPI

Use Anthropic's Claude models from Claude Code, scripts and your own apps with a GenZDealZ.ai API key. The gateway speaks Anthropic's Messages API, and you pay for tokens in rupees by UPI, card, net-banking or wallet: no international card and no subscription.

GenZDealZ.ai is a separate service from Anthropic. The Claude models are built by Anthropic and run for GenZDealZ.ai on Amazon Bedrock (AWS).

At a glance

Base URLhttps://api.genzdealz.ai (the origin only; clients add /v1/messages themselves)
APIAnthropic's Messages API: POST /v1/messages, streaming included
Keyx-api-key: <your key> or Authorization: Bearer <your key>
ModelsClaude Haiku 5.5, Claude Sonnet 5.5, Claude Opus 5.5 and Claude Fable 5.2
PaymentPrepaid tokens in rupees. Payments go through Cashfree Payments: UPI (BHIM UPI, Google Pay, PhonePe), credit and debit cards, net-banking and wallets.
PacksHaiku 5.5 and Sonnet 5.5 from ₹50, Opus 5.5 from ₹100 and Fable 5.2 from ₹200
Free tokensGet 333,333 free tokens (222,222 Haiku 5.5 + 111,111 Sonnet 5.5) when you verify a new phone number. You can use them in chat and through the API with a genzdealz.ai API key. Opus 5.5 and Fable 5.2 are purchase-only.

1. Get a key

  1. Sign in on GenZDealZ.ai and open Claude.
  2. Get tokens: buy a pack (from ₹50), or verify a new phone number for the free tokens.
  3. Open Manage API Keys. To manage API keys, buy Claude tokens (a redeemed voucher counts) or verify your phone number.
  4. Choose New key. Give it a name, pick the models it may use and set when it expires.
  5. Copy the key (sk-gzd-live_...) straight away. It is shown only once.

Keep the key secret. Never put it in a website's browser code, a screenshot or a public repository. If it leaks, revoke it on the same page: anything using it stops working at once.

2. Make your first call

Set GZD_API_KEY to your key in the terminal, then send a message. The request and the answer are in Anthropic's format.

bash
curl https://api.genzdealz.ai/v1/messages \
  -H "x-api-key: $GZD_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-haiku-5-5",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello, Claude"}]
  }'

Python, with the anthropic package:

python
import os
from anthropic import Anthropic

client = Anthropic(base_url="https://api.genzdealz.ai", api_key=os.environ["GZD_API_KEY"])

message = client.messages.create(
    model="claude-haiku-5-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello, Claude"}],
)
print(message.content[0].text)

JavaScript, with the @anthropic-ai/sdk package:

js
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({ baseURL: "https://api.genzdealz.ai", apiKey: process.env.GZD_API_KEY });

const message = await client.messages.create({
  model: "claude-haiku-5-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello, Claude" }],
});
console.log(message.content[0].text);

Any other client that lets you set an Anthropic base URL and key works the same way: the base URL is https://api.genzdealz.ai without /v1, and the model is one of the ids in section 4.

3. Use it with Claude Code

Set these in the terminal you start Claude Code from (bash or zsh):

bash
unset ANTHROPIC_API_KEY CLAUDE_CODE_USE_BEDROCK CLAUDE_CODE_USE_VERTEX
export ANTHROPIC_BASE_URL="https://api.genzdealz.ai"
export ANTHROPIC_AUTH_TOKEN="<your key>"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-haiku-5-5"
export ANTHROPIC_DEFAULT_SONNET_MODEL="claude-sonnet-5-5"
export ANTHROPIC_DEFAULT_OPUS_MODEL="claude-opus-5-5"
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=8192
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1
export ENABLE_TOOL_SEARCH=false
  • Claude Haiku 5.5, Sonnet 5.5 and Opus 5.5 need Claude Code 2.1.280 or newer. Check with claude --version; update with claude update.
  • Use only ANTHROPIC_AUTH_TOKEN. With ANTHROPIC_API_KEY also set to another value, the gateway answers 401 ambiguous_dual_credential.
  • Do not run /login: the key replaces the claude.ai sign-in. /status should show the base URL above.
  • On Windows, set the same names in PowerShell ($env:ANTHROPIC_BASE_URL = "...") or with setx, then open a new terminal.

4. Models

ModelmodelShort name
Claude Haiku 5.5claude-haiku-5-5haiku
Claude Sonnet 5.5claude-sonnet-5-5sonnet
Claude Opus 5.5claude-opus-5-5opus
Claude Fable 5.2claude-fable-5-2fable
  • A key works only for the models it was created with. GET /v1/models lists what your key may use.
  • Fable 5.2 needs a key that includes it and an account that has bought tokens.
  • Opus 5.5 always thinks before answering: don't send temperature, top_p, top_k, a forced tool_choice, thinking budgets or an assistant prefill (each answers HTTP 400; use output_config.effort instead). Its output tokens include that thinking.
  • Haiku 5.5 thinks by default, and a prompt over 100,000 tokens is billed at 5x on every token of that request.

5. What a request costs

API requests are billed like chat on genzdealz.ai, from tokens of the model you call. One token is one input token of that model. Output counts 5x an input token, cache writes 1.25x (5-minute cache) or 2x (1-hour cache), cache reads 0.1x on Haiku 5.5 and Sonnet 5.5 and 0.05x on Opus 5.5.

ModelTokens for ₹1 todayPacks from
Claude Haiku 5.5171,550₹50
Claude Sonnet 5.58,570₹50
Claude Opus 5.54,280₹100
Claude Fable 5.22,140₹200

Read from the Claude page's live prices. The pricing page lists every pack.

A typical Claude Code turn with the settings above uses about 92,000 Haiku, 92,000 Sonnet or 59,000 Opus tokens (under ₹1, about ₹11 or ₹14), and more with longer conversations.

  • Your balance: GET /v1/credits/balance.
  • What one request cost: its x-gzd-request-id response header, then GET /v1/usage/<request id>.

7. Errors

Errors use Anthropic's format:

json
{"type": "error", "error": {"type": "billing_error", "code": "no_credits", "message": "..."}}
StatusType or codeWhat to do
400model_not_foundUse a model id from the table above. Dated ids such as claude-sonnet-4-5-20250929 are not accepted.
401api_key_requiredNo key reached the gateway: the variable is not set in this terminal or process.
401ambiguous_dual_credentialANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN hold different values. Unset ANTHROPIC_API_KEY and keep only ANTHROPIC_AUTH_TOKEN.
401authentication_errorThe key is mistyped, revoked or expired. Create a new key.
402no_creditsno_paid_creditsNo tokens for the model you called. Tokens are per model: buy tokens for that model.
402request_exceeds_available_creditsThe request is larger than the balance can cover while it runs. Start a new conversation, use a model with more tokens, or top up.
403model_not_permittedmodel_not_allowed_on_free_tierThe key is not allowed this model. Create a key that includes it; a key on free tokens alone takes Haiku 5.5 and Sonnet 5.5 only.
429rate_limit_errorWait the Retry-After seconds and retry. A response with x-should-retry: false is not worth retrying.

When you ask for help, quote the x-gzd-request-id header, the time and the error. Never send the key, not even its first characters.

Frequently asked questions

Can I pay for the Claude API with UPI in India?

Yes. GenZDealZ.ai sells prepaid Claude tokens in rupees, paid through Cashfree Payments by UPI (BHIM UPI, Google Pay, PhonePe), credit or debit card, net-banking or wallet. You don't need an international card. An API key spends those tokens.

What is the smallest amount I can start with?

Packs start at ₹50: Haiku 5.5 and Sonnet 5.5 from ₹50, Opus 5.5 from ₹100 and Fable 5.2 from ₹200. There is no subscription and no monthly minimum.

Does it work with Claude Code?

Yes. Set ANTHROPIC_BASE_URL to https://api.genzdealz.ai and ANTHROPIC_AUTH_TOKEN to your key. Claude Haiku 5.5, Sonnet 5.5 and Opus 5.5 need Claude Code 2.1.280 or newer.

Is this Anthropic's own API?

No. It is GenZDealZ.ai's gateway. GenZDealZ.ai is a separate service from Anthropic. The Claude models are built by Anthropic and run for GenZDealZ.ai on Amazon Bedrock (AWS). The gateway speaks Anthropic's Messages API (POST /v1/messages), so clients built for that API work with it, but keys, billing and support are GenZDealZ.ai's: a GenZDealZ key (sk-gzd-live_...) does not work at api.anthropic.com, and an Anthropic key does not work here.

Which models and endpoints are available?

Claude Haiku 5.5, Sonnet 5.5, Opus 5.5 and Fable 5.2, through POST /v1/messages (streaming included), POST /v1/messages/count_tokens, GET /v1/models, GET /v1/credits/balance and GET /v1/usage. Fable 5.2 needs a key that includes it and an account that has bought tokens.

Do free tokens work with the API?

Yes. Free tokens are spent through an API key too, before paid ones. A key on free tokens alone has limits: Haiku 5.5 and Sonnet 5.5 only, no web search and fewer requests at a time. The Manage API Keys page shows them, and buying any pack lifts them on the same key.

We don't use your chats for advertising and we never sell them. How requests are processed is in the privacy policy's Claude section. Guide checked on 17 November 2026. Questions: contact us.