Migrate from OpenRouter to TokenRex

Switch from OpenRouter to TokenRex with INR billing and UPI top-ups.

Steps

What to check after switching

Example

from openai import OpenAI

client = OpenAI(api_key="YOUR_TOKENREX_KEY", base_url="https://tokenrex.ai/api/public")

resp = client.chat.completions.create(
    model="gpt-6-sol",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
Get API keyCost calculatorDocs

Questions

Do old prefixed model IDs still work?
Yes, prefixed IDs are still accepted for compatibility, but short IDs are recommended.
Can I switch back?
Yes. Nothing is locked in: change the base URL and key back and your code keeps working.

Related