Skip to main content
Global AI exposes an OpenAI-compatible API and also supports the native Claude and Gemini formats. Use the platform address as 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.
Playground calls consume quota just like code calls, and they are recorded in Logs so you can compare with production usage.

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/v1

Code 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
In the returned JSON, quota / 500000 is the current remaining balance.

Common errors

Verify the token key is correct, not expired, and not deleted. Check the token status in Token management.
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.
The account or token has run out of quota. Top up on Quota and top-up, or raise the token’s quota cap.
You hit the platform rate limit. Wait a moment and retry, or reduce concurrency.