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 URL | https://api.genzdealz.ai (the origin only; clients add /v1/messages themselves) |
|---|---|
| API | Anthropic's Messages API: POST /v1/messages, streaming included |
| Key | x-api-key: <your key> or Authorization: Bearer <your key> |
| Models | Claude Haiku 5.5, Claude Sonnet 5.5, Claude Opus 5.5 and Claude Fable 5.2 |
| Payment | Prepaid tokens in rupees. Payments go through Cashfree Payments: UPI (BHIM UPI, Google Pay, PhonePe), credit and debit cards, net-banking and wallets. |
| Packs | Haiku 5.5 and Sonnet 5.5 from ₹50, Opus 5.5 from ₹100 and Fable 5.2 from ₹200 |
| Free tokens | Get 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
- Sign in on GenZDealZ.ai and open Claude.
- Get tokens: buy a pack (from ₹50), or verify a new phone number for the free tokens.
- Open Manage API Keys. To manage API keys, buy Claude tokens (a redeemed voucher counts) or verify your phone number.
- Choose New key. Give it a name, pick the models it may use and set when it expires.
- 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.
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:
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:
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):
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 withclaude update. - Use only
ANTHROPIC_AUTH_TOKEN. WithANTHROPIC_API_KEYalso set to another value, the gateway answers 401ambiguous_dual_credential. - Do not run
/login: the key replaces the claude.ai sign-in./statusshould show the base URL above. - On Windows, set the same names in PowerShell (
$env:ANTHROPIC_BASE_URL = "...") or withsetx, then open a new terminal.
4. Models
| Model | model | Short name |
|---|---|---|
| Claude Haiku 5.5 | claude-haiku-5-5 | haiku |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | sonnet |
| Claude Opus 5.5 | claude-opus-5-5 | opus |
| Claude Fable 5.2 | claude-fable-5-2 | fable |
- A key works only for the models it was created with.
GET /v1/modelslists 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 forcedtool_choice,thinkingbudgets or an assistant prefill (each answers HTTP 400; useoutput_config.effortinstead). 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.
| Model | Tokens for ₹1 today | Packs from |
|---|---|---|
| Claude Haiku 5.5 | 171,550 | ₹50 |
| Claude Sonnet 5.5 | 8,570 | ₹50 |
| Claude Opus 5.5 | 4,280 | ₹100 |
| Claude Fable 5.2 | 2,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-idresponse header, thenGET /v1/usage/<request id>.
6. Web search
For a question that needs fresh facts, the gateway can search the web and give Claude the results. Choose per request with the header x-gzd-web-search: auto (the gateway decides), always or off.
x-gzd-web-search: off (Claude Code: ANTHROPIC_CUSTOM_HEADERS="x-gzd-web-search: off"), or a request that would search answers 402.7. Errors
Errors use Anthropic's format:
{"type": "error", "error": {"type": "billing_error", "code": "no_credits", "message": "..."}}| Status | Type or code | What to do |
|---|---|---|
| 400 | model_not_found | Use a model id from the table above. Dated ids such as claude-sonnet-4-5-20250929 are not accepted. |
| 401 | api_key_required | No key reached the gateway: the variable is not set in this terminal or process. |
| 401 | ambiguous_dual_credential | ANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN hold different values. Unset ANTHROPIC_API_KEY and keep only ANTHROPIC_AUTH_TOKEN. |
| 401 | authentication_error | The key is mistyped, revoked or expired. Create a new key. |
| 402 | no_creditsno_paid_credits | No tokens for the model you called. Tokens are per model: buy tokens for that model. |
| 402 | request_exceeds_available_credits | The request is larger than the balance can cover while it runs. Start a new conversation, use a model with more tokens, or top up. |
| 403 | model_not_permittedmodel_not_allowed_on_free_tier | The 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. |
| 429 | rate_limit_error | Wait 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.
