AI_MODEL_NOT_FOUND
Encountering an error? Get help with AI tools
Error Cause
The specified model provider was not found. This usually happens when the provider name passed to createModel("xxx") does not exist, is misspelled, or has been discontinued. This error is unrelated to Token quota.
Identify Your Provider
Check the first argument of createModel("xxx") or createImageModel("xxx") in your code — the argument value is your current provider. For example:
const model = ai.createModel("cloudbase"); // Provider is cloudbase (text)
const model = ai.createModel("hunyuan-v3"); // Provider is hunyuan-v3 (text)
const imageModel = ai.createImageModel("hunyuan-image"); // Provider is hunyuan-image (image)
The provider name also appears in the request URL path:
https://cloud1-xxx.api.tcloudbasegateway.com/v1/ai/{provider}/chat/completions
The {provider} in the path is your current provider. If this name does not exist or has been discontinued, this error will be triggered.
Provider Status
| Provider | Status | Description |
|---|---|---|
cloudbase | ✅ Supported | Official provider. Automatically uses plan quota after free quota is exhausted; returns error when plan quota is exhausted |
hunyuan-v3 | ✅ Supported | Mini Program Growth Plan text provider. Only consumes free quota; returns error when exhausted |
hunyuan-image | ✅ Supported | Mini Program Growth Plan image provider, called via createImageModel("hunyuan-image") |
hunyuan-exp | ❌ Discontinued | Historical provider, removed from the server, unusable |
deepseek | ❌ Discontinued | Historical provider, removed from the server, unusable |
| Misspelled name | ❌ Not found | Check if the createModel() argument is correctly spelled (case-sensitive) |
| Improperly configured custom provider | ❌ Not found | Complete the custom model group configuration in the console first, then use the corresponding provider name |
Solution
- Check the provider name: Review the argument of
createModel("xxx")in your code and verify the spelling. - Check the table above: If you are using a discontinued provider (e.g.,
hunyuan-exp,deepseek), switch to a resource point plan and change the provider tocloudbase. - If using a custom provider: Complete the custom model group configuration in the CloudBase Console first. Once configured, you can use the corresponding provider name.
- Newly created groups: If you just created a custom model group, please wait a moment (configuration takes approximately 1-2 minutes to take effect) and try again.