# Y-API — The LLM API everyone can afford

> Limited-time: $1 buys $20 of credit (reverts to 1:10 afterwards) — pay per token, with no monthly fee and no minimum spend. OpenAI-compatible — change one base_url to access DeepSeek, Z.ai, Moonshot AI, Tencent, Xiaomi, and OpenAI.

This is the markdown representation of https://y-api.bestvirtualgoods.com/. Model catalog and prices synced 2026-09-21. Generated by `scripts/generate-seo-assets.mjs` from the same copy the page renders — do not edit by hand.

## What it is

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.

All you need to change:

```python
base_url = "https://api.y-api.bestvirtualgoods.com/v1"
api_key  = "sk-..."
model    = "deepseek/deepseek-v4-flash"
```

One-click Google / GitHub sign-in · No card required · $1 credit on sign-up ≈ 6.67M input tokens at our lowest per-token price

## What you get

### 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.

### Request content never stored

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.

### Limited-time: top up $1, get $20 in credit

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.

### One balance, many keys

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.

### Every call accounted for

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.

### No passwords stored

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.

## One change, two lines of code

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.

```diff
 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"],
 )
```

## From sign-in to first call

1. **Sign in** — Sign in with Google or GitHub. Your account opens automatically with $1 in credit — no forms to fill out.
2. **Get a key** — A default key is created when your account opens — view it on the "API Keys" page in the console, or create more per project.
3. **Change base_url** — Point your SDK's base_url at Y-API, set model to any ID from the catalog, and start calling.

## Models and prices

Every model is called through the same base_url and the same key — switching models only means changing the model field. The model IDs below are ready to copy.

| Model ID | Vendor | Input / 1M tokens | Output / 1M tokens |
| --- | --- | --- | --- |
| `deepseek/deepseek-v4-flash` | DeepSeek | $0.00 | $0.00 |
| `deepseek/deepseek-v4-pro` | DeepSeek | $0.50 | $1.00 |
| `deepseek/deepseek-v4.1-flash` | DeepSeek | $0.20 | $1.00 |
| `deepseek/deepseek-v4-flash-0731` | DeepSeek | $0.15 | $0.30 |
| `z-ai/glm-5.2` | Z.ai | $1.40 | $4.40 |
| `z-ai/glm-5.3` | Z.ai | $1.40 | $5.00 |
| `z-ai/glm-5.3-flash` | Z.ai | $0.15 | $0.50 |
| `moonshotai/kimi-k3` | Moonshot AI | $3.00 | $15.00 |
| `moonshotai/kimi-k2.6` | Moonshot AI | $0.95 | $4.00 |
| `tencent/hy3` | Tencent | $0.00 | $0.00 |
| `xiaomi/mimo-v2.5` | Xiaomi | $0.00 | $0.00 |
| `openai/gpt-6-astra` | OpenAI | $10.00 | $50.00 |
| `openai/gpt-5.6-sol` | OpenAI | $5.00 | $30.00 |
| `openai/gpt-5.6-terra` | OpenAI | $2.00 | $12.00 |
| `openai/gpt-5.6-luna` | OpenAI | $0.30 | $1.30 |

Prices are in USD credit (limited-time: a $1 top-up adds $20 credit; reverts to 1:10 afterwards). The catalog and prices may change; the console "Models" page shows the current list at your account's own rate.

The table above is quoted in account credit. Divide any figure by 20 for the USD actually paid: `deepseek/deepseek-v4-flash-0731` at $0.15 in credit is $0.0075 per 1M input tokens in cash. The cash price is what compares against another provider's list price. Both prices, computed per model, are published as JSON at https://y-api.bestvirtualgoods.com/pricing.json.

## Billing

Top up $1 and your account gains $20 in credit; signing up grants $1 in credit with no card required. Invitations add $1 to each side, so an invited account starts at $2.

$1 of sign-up credit ≈ 6.67M input tokens on deepseek/deepseek-v4-flash-0731, the lowest-priced model in the catalog at $0.15 per 1M tokens in credit. Every $1 you top up becomes $20 in credit ≈ 133M input tokens on that same model.

| 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.

- **Billing**: Credit is deducted per token of usage. No calls, no charges.
- **Monthly fee**: None. No subscription threshold or minimum spend either.
- **New users**: $1 credit on sign-up, no card required.
- **Credit exhausted**: The API returns 429. Top up at https://y-api.bestvirtualgoods.com/app/billing — it recovers immediately, and keys stay valid.

## Who it fits

