Skip to Content
aicentos

Quickstart

Get connected in three steps: register an account → create an API key → enter the Base URL and key in your client

Last updated:

Get connected in three steps: register an account → create an API key → enter the Base URL and key in your client.

Step 1: Register an account

Open aicentos.com and click Get Started in the top-right corner to go to the sign-up page:

Sign-up page

Fill in a username and password, agree to the terms of service, then click Create Account. Every new account comes with ¥1 in free credit — start calling the API without topping up first.

Step 2: Create an API key

After signing in, open the console, click API Keys in the left sidebar, then click Create API Key in the top-right corner:

API keys page

Fill in the settings in the dialog and click Save Changes:

Create API key

FieldDescription
NameA custom name to tell projects apart. Create one per use case for easier cost tracking and permission revocation
GroupChoose which upstream group to route through; leave empty for the default
Expiry"Never expires" or a fixed 1 hour / 1 day / 1 month
QuantityCreate multiple keys at once; a random suffix is appended to each name
Unlimited quotaTurn off to set a quota cap for this key

Once created, the key appears in the list as sk-xxxxxxxxxxxx, masked by default:

Key created

The key list supports search by name and key, and shows the group, quota, allowed models, IP restrictions and more. Keys can be edited or deleted at any time:

Key list

The key is shown in full only once, at creation. Copy and store it right away. Never hard-code it into frontend code or commit it to a public repository.

Step 3: Enter the Base URL and key in your client

Pick the right Base URL first

This is the step where mistakes happen most — different protocols use different addresses:

Use caseBase URL
Codex / OpenAI-compatible formathttps://aicentos.com/v1
Claude Code / Anthropic format, and other clientshttps://aicentos.com

For the Anthropic protocol, enter the root address only. Do not append /v1/messages manually — the client adds it automatically.

You can also look up and copy addresses from the API Address dropdown at the top right of the console's API Keys page:

API address

Verify connectivity

Run a minimal request with curl to confirm the key and network work:

export AICENTOS_API_KEY="sk-your-API-Key"

curl https://aicentos.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $AICENTOS_API_KEY" \
  -d '{
    "model": "gemini-3.8-flash",
    "messages": [
      {"role": "user", "content": "Introduce yourself in one sentence"}
    ]
  }'

You can also request the model list first. If it returns JSON, both the key and the Base URL are working:

export AICENTOS_API_KEY="sk-your-API-Key"

curl https://aicentos.com/v1/models \
  -H "Authorization: Bearer $AICENTOS_API_KEY"

Python (OpenAI SDK)

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AICENTOS_API_KEY"],
    base_url="https://aicentos.com/v1",
)

resp = client.chat.completions.create(
    model="gemini-3.8-flash",
    messages=[{"role": "user", "content": "Introduce yourself in one sentence"}],
)
print(resp.choices[0].message.content)

Node.js (OpenAI SDK)

The example uses ESM syntax, so the file needs a .mjs extension, or add "type": "module" to package.json:

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: process.env.AICENTOS_API_KEY,
  baseURL: 'https://aicentos.com/v1',
});

const resp = await client.chat.completions.create({
  model: 'gemini-3.8-flash',
  messages: [{ role: 'user', content: 'Introduce yourself in one sentence' }],
});

console.log(resp.choices[0].message.content);

Top-up

When the sign-up credit runs out, go to Wallet in the left sidebar of the console to top up:

Wallet

Top-up tiers and discounts (discounts start at ¥100 — you pay less than the top-up amount):

Top-up amountDiscountYou pay
¥1 / ¥10 / ¥20 / ¥50NoneFull price
¥1001% OFF¥99
¥5002% OFF¥490
¥1,0003% OFF¥970
¥10,0005% OFF¥9,500

You can also enter a custom amount or redeem a code for credit.

Payment methods

  • Payment methods: Alipay, WeChat Pay, bank transfer
  • Credit never expires; you are billed for actual token consumption
  • Referral rewards: when someone signs up through your invite link, both of you earn rewards that can be transferred to your balance at any time

View usage

Open Dashboard in the left sidebar of the console to see consumption details:

Console overview

You can see the current balance, total usage, API request count, and per-model call trends:

Dashboard

Try it without writing code

The Chat tab at the top of the console has a built-in playground — pick a model, send messages, and refine your prompt as you chat:

Playground

Next steps

  • Test models in your browser with the Playground — no code needed
  • Browse supported models — see which LLMs are available
  • Read error handling — troubleshoot 401s, insufficient balance and more
  • Learn about billing — pay-as-you-go billing and balance alerts