Alaya NeW Cloud

AlayaCode overview

Subscription AI coding assistant — Chinese LLMs aggregated under OpenAI / Anthropic dual-compatible APIs

AlayaCode is Alaya NeW Cloud's subscription AI coding assistant for developers:

  • Aggregates Chinese LLMs: MiniMax, Zhipu GLM, DeepSeek, and more behind one endpoint
  • Dual protocol: the same API key works for OpenAI Chat Completions and Anthropic Messages
  • Subscription billing: fixed monthly quota, no surprise bills; throttled (not cut off) when quota exhausts
  • Out-of-the-box IDE integration: Cursor, Continue, Cline, Roo, Claude Code, Codex CLI and friends connect directly

Three steps to first call

One-time setup

Sign up at www.alayanew.com/backend/register, complete identity verification, then go to AlayaCode → API Key to mint a subscription key. The free trial credit (¥30) covers every example on this page.

1. Pick a protocol

ProtocolBase URLWorks with
OpenAIhttps://codingplan.alayanew.com/v1Cursor, Continue, OpenAI SDK, Codex CLI, native openai Python / Node libs
Anthropichttps://codingplan.alayanew.com/anthropicClaude Code, Cline, Roo Code, native anthropic SDK

Both protocols hit the same underlying models — pick whichever your tool prefers; you don't burn quota on the "wrong" choice.

2. Set environment variables

export OPENAI_BASE_URL=https://codingplan.alayanew.com/v1
export OPENAI_API_KEY=sk-your-key-here
export ANTHROPIC_BASE_URL=https://codingplan.alayanew.com/anthropic
export ANTHROPIC_AUTH_TOKEN=sk-your-key-here

3. Make your first call

curl https://codingplan.alayanew.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-your-key-here" \
  -d '{
    "model": "minimax-m2.5",
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'
curl https://codingplan.alayanew.com/anthropic/v1/messages \
  -H "Content-Type: application/json" \
  -H "x-api-key: sk-your-key-here" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "minimax-m2.5",
    "max_tokens": 1024,
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

Where to go next

Supported models

Model IDProviderContextBest for
minimax-m2.5MiniMax200KFlagship for general chat + code generation, fastest path
minimax-m2.1MiniMax200KPrevious stable, cheaper
glm-5Zhipu200KStrongest Chinese, very stable long-doc summarisation
glm-5.1Zhipu200KCode-tuned GLM-5; better function-calling quality
deepseek-v4-proDeepSeek1MLong-context reasoning workloads

The available list shifts with your subscription tier; AlayaCode → Usage in the console always shows the live set.

Last updated on

Was this page helpful?

On this page