base_url and your token as api_key to start calling.
Playground online testing
The playground is a built-in test tool that lets you chat with any model without writing code. It is a quick way to verify tokens and models.1
Open the playground
Click Playground in the left sidebar, or go directly to https://globalai.vip/playground.
2
Choose a model
Pick the model to test from the selector in the lower right of the page.
3
Send a message
Type a message and hit send. The reply appears in the conversation area on the right.
Get the API address
1
Copy the base URL
Visit the home page, find the API base URL area in the middle of the page, and click the copy button. Example:
https://globalai.vip/v1.2
Paste into your client
Use the copied address as
base_url in your client or code, together with the token key, to start calling.base_url is https://globalai.vip/v1Code examples
Python (OpenAI SDK)
app.py
Streaming output
stream.py
JavaScript / Node.js
app.js
Shell / curl
chat.sh
Native Claude format
Claude
Native Gemini format
Gemini
Supported endpoints
Global AI is compatible with the most common OpenAI ecosystem endpoints. Trust the Pricing page in the console as the source of truth for which models are available.
Global AI also exposes a balance query endpoint for automation scripts and third-party dashboards.
Balance query
quota / 500000 is the current remaining balance.
Common errors
403 Forbidden / model not allowed
403 Forbidden / model not allowed
The token has a model restriction or IP allowlist that the current request violates. Edit the token to adjust the settings, or switch to a permitted model or network.
Insufficient balance
Insufficient balance
The account or token has run out of quota. Top up on Quota and top-up, or raise the token’s quota cap.
429 Too Many Requests
429 Too Many Requests
You hit the platform rate limit. Wait a moment and retry, or reduce concurrency.