Migrate by changing one line
Keep the OpenAI request and response shapes. openai-python, openai-node, and any SDK, framework, or agent client that speaks the OpenAI protocol can point here directly — your existing code stays untouched.
OPENAI-COMPATIBLE · PAY PER TOKEN · NO MONTHLY FEE
Limited-time: top up $1 and get $20 in credit (reverts to 1:10 afterwards), billed per token, with no monthly fee and no minimum spend. Change one base_url to access 15+ models including DeepSeek, Z.ai, Moonshot AI, Tencent, Xiaomi, and OpenAI.
One-click Google / GitHub sign-in · No card required · $1 credit on sign-up ≈ 6.67M input tokens at our lowest per-token price
base_url = "https://api.y-api.bestvirtualgoods.com/v1"
api_key = "sk-..."
model = "deepseek/deepseek-v4-flash"Limited-time rate
The 1:20 top-up rate ends 2026-09-30. From 2026-10-01, every $1 adds $10 of credit instead.
Free models
Every call to these models deducts nothing from your balance. Same base_url, same key, same SDK — the model field is the only thing you change, so they are also the fastest way to try Y-API before you top up.
Free status is set by our upstream provider and can be withdrawn — when it is, these calls start billing at the listed rate and your code does not change. The models page always shows the current state.
deepseek/deepseek-v4-flash$0tencent/hy3$0xiaomi/mimo-v2.5$0Why Y-API
Keep the OpenAI request and response shapes. openai-python, openai-node, and any SDK, framework, or agent client that speaks the OpenAI protocol can point here directly — your existing code stays untouched.
The prompts you send and the content the model returns are never saved. Request logs record only time, model, token counts, and credit deducted — for reconciliation, nothing more.
Current limited-time rate is 1:20; it will revert to 1:10 afterwards. Credit is deducted for actual token consumption, and any top-up amount converts at the same rate. No monthly fee, no subscription threshold, no minimum spend — if you don't call, you don't pay.
Keys under the same account share a single balance. Manage them per project or environment, and create or revoke any of them at any time without affecting the rest.
The console request log lists the time, model, token counts, credit used, and latency of every call; the overview page aggregates the last 30 days of usage by model.
Only Google and GitHub sign-in are supported. The site stores no passwords, so there is no attack surface for password leaks or reset flows.
Migration cost
If you already use the official OpenAI SDK, swapping base_url and api_key is the whole migration. Set model to any ID from the catalog.
from openai import OpenAI client = OpenAI(- base_url="https://api.openai.com/v1",- api_key=os.environ["OPENAI_API_KEY"],+ base_url="https://api.y-api.bestvirtualgoods.com/v1",+ api_key=os.environ["YAPI_KEY"], )Three steps
01
Sign in with Google or GitHub. Your account opens automatically with $1 in credit — no forms to fill out.
02
A default key is created when your account opens — view it on the "API Keys" page in the console, or create more per project.
03
Point your SDK's base_url at Y-API, set model to any ID from the catalog, and start calling.
Available models
Every model is called through the same base_url and the same key — switching models only means changing the model field. The flagship of each vendor is listed below.
| Model ID | Input / 1M tokens | Output / 1M tokens |
|---|---|---|
| DeepSeek | ||
| deepseek/deepseek-v4-flash | Free — no credit deducted | |
| 智谱 GLM | ||
| z-ai/glm-5.2 | $1.40 | $4.40 |
| 月之暗面 Kimi | ||
| moonshotai/kimi-k3 | $3.00 | $15.00 |
| 其他 | ||
| tencent/hy3 | Free — no credit deducted | |
| OpenAI | ||
| openai/gpt-6-astra | $10.00 | $50.00 |
Pricing & billing
Credit is deducted per token, and how much depends on the model — cheap models run for a long time, flagship models burn faster. The exact deduction of every call is in the console request log.
Limited-time rate
The 1:20 top-up rate ends 2026-09-30. From 2026-10-01, every $1 adds $10 of credit instead.
| You pay | Credit received |
|---|---|
| $5 | $100 |
| $10 | $200 |
| $50 | $1,000 |
| $100 | $2,000 |
Not a plan tier — there is no amount threshold; any top-up converts at the same rate.
Who it fits
A demo with no revenue yet shouldn't carry a monthly fee. Pay for what you use; pause the project and pay nothing.
Multi-round tool calls, long context, and batch processing multiply token consumption — and the unit-price gap multiplies straight into the bill.
Hand out different keys per environment sharing one balance, and reconcile who called which model, when, from the logs.
Your code is already built on the OpenAI SDK, and you don't want to rewrite the call layer just to switch providers.
Up front
The GPT 6 Astra test is public, including the endpoint, results and original source.
Current limited-time offer: you pay $1 and your account gains $20 in credit (reverts to 1:10 afterwards). Credit burns at each model's multiplier, which varies widely — so it is not "official pricing at 5% off". Treat the actual deductions in the request log as the real cost.
The prompts you send and the content the model returns are never saved. Console logs record only call metadata — time, model, token counts, latency, and credit deducted — for reconciliation.
A key's plaintext is returned on demand only when you click "Reveal"; it never sits exposed in lists. Once deleted, calls using that key fail immediately while other keys are unaffected.
FAQ
Sign in and your account opens automatically with a default key and $1 in credit. No card, no forms.