Mexico pays in cash at a convenience store. That is a great system for a different problem.
OXXO cash payments and SPEI transfers cover an enormous share of how money actually moves in Mexico, and both are genuinely well designed for what they do: settling pesos between Mexican parties inside the domestic system. Neither creates a corridor to a foreign vendor billing in dollars, which is why a developer in Mexico City can pay a utility bill in cash at a corner shop and still be unable to buy thirty dollars of API credits.
The pattern repeats across Latin America, and it produces the same confusing symptom everywhere: the payment methods a country is proudest of are precisely the ones that cannot be pointed at an international SaaS invoice.
What does not clear, and why
| Method | Clears a USD API charge? | Why |
|---|---|---|
| OXXO cash payment | No | Funds a domestic balance in pesos through a convenience-store collection. No foreign-currency card transaction is created. |
| SPEI transfer | No | An interbank peso transfer inside Mexico's own settlement system. |
| Local debit card | Sometimes | Only if international online purchases are enabled and the account permits foreign-currency debits. |
| Credit card (Visa / Mastercard / Amex) | Usually | The reliable instrument once international usage is on. 3-D Secure must complete in the issuer's app. |
| PayPal (Mexico account) | Inconsistently | Works when the linked card allows cross-border settlement; coverage varies by account type. |
The CFDI question your accountant will ask
Mexican businesses deduct expenses against SAT-issued CFDI invoices. A foreign software vendor generally does not issue one, which means the purchase has to be handled differently from a domestic one — and for a company rather than an individual, that administrative difference is often the real blocker, not the payment itself.
This is worth confirming before you commit to a provider rather than after. A prepaid card purchase gives you a normal transaction record you can expense, and for most small teams that is sufficient; a finance department that requires a CFDI for every line item needs to know in advance that this is a foreign digital service and not a domestic invoice.
What actually clears from Mexico
The instrument is a credit card with international online purchases enabled. Mexican cards are more likely to work internationally than in many comparable markets, but the same two failure modes apply: the toggle is off by default on some issuances, and the per-transaction international limit can sit below a single credit purchase.
Enable compras internacionales / online in the banking app before the first attempt.
Check the international per-transaction limit, not just the overall credit line.
Confirm the 3-D Secure phone number is current — an outdated number fails silently.
Keep a second card from a different issuer; a single decline on a Friday is a lost weekend.
Routes, with the trade-off stated plainly
| Route | Price | Cost of admission |
|---|---|---|
| Official DeepSeek platform | Lowest per token | A +86 number and a Chinese wallet, plus a VPN from many Mexican networks. Three obstacles instead of one. |
| Broad aggregator | Token plus platform fee | A USD balance on the same card, and a routing layer between you and the model. Good when you are still comparing model families. |
| DeepSeek-focused gateway | Prepaid credits from $9 | An email signup and a card that clears. Slightly higher effective per-token, in exchange for removing the settlement problem. |
The choice is not about which is cheaper on a spreadsheet — the official platform always wins that comparison. It is about whether the cheapest option is reachable from where you are sitting, and for most Mexican teams it is not.
Integration, in full
# pip install openai
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AICREDITS_API_KEY"],
base_url="https://api.aicreditsapi.com/v1",
)
resp = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[
{"role": "system", "content": "Responde en español de México, tono claro y directo."},
{"role": "user", "content": "Convierte estas notas de una reunión en tareas accionables con responsable y fecha."},
],
max_tokens=500,
)
print(resp.choices[0].message.content)
The rest of the OpenAI surface behaves identically: streaming, tool calling, JSON mode. Existing wrappers and frameworks keep working, and the only two fields that change are the base URL and the key.
Model choice and the cost habits that matter
There are two models worth using. deepseek-v4-flash should carry almost all traffic — chat, extraction, classification, translation, first-draft code. deepseek-v4-pro is for work with dependent steps: multi-document analysis, hard code review, agent planning. The single most expensive habit in Mexican teams we see is defaulting everything to the stronger model "to be safe", which doubles cost without a visible product improvement.
Set max_tokens on every call. Uncapped completions are the number one cause of a balance disappearing overnight.
Keep the stable prompt prefix first so cache hits are possible; cache hits are cheaper than cache misses.
Log tokens per call with a feature tag, so an unexpected charge has an owner.
Retry only transient failures — connections, timeouts, rate limits — with backoff and jitter.
Centralise the model name in one constant so promoting a feature to pro is a one-line change.
Frequently asked questions
No. An OXXO payment funds a domestic peso balance through a convenience-store collection and creates no foreign-currency card transaction. The instrument that works is a credit card with international purchases enabled.
No. SPEI is an interbank peso transfer inside Mexico's domestic settlement system, with no corridor to a merchant billing in USD.
Not with a gateway. Signup is an email address, and traffic terminates in Singapore rather than mainland China, so the reachability problems that make people reach for a VPN do not apply.
Purchases are prepaid card transactions in USD, which give you a normal expense record. A SAT-issued CFDI is not something a foreign provider typically issues, so confirm with your accountant how they want a foreign digital service booked before you scale the spend.
Yes. Set base_url to https://api.aicreditsapi.com/v1, pass your key, and select deepseek-v4-flash or deepseek-v4-pro. Streaming and tool calling work as expected.
Yes. Prepaid credits mean there is no subscription to lapse, and the protocol is identical to OpenAI's. Start with a small pack, measure real consumption for a week, then size the next purchase from that number instead of guessing.
The convenience-store cash network is a remarkable piece of payment infrastructure. It is also, from a foreign vendor's point of view, completely invisible — and knowing that in advance saves a week of confusion.
Still stuck at DeepSeek's checkout?
This article explains why the payment fails. If what you actually need is a working key today, there is a shorter path: prepaid DeepSeek credits, no subscription, key issued to your account right after checkout.
- $9 / $19 / $29 USD one-time credit packs — 1 USD = 500K credits (so $9 = 4.5M); billed by actual usage, never expires, tax excluded
- Card, Apple Pay, Google Pay or Alipay via Creem — no PayPal account needed
- Email signup only — no Chinese phone number, no Chinese bank account
- Same DeepSeek models and the same OpenAI-compatible API — change one base_url
Get a DeepSeek key → Or try it free first
Not sure how prepaid billing works? See the full DeepSeek API credits guide → — packs, usage-based billing, supported models and payment methods.