{
"name": "iflytek_astron",
"engine": "openai",
"display_name": "iFlytek Astron MaaS",
"description": "iFlytek Astron MaaS (讯飞星辰) models via the OpenAI-compatible API. Defaults to the Token Plan endpoint; set ASTRON_BASE_URL to https://maas-coding-api.cn-huabei-1.xf-yun.com/v2 to use the Coding Plan (e.g. astron-code-latest). Each plan has its own API key.",
"api_key_env": "ASTRON_API_KEY",
"base_url": "${ASTRON_BASE_URL}",
"env_vars": [
{
"name": "ASTRON_BASE_URL",
"required": false,
"secret": false,
"default": "https://maas-token-api.cn-huabei-1.xf-yun.com/v2",
"description": "Astron MaaS API base URL. Use https://maas-coding-api.cn-huabei-1.xf-yun.com/v2 for Coding Plan models like astron-code-latest."
}
],
"dynamic_models": false,
"skip_canonical_filtering": true,
"models": [
{"name": "xsparkx2", "context_limit": 131072},
{"name": "xsparkx2flash", "context_limit": 131072},
{"name": "xopglm51", "context_limit": 204800},
{"name": "xopglm5", "context_limit": 204800},
{"name": "xopdeepseekv4pro", "context_limit": 131072},
{"name": "xopdeepseekv4flash", "context_limit": 131072},
{"name": "xopdeepseekv32", "context_limit": 131072},
{"name": "xopkimik26", "context_limit": 262144},
{"name": "xminimaxm25", "context_limit": 131072},
{"name": "xopqwen35397b", "context_limit": 262144},
{"name": "astron-code-latest", "context_limit": 131072}
],
"supports_streaming": true,
"preserves_thinking": true,
"model_doc_link": "https://www.xfyun.cn/doc/spark/TokenPlan.html",
"setup_steps": [
"Sign in to https://maas.xfyun.cn and subscribe to a Token Plan (general models) or Coding Plan (astron-code-latest)",
"Copy the dedicated API Key for your plan from the subscription page",
"Paste the API Key above as ASTRON_API_KEY",
"For Coding Plan, set ASTRON_BASE_URL to https://maas-coding-api.cn-huabei-1.xf-yun.com/v2"
]
}