XingJiAi Blog · · Developers / API

Claude Code / Cursor with the XingJiAi Unified API in 3 Steps

The most annoying thing for developers is switching keys and addresses for every model. The XingJiAi unified API is built to fix that: one API key for 200+ models, compatible with OpenAI, Anthropic, and Gemini protocols, and usable directly in Claude Code, Cursor, Cherry Studio, and LobeChat. The three steps below follow the flow in the API platform docs — in most cases you can get through them in a few minutes.

Step 1: Sign in and get an API key

Go to XingJiAi and sign in with an email code — signing in this way creates an account automatically. In the console, create an API key and copy it somewhere safe. A key is shown only once; if you lose it, create a new one. Do not paste it into chat logs, screenshots, or a code repository.

Billing is pay-as-you-go: top up, then pay from your balance, which is shared with the main site. Specific prices are shown after login in the model square, so this article does not quote them. Before you start, make sure your balance covers a few test requests — do not start with a large job.

Step 2: Change the base URL to api.vv666.ai

This is the most important step, and the easiest to get wrong. The XingJiAi API address is not the main site domain. It is:

https://api.vv666.ai

For Claude Code, change the SDK’s base_url to this address, set the model to the one you want, and leave everything else unchanged. The docs use Opus 5.5 as the example: the model name is claude-opus-5-5 and the endpoint is POST https://api.vv666.ai/v1/messages. Cursor works the same way — change the base URL and model name in settings, and do not change the other configuration.

Authentication supports four methods at once: Authorization: Bearer, x-api-key, x-goog-api-key, and ?key=. If several headers are sent together, Bearer takes priority. Use Bearer only and do not mix methods — mixing is the most common cause of errors.

Cherry Studio, LobeChat, NextChat, OpenWebUI, and Continue are also supported in the docs with one-click copy configuration. After pasting, check that the base URL and model name are correct before you save.

Step 3: Pick a model and send your first request

Do not write complex logic first. Send the simplest possible request and confirm it works. For chat, start with Gemini 3.8 flash or GPT-6.1. For code, try Claude Opus 5.5 or Sonnet 5.5. After a successful request, look at the X-Task-Id response header — that is the platform task ID, and you will need it to check the cost.

To check the cost, call GET /v1/skills/task-status?task_id=<task id>. When is_final is true, the cost field is the actual amount settled for that call. Get a small request working first, then move to the real task — that way, problems are much easier to locate.

# Sketch, not complete code
# base_url = https://api.vv666.ai
# model = claude-opus-5-5
# Authorization: Bearer <your API key>
# POST /v1/messages

Common errors: check these three things first

First, a 403. Check the IP whitelist. The console lets you set a single IP or a CIDR range. Calls from outside the list return 403 with error code ip_not_allowed, and they are not charged. Confirm your egress IP is on the list.

Second, a wrong model name. The name must match the docs exactly, including case and hyphens. Opus 5.5 is claude-opus-5-5, not just “opus.” Check the name once in the model square before you retry.

Third, insufficient balance. Check the balance and usage statistics in the console before you retry. Do not keep retrying large requests — confirm the connection with the smallest request first.

If you are a creator rather than a developer, see GPT Image 2.5 E-commerce Guide and the video model comparison. For model call data, see the model rankings.

FAQ

What is the XingJiAi API base URL?

The base URL is https://api.vv666.ai. Change the base URL in your tool to this address, set the model to the one you want, and leave the rest unchanged.

How many models can one API key call?

One API key can call all models. The model square lists 205 models in total — 89 chat, 26 image, 83 video, and 7 audio — with one shared balance, billed pay-as-you-go.

What if I get a 403 after setup?

Check the IP whitelist first. You can set an IP whitelist in the console; calls from outside the list return 403 with error code ip_not_allowed and are not charged. Add your IP or open the list, then retry.