X420.aiDocs

Quickstart

From zero to your first AI response in 5 minutes.

1. Create your account

Go to x420.ai and sign in with your email or phone number. We send you a one-time code — no password needed.

2. Top up your wallet

Go to Dashboard → Billing. Choose a credit pack or enter a custom amount. Your wallet is charged in euros, by the token. No subscription, no commitment.

3. Get your API key

Your personal API key (sk-proxy-…) is shown once at signup. You can always rotate it from the Dashboard. Keep it secret — it carries your credits.

4. Make your first call

X420.ai is 100% OpenAI-SDK compatible. Just change the base URL:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.x420.ai/v1",
    api_key="sk-proxy-your-key",
)

response = client.chat.completions.create(
    model="openai/gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
That's it. Any model available on OpenRouter works — just pass its ID as the model parameter.