Guide · Switching

A low-cost OpenAI API alternative for India

You can keep your OpenAI SDK code and switch to DeepSeek, MiniMax or Kimi by changing only the base URL and the API key. On SrotGateway, DeepSeek V4.1 Flash starts at $0.0183₹1.70 per million input tokens, paid in rupees by UPI or card, with no subscription.

Updated

Change two lines

Before (OpenAI)
from openai import OpenAI

client = OpenAI(api_key="sk-...")
reply = client.chat.completions.create(model="gpt-...", messages=msgs)
After (SrotGateway)
from openai import OpenAI

client = OpenAI(base_url="https://api.srotgateway.com/v1", api_key="sg-...")
reply = client.chat.completions.create(model="deepseek-v4.1-flash-fast", messages=msgs)

JavaScript, curl and tool setups: JavaScript, curl, Cursor, Cline, n8n.

Which model to pick

If you needTry
Everyday chat, summaries, simple agents at the lowest costDeepSeek V4.1 Flash
Fast writing and tool-style tasksMiniMax M3.1 Flash
Harder reasoning, long documents, tricky codeKimi K3.1 Pro

One key works for all 3 models; only the model name changes. Test the same prompt on each and keep the cheapest one that does the job.

Prices

Prices per 1 million tokens, in US dollars (approximate) and Indian rupees
ModelModel IDInputCached inputOutputContext
DeepSeek V4.1 FlashA fast, low-cost general model for chat, coding help, summaries and agents.deepseek-v4.1-flash-fast$0.0183₹1.70$0.0022₹0.20$0.177₹16.501M tokens
MiniMax M3.1 FlashA fast general model for chat, writing and tool use.minimax-m3.1-flash$0.0538₹5.00$0.0054₹0.50$0.194₹18.001M tokens
Kimi K3.1 ProA larger model for harder reasoning, long documents and coding tasks.kimi-k3.1-pro$0.753₹70.00$0.323₹30.00$5.38₹500.001M tokens

Per 1 million tokens. Prices are set in ₹; $ amounts are approximate (₹93 = $1) and your bank converts when you pay by card. No GST is added. Last updated 4 December 2026; prices can change and the dashboard always shows the current price.

What is different from OpenAI

  • Only chat completions and the model list. No embeddings, images, audio or files.
  • Different models: answers will not be word-for-word the same as GPT. Test your prompts.
  • Prepaid in rupees: calls stop when the balance runs out, so you never get a surprise bill.
  • Limits: 60 requests a minute per key and 5 calls at once by default. See errors and limits.

Questions

Is there an OpenAI-compatible API I can pay for in rupees?+

Yes. SrotGateway uses the OpenAI chat completions format and bills in rupees: top up from $0.54 (₹50) by UPI, net banking or card. The OpenAI SDK for Python and JavaScript works as it is.

Do I have to rewrite my code?+

No. Change two things: the base URL (to https://api.srotgateway.com/v1) and the API key (to your SrotGateway key). Then set the model to one of ours, for example "deepseek-v4.1-flash-fast".

Can I use GPT models through SrotGateway?+

No. We serve DeepSeek V4.1 Flash, MiniMax M3.1 Flash and Kimi K3.1 Pro. If you need GPT models specifically, you need OpenAI or a service that resells them.

What parts of the OpenAI API work?+

Chat completions (with and without streaming) and the model list. Embeddings, image, audio and file endpoints are not offered.

Does it work in Cursor, Cline and n8n?+

Yes. Anything that lets you set an OpenAI-compatible base URL works. There are setup guides for Cursor, Cline and n8n in the docs.

Can I try before paying?+

Yes. New accounts get $0.11 (₹10) after email verification, valid 30 days, on DeepSeek V4.1 Flash and MiniMax M3.1 Flash.

Related

Get your API key

Sign up with your email, top up, and call your first model.