1. 引言
you-token文档
  • 引言
    • 获取令牌
    • 一个完整的请求案例
    • 关于缓存创建与命中
    • 联系客服
    • 定价说明
    • 常见接口错误类型说明
  • 模型介绍
    • GPT 系列
    • Claude 系列
    • Gemini 系列
    • DeepSeek系列
    • 百度文心一言
    • 阿里通义千问
  • 模型接口
    • 模型查询相关
      • 模型列表查询
      • 令牌用量查询
      • 获取账号信息
    • 聊天(Chat)
      • OpenAI
        • 基础聊天(ChatCompletions格式)
          • 基础文本对话
          • 流式响应
          • 内容补全(早期接口)
          • PDF文件分析
          • 代码生成(codex)
          • 结构化输出
          • 联网搜索
          • GPTs对话
        • 会话聊天(Responses格式)
          • 基础文本响应
          • 图像分析响应
          • 网络搜索工具
          • 文件搜索工具
          • 计算机模拟
          • 深度研究
          • 函数调用
          • 推理能力
      • Google Gemini
        • 文本聊天
        • 媒体识别
        • 视频理解
      • Anthropic Claude
        • 文本生成
        • 图片理解
        • 深度思考
        • 函数调用
        • 联网搜索
        • 带缓存创建的文本对话
    • 图像(Images)
      • Midjourney
        • 文生图(Imagine)接口
        • 按钮点击(Action)接口
        • 图片融合(Blend)接口
        • 窗口执行(Modal)接口
        • 图生文(Describe)接口
        • 缩短提示词(Shorten)接口
        • 换脸(FaceSwap)接口
        • 上传(upload)接口
        • 查询接口
        • 批量查询接口
        • 获取种子(Seed)接口
        • 编辑图片(Edit)接口
        • 生成视频(Video)接口
      • OpenAI
        • 图片生成 / gpt-image-1.5
        • 图片生成 / dall-e-3
        • 图片编辑 / edits接口
        • 图片变体生成
        • gpt-4-all(生成图片)
      • Google Gemini
        • OpenAI聊天格式
          • 图片生成(Nano-banana2)
          • 图片生成 / Imagen 4
        • Gemini原生格式
          • 图像生成
      • 豆包(Doubao)
        • 文生图(纯文本输入单图输出)
        • 图文生图(单图输入单图输出)
        • 多图融合(多图输入单图输出)
        • 组图输出(多图输出)
      • 阿里通义千问
        • 文生图-Z-Image
        • 文生图
        • 文生图V2版
        • 文生图V1版
    • 视频(Videos)
      • OpenAI兼容接口
        • Veo 视频生成(OpenAI 兼容格式)
        • 查询视频生成状态 Copy
        • luma
        • runway
      • Veo 3
        • Veo 视频生成
        • 查询视频生成状态
      • Sora-2
        • Sora-2(创建视频)
        • Sora2官方接口(Chat格式)
        • 查询视频(异步任务)
        • 获取视频内容
      • 阿里通义千问
        • 通义万相2.6(创建视频)
        • 查询视频(异步任务)
      • 豆包(Doubao)
        • 豆包-文生视频
        • 查询视频
      • 可灵AI(Kling)
        • 可灵AI-文生视频
        • 可灵AI-文生视频kling-video-o1
        • 可灵AI-图生视频
      • 即梦(Jimeng)
        • 即梦AI-文生视频S2.0Pro
    • 音频(Audio)
      • 原生OpenAI格式
        • 文本转语音 / TTS
        • 语音转文本 / whisper-1
        • 语音转文本 / gpt-4o-transcribe
        • 音频翻译
        • Audio接口 / 输出
        • Audio接口 / 输入
        • MiniMax语音合成TTS
        • 豆包语音2.0
      • 原生Gemini格式
    • 音乐(Music)
      • Suno
        • 生成歌曲
        • 生成歌词
        • 上传音乐
        • 歌曲拼接
        • 单个查询任务
        • 批量查询任务
      • Udio
        • Udio(Chat格式)
    • 嵌入(Embeddings)
      • 创建文本嵌入(OpenAI)
      • 批量创建嵌入(OpenAI)
      • 创建文本嵌入(Gemini)
    • 重排序 (Rerank)
      • Jina AI 重排序格式
      • Cohere 重排序格式
      • Xinference 重排序格式
    • 审查(Moderations)
      • 创建内容审核
  1. 引言

常见接口错误类型说明

常见错误分析文档

本文档记录 new-api 中转服务中常见的错误类型,包括错误码、错误描述、归因分析和推荐解决方案。


错误记录

400 - contents[0].parts[0].data: required oneof field 'data' must have one initialized field

  • 错误码: 400
  • 错误描述: contents[0].parts[0].data: required oneof field 'data' must have one initialized field
  • 归因分析与解决方案: 用户请求问题,图片数据为空或未正确初始化,无需解决

