":{"code":"","message":"所有令牌分组 default 下对于模型 gpt-image-2 均无可用渠道,请更换分组尝试 (request...
错误信息
Status: 503
{"error":{"code":"","message":"所有令牌分组 default 下对于模型 gpt-image-2 均无可用渠道,请更换分组尝试 (request id: 2026042711440155502121833f76zyV)","type":"rix_api_error"}}
AI 解决方案
报错分析报告
1.错误翻译
原文:All token groups under the default group have no available channels for model gpt-image-2, please try changing the group (request id: 2026042711440155502121833f76zyV)
译文:所有令牌分组 default 下对于模型 gpt-image-2 均无可用渠道,请更换分组尝试 (request id: 2026042711440155502121833f76zyV)
2.原因分析
default令牌分组未配置模型gpt-image-2的可用渠道。 gpt-image-2模型接口时,使用了无该模型权限的default分组。3. 解决方案
更换为有
gpt-image-2可用渠道的令牌分组,示例代码如下(以Python为例):import requests
# 配置新分组的令牌和接口地址
API_URL = "https://api.dmxapi.com/v1/images/generations"
HEADERS = {
"Authorization": "Bearer YOUR_NEW_GROUP_TOKEN", # 替换为新分组的有效令牌
"Content-Type": "application/json"
}
PAYLOAD = {
"model": "gpt-image-2",
"prompt": "A sunny day in the forest"
}
# 发送请求
response = requests.post(API_URL, headers=HEADERS, json=PAYLOAD)
print(response.json())
4. 预防措施
---
请优先检查令牌分组配置,确保目标模型已关联可用渠道。