Skip to content
AnyAIGC
  1. Home
  2. OpenRouter migration
  • OpenAI-compatible API
  • Anthropic format (Claude)
  • 300+ models, one key
  • Self-service invoices

OpenRouter Alternative: Switch to AnyAIGC by Changing the Base URL and Model ID

AnyAIGC offers an OpenAI-compatible API, and Claude models also have an Anthropic-format API. If your project calls an OpenAI-compatible API, moving from OpenRouter usually means changing the Base URL, the key and the model ID. Your SDK and request structure stay the same.

Prices are in USD; live prices are in the Model Catalog. The OpenRouter syntax on this page comes from its official documentation (checked 2026-12-04).

Three things to change

Your message structure and streaming code stay as they are.

  1. 1

    Create an AnyAIGC API key

    Sign up and top up at anyaigc.ai, create a token in the console and copy the key that starts with sk-. One key calls 300+ models on the platform, and the balance works across all of them.

  2. 2

    Change the Base URL

    OpenAI format: replace https://openrouter.ai/api/v1 with https://anyaigc.ai/v1. Anthropic-format clients such as Claude Code and the Anthropic SDK: replace https://openrouter.ai/api with https://anyaigc.ai, without /v1.

  3. 3

    Change the model ID

    Drop the vendor/ prefix: openai/gpt-5.5 becomes gpt-5.5. For Claude models, also replace the dot in the version with a hyphen: anthropic/claude-sonnet-5.5 becomes claude-sonnet-5-5.

Base URL for each API format

Both formats authenticate with Authorization: Bearer <Key>. Only the key changes to your AnyAIGC key.

API formatUsed byOpenRouterAnyAIGC
OpenAI Chat CompletionsOpenAI SDK, cURL, chat models from every vendorhttps://openrouter.ai/api/v1https://anyaigc.ai/v1
Anthropic MessagesAnthropic SDK, Claude Code (Claude models)https://openrouter.ai/apihttps://anyaigc.ai
  • Chat models use /v1/chat/completions, so the OpenAI SDK works as is. Gemini can also use this OpenAI-compatible endpoint.
  • Claude models use /v1/messages (Anthropic format). Set the Anthropic SDK base_url to https://anyaigc.ai, without /v1.
  • On Chat Completions, tool calling for the GPT-6 series is limited. Use /v1/responses for tool calls. gpt-5.5-pro supports only the Responses API.

Code before and after

Highlighted parts are what you change. Keys are always read from environment variables. The examples were not run as live billed requests, so check each model page and the API docs for the final word.

OpenAI SDK · Python

Before · OpenRouter
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key=os.environ["OPENROUTER_API_KEY"],
)
resp = client.chat.completions.create(
    model="openai/gpt-5.5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
After · AnyAIGC
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://anyaigc.ai/v1",
    api_key=os.environ["ANYAIGC_API_KEY"],
)
resp = client.chat.completions.create(
    model="gpt-5.5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

cURL

Before · OpenRouter
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4-pro",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
After · AnyAIGC
curl https://anyaigc.ai/v1/chat/completions \
  -H "Authorization: Bearer $ANYAIGC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-pro",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Anthropic SDK · Python (Claude models)

Before · OpenRouter
import os, anthropic

client = anthropic.Anthropic(
    base_url="https://openrouter.ai/api",
    api_key=os.environ["OPENROUTER_API_KEY"],
)
message = client.messages.create(
    model="anthropic/claude-sonnet-5.5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)
After · AnyAIGC
import os, anthropic

client = anthropic.Anthropic(
    base_url="https://anyaigc.ai",
    api_key=os.environ["ANYAIGC_API_KEY"],
)
message = client.messages.create(
    model="claude-sonnet-5-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)

Claude Code · ~/.claude/settings.json

Before · OpenRouter
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://openrouter.ai/api",
    "ANTHROPIC_AUTH_TOKEN": "<your OpenRouter key>",
    "ANTHROPIC_API_KEY": ""
  }
}
After · AnyAIGC
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://anyaigc.ai",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-api-key",
    "ANTHROPIC_MODEL": "claude-opus-5-5"
  }
}

To skip editing the config by hand, install in one line: curl -fsSL https://www.anyaigc.ai/install.sh | bash -s claude (Windows PowerShell: irm https://www.anyaigc.ai/install.ps1 | iex).

Model ID mapping: OpenRouter → AnyAIGC

AnyAIGC model IDs have no vendor prefix. The OpenRouter column comes from its public model list (checked 2026-12-04) and the AnyAIGC column from the Model Catalog. IDs with a model page link to it. New and retired models follow the Model Catalog.