400 - Cannot fetch content from the provided URL

  • 错误码: 400
  • 错误描述: Cannot fetch content from the provided URL
  • 归因分析与解决方案: 用户请求问题,Gemini 无法访问用户提供的 URL,无需解决

400 - Request contains an invalid argument

  • 错误码: 400
  • 错误描述: Request contains an invalid argument
  • 归因分析与解决方案: 用户请求问题,请求参数格式不正确或模型不支持某些参数,无需解决

400 - The input token count exceeds the maximum number of tokens allowed

  • 错误码: 400
  • 错误描述: The input token count exceeds the maximum number of tokens allowed
  • 归因分析与解决方案: 用户请求问题,输入token数超过模型上下文限制,无需解决

400 - The response was filtered due to the prompt triggering Azure OpenAI's content management policy

  • 错误码: 400
  • 错误描述: The response was filtered due to the prompt triggering Azure OpenAI's content management policy
  • 归因分析与解决方案: 用户请求问题,触发了Azure内容过滤策略,无需解决

400 - Unrecognized request argument supplied: enable_thinking

  • 错误码: 400
  • 错误描述: Unrecognized request argument supplied: enable_thinking
  • 归因分析与解决方案: 用户请求问题,请求中包含了目标模型不支持的参数,无需解决

400 - Image part is missing a thought_signature

  • 错误码: 400
  • 错误描述: Image part is missing a thought_signature
  • 归因分析与解决方案: 代码bug,ContentTypeImageURL分支缺少ThoughtSignature处理,需修复代码

400 - does not support output format

  • 错误码: 400
  • 错误描述: does not support output format
  • 归因分析与解决方案: 用户请求问题,该模型不支持请求的输出格式,无需解决

400 - Corrupted thought signature

  • 错误码: 400
  • 错误描述: Corrupted thought signature
  • 归因分析与解决方案: 用户请求问题,多轮对话中传递了损坏或失效的thought_signature,无需解决

400 - The encrypted content could not be verified

  • 错误码: 400
  • 错误描述: The encrypted content could not be verified
  • 归因分析与解决方案: 用户请求问题,请求中包含无法解密的加密内容,无需解决

400 - Invalid schema for function

  • 错误码: 400
  • 错误描述: Invalid schema for function
  • 归因分析与解决方案: 用户请求问题,函数调用的schema格式不正确,无需解决

400 - messages: text content blocks must be non-empty

  • 错误码: 400
  • 错误描述: messages: text content blocks must be non-empty
  • 归因分析与解决方案: 用户请求问题,消息中的文本内容块为空,无需解决

400 - unexpected 'tool_use_id' found in 'tool_result' blocks

  • 错误码: 400
  • 错误描述: unexpected 'tool_use_id' found in 'tool_result' blocks: tooluse_jtppUEOBHYqhTBXrWd96fb. Each 'tool_result' block must have a corresponding 'tool_use' block in the previous message.
  • 归因分析与解决方案: 用户请求问题,工具调用格式错误,tool_result缺少对应的tool_use块,无需解决

400 - Internal error encountered

  • 错误码: 400
  • 错误描述: Internal error encountered.
  • 归因分析与解决方案: 上游问题,上游服务内部错误,需联系上游服务提供商

400 - ValidationException: invalid beta flag

  • 错误码: 400
  • 错误描述: ValidationException: invalid beta flag
  • 归因分析与解决方案: 用户请求问题,AWS Bedrock请求中包含无效的beta标志,无需解决

403 - UnrecognizedClientException: The security token included in the request is invalid

  • 错误码: 403
  • 错误描述: UnrecognizedClientException: The security token included in the request is invalid.
  • 归因分析与解决方案: 上游资源耗尽或供应商账号失效

400 - prompt is too long: 228527 tokens > 200000 maximum

  • 错误码: 400
  • 错误描述: prompt is too long: 228527 tokens > 200000 maximum
  • 归因分析与解决方案: 用户请求问题,提示词长度超过模型限制,无需解决

400/429 - The image size is not allowed to be zero or larger than 20971520 bytes

  • 错误码: 400/429
  • 错误描述: The image size is not allowed to be zero or larger than 20971520 bytes
  • 归因分析与解决方案: 用户请求问题,图片大小超过20MB限制,无需解决

404 - ResourceNotFoundException: This Model is marked by provider as Legacy

  • 错误码: 404
  • 错误描述: ResourceNotFoundException: This Model is marked by provider as Legacy and you have not been actively using the model in the last 15 days
  • 归因分析与解决方案: 上游问题,AWS Bedrock遗留模型未激活,15天未使用被标记为Legacy

413 - Request exceeds the maximum size

  • 错误码: 413
  • 错误描述: Request exceeds the maximum size
  • 归因分析与解决方案: 用户请求问题,请求体大小超过上游模型或服务器限制,无需解决

