mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-24 11:58:31 -05:00
[GH-ISSUE #18713] issue: Open WebUI API returns null when using minimax-m2:cloud model despite model being listed #121993
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CarlosNeuratek on GitHub (Oct 29, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18713
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.34
Ollama Version (if applicable)
0.12.6
Operating System
mac Tahoe 26.0.1
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
List available models (shows minimax-m2:cloud exists)
curl -H "Authorization: Bearer YOUR_API_KEY"
http://localhost:3000/api/models
Attempt to use the model (Chat completion response with generated text)
curl -X POST http://localhost:3000/api/chat/completions
-H "Authorization: Bearer API_KEY"
-H "Content-Type: application/json"
-d '{
"model": "minimax-m2:cloud",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'
Actual Behavior
Attempt to use the model (returns null)
curl -X POST http://localhost:3000/api/chat/completions
-H "Authorization: Bearer API_KEY"
-H "Content-Type: application/json"
-d '{
"model": "minimax-m2:cloud",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'
Steps to Reproduce
Prerequisites:
Open WebUI running on http://localhost:3000
Valid API key obtained from Open WebUI settings
minimax-m2:cloud model present in Ollama
Steps:
List available models (shows minimax-m2:cloud exists)
curl -H "Authorization: Bearer YOUR_API_KEY"
http://localhost:3000/api/models
Attempt to use the model (returns null)
curl -X POST http://localhost:3000/api/chat/completions
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"model": "minimax-m2:cloud",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'
Logs & Screenshots
curl -X POST http://localhost:3000/api/chat/completions \
-H "Authorization: Bearer XXXXX"
-H "Content-Type: application/json"
-d '{"model": "minimax-m2:cloud", "messages": [{"role": "user", "content": "Hello"}]}'
null%
Additional Information
No response
@rgaricano commented on GitHub (Oct 29, 2025):
hide your auth key!
The API KEY have to be OLLAMA's one (to use its cloud models), you can create it in https://ollama.com/settings/keys
@CarlosNeuratek commented on GitHub (Oct 29, 2025):
Thanks @rgaricano, I forgot to remove it from the image.
I'm using two local models with Open WebUI on the same machine, same API key. One works via API, the other returns null.
curl -X POST http://localhost:3000/api/chat/completions
-H "Authorization: Bearer XXXX"
-H "Content-Type: application/json"
-d '{"model": "llama3.1:latest", "messages": [{"role": "user", "content": "Hello"}]}'
✅ Result:
{"id":"llama3.1:latest-535c7799-90cb-4505-a309-4ad043948ea4","created":1761745278,"model":"llama3.1:latest","choices":[{"index":0,"logprobs":null,"finish_reason":"stop","message":{"role":"assistant","content":"Hello! How can I assist you today?"}}],"object":"chat.completion","usage":{"response_token/s":22.98,"prompt_token/s":11.37,"total_duration":2517144500,"load_duration":1110476709,"prompt_eval_count":11,"prompt_tokens":11,"prompt_eval_duration":967049208,"eval_count":10,"completion_tokens":10,"eval_duration":435087917,"approximate_total":"0h0m2s","total_tokens":21,"completion_tokens_details":{"reasoning_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}}}%
curl -X POST http://localhost:3000/api/chat/completions
-H "Authorization: Bearer XXXX"
-H "Content-Type: application/json"
-d '{"model": "minimax-m2:cloud", "messages": [{"role": "user", "content": "Hello"}]}'
❌Result:
null%
@rgaricano commented on GitHub (Oct 29, 2025):
yes Carlos, but one is local served (llama3.1:latest) and the other is ollama's cloud served (minimax-m2:cloud).