Skip to main content
LaoZhang API is an AI API gateway operated since 2025 by YingTu Technology Pte. Ltd. in Singapore. One API key reaches Google Nano Banana, OpenAI GPT Image, and xAI Grok Imagine image models, plus text and video models from other providers, through one base URL.
Registration and service availability are subject to allowlist review.

Make your first request

You need an account first; see the registration note at the top of this page.
1

Create an API key

Sign in and create a token in Token management. The console calls API keys “tokens”. Choose the default group for this example; the billing guide explains groups and billing modes. Then set the key in your terminal:
2

Pick a model

Copy an exact model ID from Models and pricing, which also lists each model’s price, token groups, and endpoints. This example uses gpt-5.4-mini, a usage-based text model in the default group.
3

Send a request

The reply is in choices[0].message.content. Continue with the API integration guide for SDK setup, image requests, the Gemini and Anthropic native APIs, and error handling.

Explore the documentation

Nano Banana API

Google’s Gemini image models: five models, fixed price per call, Gemini-native or OpenAI-compatible requests.

GPT Image 2.5 API

OpenAI’s image model: official forwarding or per-call routes for generation, editing, and transparent backgrounds.

Grok Imagine API

xAI’s image model: $0.055 per image, 1K or 2K output, edits with up to three references.

Compare image APIs

Compare image models, endpoints, and billing, then open a model guide.

OpenAI protocol

Send Chat Completions requests with OpenAI SDKs and compatible clients.

Gemini protocol

Call generateContent with cURL or the Google Gen AI SDK.

Wan 2.7 / 3.0 video

Create a video task, poll its status, and download the MP4.

Seedance 2.0 video

Submit a Seedance 2.0 task, poll it, and download the video.

Models and pricing

Search model IDs, prices, token groups, and endpoints.

Announcements

Follow model launches, price changes, and service status.

Integrations

Use LaoZhang API in Codex CLI, Gemini CLI, Cline, Cherry Studio, and more.

Use these docs with AI tools

Coding assistants can read this documentation directly:
  • skill.md is an agent skill file. It gives a coding assistant the rules for connecting to LaoZhang API: the base URL for each SDK, how to read the API key from the environment, minimal text and image requests, error diagnosis, and which reference to open next.
  • llms-full.txt is the whole documentation as one plain-text file, for tools that load documentation into their context. It currently contains the Chinese documentation.
If the assistant runs code for you, provide the API key through an environment variable; never paste the key into a prompt.

About LaoZhang API

LaoZhang API (www.laozhang.ai) is operated by YingTu Technology Pte. Ltd., a Singapore company. It provides technical API access and routing to third-party models. It is not the official operator of those models, is not affiliated with OpenAI, Google, or xAI, and does not offer a content-generation service to the public. About LaoZhang API covers the operator, where each model comes from, the available routes, payment, and refunds in one place. You are responsible for reviewing model output and for how you use it. For support, email hi@laozhang.ai or message @laozhang_cn on Telegram. Service updates are also posted to the @laozhang_ai Telegram channel, and longer write-ups appear on the LaoZhang AI Blog.

FAQ

Do I need an account with each model provider?

No. One LaoZhang API account and API key reach every model that your key’s group can call. Models and pricing lists the groups for each model, and the console shows the models and prices that apply to your account.

How is usage charged?

Requests are paid from a prepaid balance. Depending on the model, a request is charged by usage (tokens) or per call, and some token groups apply a price multiplier. Billing, token groups, and invoices covers billing modes, top-ups, and invoices, and call logs show what each request cost.

Which API domain should I use?

Use https://api.laozhang.ai by default. All three hosts accept the same API key and paths, so switching changes only the hostname; see the API integration guide.
  • Default: https://api.laozhang.ai; the OpenAI SDK base URL is https://api.laozhang.ai/v1.
  • Servers in Europe or North America that want a direct connection: api-vip.laozhang.ai.
  • If api.laozhang.ai can’t be reached from your network: api2.laozhang.ai.

How do I check my balance from code?

Call GET https://api.laozhang.ai/api/user/self with a system AccessToken, which is a separate credential from your API key. The balance query API shows how to get the AccessToken and convert quota to US dollars.