429 - received empty response from Gemini: no meaningful content in candidates

  • 错误码: 429
  • 错误描述: received empty response from Gemini: no meaningful content in candidates
  • 归因分析与解决方案: 上游问题,Gemini API返回空响应,上游模型临时故障或负载过高

500 - invalid character '<' looking for beginning of value

  • 错误码: 500
  • 错误描述: invalid character '<' looking for beginning of value
  • 归因分析与解决方案: 渠道API配置错误,去掉API后缀的 /

500 - Concurrency limit exceeded for user, please retry later

  • 错误码: 500
  • 错误描述: Concurrency limit exceeded for user, please retry later
  • 归因分析与解决方案: 上游资源耗尽或供应商账号失效

503 - system cpu overloaded

  • 错误码: 503
  • 错误描述: system cpu overloaded
  • 归因分析与解决方案: 本机服务器问题,服务器临时故障或负载不足

503 - openai_error

  • 错误码: 503
  • 错误描述: openai_error
  • 归因分析与解决方案: 上游问题,上游服务不可用或上游负载过高

503 - This model is currently experiencing high demand

  • 错误码: 503
  • 错误描述: This model is currently experiencing high demand
  • 归因分析与解决方案: 上游问题,上游模型高负载

504 - bad response status code 504

  • 错误码: 504
  • 错误描述: bad response status code 504
  • 归因分析与解决方案: 上游问题,上游网关超时

429 - You exceeded your current quota

  • 错误码: 429
  • 错误描述: You exceeded your current quota / Quota exceeded for metric: generate_requests_per_model_per_day, limit: 0
  • 归因分析与解决方案: 上游资源耗尽或供应商账号失效

429 - Resource has been exhausted (e.g. check quota)

  • 错误码: 429
  • 错误描述: Resource has been exhausted (e.g. check quota)
  • 归因分析与解决方案: 上游资源耗尽或供应商账号失效

429 - Input tokens exceed the configured limit of 272000 tokens

  • 错误码: 429
  • 错误描述: Input tokens exceed the configured limit of 272000 tokens. Your messages resulted in 296616 tokens. Please reduce the length of the messages.
  • 归因分析与解决方案: 用户请求问题,输入token数超过模型上下文限制,无需解决

429 - Too many tokens per day, please wait before trying again

  • 错误码: 429
  • 错误描述: Too many tokens per day, please wait before trying again.
  • 归因分析与解决方案: 上游资源耗尽或供应商账号失效

429 - You exceeded your current quota, please check your plan and billing details

  • 错误码: 429
  • 错误描述: You exceeded your current quota, please check your plan and billing details. Quota exceeded for metric: generate_content_paid_tier_3_input_token_count, limit: 8000000, model: gemini-3-pro
  • 归因分析与解决方案: 上游资源耗尽或供应商账号失效

503 - 分组 default 下模型 gemini-2.5-pro 无可用渠道(distributor)

  • 错误码: 503
  • 错误描述: 分组 default 下模型 gemini-2.5-pro 无可用渠道(distributor)
  • 归因分析与解决方案: 本机服务器问题,系统内部分配器配置错误,需检查渠道配置

429 - 上游服务繁忙,请稍后重试

  • 错误码: 429
  • 错误描述: 上游服务繁忙,请稍后重试
  • 归因分析与解决方案: 上游问题,上游服务临时繁忙或负载过高

500 - Extra usage is required for long context requests

  • 错误码: 500
  • 错误描述: Extra usage is required for long context requests.
  • 归因分析与解决方案: 上游资源耗尽或供应商账号失效

500 - error counting image token, media index[0]

  • 错误码: 500
  • 错误描述: error counting image token, media index[0], identifier[ https://imageproxy.zhongzhuan.chat/api/proxy/image/d41d8cd98f00b204e9800998ecf8427e.jpg], err: failed to decode image config: unsupported format
  • 归因分析与解决方案: 用户请求问题,图片格式不支持或无效,无需解决

500 - error getting file type: failed to download file, status code: 400

  • 错误码: 500
  • 错误描述: error getting file type: failed to download file, status code: 400
  • 归因分析与解决方案: 用户请求问题,文件URL无效或无法访问,无需解决

500 - 没有可用token

  • 错误码: 500
  • 错误描述: 没有可用token
  • 归因分析与解决方案: 本机服务器问题,系统内部token池耗尽或token分配失败,需检查token管理配置

503 - Backend returned an error, please try again later, or start a new conversation

  • 错误码: 503
  • 错误描述: Backend returned an error, please try again later, or start a new conversation.
  • 归因分析与解决方案: 上游问题,上游服务临时故障或不可用
修改于 2026-03-16 14:55:01
上一页
定价说明
下一页
GPT 系列
Built with