- **Side projects & solo products**: A demo with no revenue yet shouldn't carry a monthly fee. Pay for what you use; pause the project and pay nothing.
- **Agents & batch jobs**: Multi-round tool calls, long context, and batch processing multiply token consumption — and the unit-price gap multiplies straight into the bill.
- **Internal team tools**: Hand out different keys per environment sharing one balance, and reconcile who called which model, when, from the logs.
- **Migrating off the official API**: Your code is already built on the OpenAI SDK, and you don't want to rewrite the call layer just to switch providers.

## A few things worth stating clearly

### "$1 becomes $20" is limited-time credit, not a discount coupon

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.

### Your request content is not stored

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.

### Keys can be revoked anytime

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.

A model report you can inspect. The GPT 6 Astra test is public, including the endpoint, results and original source.

View model verification: https://y-api.bestvirtualgoods.com/verification

## FAQ

### What is Y-API?

Y-API is an OpenAI-compatible LLM API service. It provides a single endpoint and key so the same code can call 15+ models — including DeepSeek, Z.ai, Moonshot AI, Tencent, Xiaomi, and OpenAI — billed per token with no monthly fee.

### Is Y-API compatible with the official OpenAI API?

Yes. Y-API uses the same request and response structure as OpenAI. Swap the SDK's base_url for Y-API's endpoint and the api_key for a Y-API key — nothing else changes.

### Which models does Y-API support?

Y-API currently supports 15+ models from vendors including DeepSeek, Z.ai, Moonshot AI, Tencent, Xiaomi, and OpenAI. The full list of model IDs is on the Y-API models page (https://y-api.bestvirtualgoods.com/models); pass any of them in the request's model field.

### Do any models cost nothing at all?

Yes — deepseek/deepseek-v4-flash and tencent/hy3 and xiaomi/mimo-v2.5 are free through Y-API: no credit is deducted per call, using the same base_url and key as the paid models. The free flag is set by our upstream provider and can be withdrawn; if it is, these calls start billing at the listed rate, with no code change on your side.

### How does Y-API billing work?

Account credit is deducted based on token consumption. The deduction depends on the called model's multiplier, with input and output counted separately. There is no monthly fee, subscription threshold, or minimum spend — no calls means no charges.

### What does "top up $1 and get $20 in credit" mean?

Current limited-time offer: every $1 you top up adds $20 to your account credit (reverts to 1:10 afterwards). Credit is the billing unit inside the service, deducted per token; different models burn it at different rates, so it is not a fixed discount off official pricing.

### Does Y-API have a monthly fee or minimum spend?

No. Y-API only deducts credit for actual token usage. There is no monthly fee, subscription threshold, or minimum spend, and an idle account costs nothing.

### Can I create multiple API keys? Is credit split between them?

Yes, you can create multiple keys, and they all share the same account balance — no per-key allocation. This suits per-project or per-environment management; any key can be revoked at any time without affecting the others.

### Does Y-API support streaming?

Yes. Add the stream parameter to the request and you get SSE chunks in the same format as OpenAI — no special client handling needed.

### Can I see my call history?

Yes. The console request log lists the time, model, key, token counts, credit used, and latency of every call, and the overview page aggregates the last 30 days of usage and request counts by model.

### Can Y-API see the content I send?

No. Y-API does not store request or response content. The logs shown in the console contain only call metadata (time, model, token counts, latency, credit deducted) — never prompts or completions.

### What happens when my credit runs out?

The API returns HTTP 429 and the request is not executed. Top up at https://y-api.bestvirtualgoods.com/app/billing — credit is available immediately, keys stay valid, and no code changes are needed.

### Do I need a credit card to sign up?

No. Sign in with Google or GitHub and your account opens automatically with $1 in credit — no payment details involved during the trial.

### Are there rate limits for trial accounts?

After sign-up, you are limited to 500 requests per day (shared across all models, regardless of whether they are free or paid). Once you complete your first top-up (any amount), the limit is removed. Paid models are additionally subject to account balance constraints, with credit deducted based on token usage.

## Links

- HTML version of this page: https://y-api.bestvirtualgoods.com/
- Site index for agents: https://y-api.bestvirtualgoods.com/llms.txt
- Full reference (single file): https://y-api.bestvirtualgoods.com/llms-full.txt
- OpenAPI 3.1 spec: https://y-api.bestvirtualgoods.com/openapi.json
- Model catalog (JSON, no key needed): https://y-api.bestvirtualgoods.com/models.json
- API base URL: `https://api.y-api.bestvirtualgoods.com/v1`
- Contact: support@bestvirtualgoods.com
- Integration guide: https://y-api.bestvirtualgoods.com/docs
- Model catalog: https://y-api.bestvirtualgoods.com/models
- Pricing (markdown): https://y-api.bestvirtualgoods.com/pricing.md
- Error code reference: https://y-api.bestvirtualgoods.com/docs/errors