OpenRouter model IDAnyAIGC model ID
anthropic/claude-opus-5.5claude-opus-5-5
anthropic/claude-sonnet-5.5claude-sonnet-5-5
anthropic/claude-haiku-5.5claude-haiku-5-5
anthropic/claude-fable-5.2claude-fable-5-2
anthropic/claude-opus-4.8claude-opus-4-8
anthropic/claude-sonnet-4.6claude-sonnet-4-6
openai/gpt-6.2-astragpt-6.2-astra
openai/gpt-6.2-solgpt-6.2-sol
openai/gpt-5.5gpt-5.5
openai/gpt-5.4-minigpt-5.4-mini
openai/gpt-4o-minigpt-4o-mini
google/gemini-3.1-pro-previewgemini-3.1-pro-preview
google/gemini-3.5-flash-litegemini-3.5-flash-lite
deepseek/deepseek-v4.1-flashdeepseek-v4.1-flash
deepseek/deepseek-v4-prodeepseek-v4-pro
x-ai/grok-4.7grok-4.7
moonshotai/kimi-k3kimi-k3
z-ai/glm-5.3glm-5.3
qwen/qwen3.8-flashqwen3.8-flash

See 300+ models and live prices →

What you can use right after migrating

Each item below is already documented on the model pages.

  • One key

    300+ models, one balance

    To switch models, change only the model field. No new key and no new top-up.

  • Streaming

    Set stream in the request

    Set stream to true in the request, written the same way as before.

  • Prompt caching

    Claude models

    Add cache_control to a content block, with a 5-minute or 1-hour cache.

  • Concurrency

    No limit on any Claude model

    Concurrency is not limited for any Claude model, for every user by default, which suits batch jobs and parallel multi-agent runs.

  • Billing

    Every request itemized, with quotas

    The console shows tokens and cost for every request, and you can set a quota on each API key.

AnyAIGC API for teams and enterprises

Top up, issue invoices yourself, and work with a dedicated support and technical contact.

  • Invoices

    Issue them yourself

    Issue an invoice in the console for the amount you actually topped up, whenever you need one.

  • Dedicated support

    Account and technical contacts

    Work with a dedicated support contact and technical engineer for onboarding, migration and troubleshooting.

Payment methods
  • WeChat Pay
  • Alipay
  • USDT
  • Credit card

Why teams trust AnyAIGC

Trial credit, top-ups, refunds, data handling and billing, spelled out up front.

  • 5M free tokens to start

    New accounts get trial credit, so you can test before you top up.

  • Top up from $1, refundable

    Top up from $1. Unused balance can be refunded with no fee.

  • Official channels, real models

    Requests go to official model channels, never cheaper or reverse-engineered substitutes.

  • No retention, no training

    Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.

  • Transparent billing, spend caps

    See tokens and cost for every request in the console, and set a quota on each API key.

  • 24/7 support

    Contact support any time about integration, billing or incidents.

FAQ

Can I move my OpenRouter code to AnyAIGC as is?

For code that calls the OpenAI format (/v1/chat/completions), change the Base URL, use your AnyAIGC key and write the model ID the AnyAIGC way. The message and streaming request format does not change. For projects that use the Anthropic SDK or Claude Code, change the Base URL and the key. Tool calls for the GPT-6 series go through /v1/responses; the examples on each model page are the reference.

Can I use my OpenRouter key on AnyAIGC?

No. Sign up and top up at anyaigc.ai, create your own token in the console, copy the key that starts with sk-, and put it in your code or in the ANYAIGC_API_KEY environment variable.

Do I have to change the model ID?

Yes. Drop the vendor/ prefix, for example openai/gpt-5.5 becomes gpt-5.5. For Claude models, also replace the dot in the version with a hyphen, for example anthropic/claude-opus-5.5 becomes claude-opus-5-5. For exact IDs, see the table above, the model pages or the Model Catalog.

How do I switch Claude Code from OpenRouter to AnyAIGC?

Set ANTHROPIC_BASE_URL to https://anyaigc.ai (without /v1) and ANTHROPIC_AUTH_TOKEN to your AnyAIGC key. You can also run curl -fsSL https://www.anyaigc.ai/install.sh | bash -s claude to install and configure it in one step.

Can I get an invoice from AnyAIGC?

Yes. You can issue invoices yourself in the console, for the amount you actually topped up.

Which payment methods are supported?

You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.

Is there free trial credit for new users?

Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.

Can I get a refund on my balance?

Yes. Unused balance can be refunded with no fee. Contact support to start a refund.

Are these the real models? Is my data safe?

Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.

Ready to migrate?

Sign up, create a key and change one Base URL line. New accounts get 5M free tokens, so you can test before you top up.