aihubmix platform cannot add T2I AI models #600

Closed
opened 2026-02-16 10:19:52 -05:00 by yindo · 1 comment
Owner

Originally created by @lixc123 on GitHub (Aug 27, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.7.1

Plugin version

0.0.6

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

The aihubmix platform cannot add T2I AI models, such as gemini-2.5-flash-image-preview or imagen-4.0-fast-generate-001.

Image

✔️ Error log

Credentials validation failed with status code 400

Originally created by @lixc123 on GitHub (Aug 27, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.7.1 ### Plugin version 0.0.6 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce The aihubmix platform cannot add T2I AI models, such as gemini-2.5-flash-image-preview or imagen-4.0-fast-generate-001. <img width="1271" height="840" alt="Image" src="https://github.com/user-attachments/assets/3af86db6-4743-4487-aa35-c3dbca1b45e1" /> ### ✔️ Error log Credentials validation failed with status code 400
yindo added the bug label 2026-02-16 10:19:52 -05:00
yindo closed this issue 2026-02-16 10:19:52 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 27, 2025):

The reason you’re seeing “Credentials validation failed with status code 400” when trying to add T2I (Text-to-Image) models like gemini-2.5-flash-image-preview or imagen-4.0-fast-generate-001 to aihubmix is that T2I model support isn’t implemented in the current Dify or dify-official-plugins codebases. The backend only recognizes certain model types (LLM, text-embedding, rerank, speech2text, moderation, tts), and credential validation for unsupported types like T2I will always fail with a 400 error due to strict schema/type enforcement see codebase details.

This is a feature limitation, not a bug or misconfiguration. To enable T2I support, new provider/model files and updates to the ModelType enum, schema validation, and plugin logic would be needed plugin structure note.

For now, you can only add supported model types. If T2I support is critical for your workflow, you might want to track this as a feature request or consider contributing the necessary changes.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Aug 27, 2025): <!-- Answer --> The reason you’re seeing “Credentials validation failed with status code 400” when trying to add T2I (Text-to-Image) models like gemini-2.5-flash-image-preview or imagen-4.0-fast-generate-001 to aihubmix is that T2I model support isn’t implemented in the current Dify or dify-official-plugins codebases. The backend only recognizes certain model types (LLM, text-embedding, rerank, speech2text, moderation, tts), and credential validation for unsupported types like T2I will always fail with a 400 error due to strict schema/type enforcement [see codebase details](https://github.com/langgenius/dify/blob/56c51f01123b4ae3419478f38b46464879a19826/api/core/model_runtime/entities/model_entities.py). This is a feature limitation, not a bug or misconfiguration. To enable T2I support, new provider/model files and updates to the ModelType enum, schema validation, and plugin logic would be needed [plugin structure note](https://github.com/langgenius/dify-official-plugins/issues/805). For now, you can only add supported model types. If T2I support is critical for your workflow, you might want to track this as a feature request or consider contributing the necessary changes. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/10b5ff1f-67ed-45f6-92e8-9b66d4673792?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/10b5ff1f-67ed-45f6-92e8-9b66d4673792?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/10b5ff1f-67ed-45f6-92e8-9b66d4673792?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/10b5ff1f-67ed-45f6-92e8-9b66d4673792?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/10b5ff1f-67ed-45f6-92e8-9b66d4673792?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/10b5ff1f-67ed-45f6-92e8-9b66d4673792?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/10b5ff1f-67ed-45f6-92e8-9b66d4673792?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1602)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#600