fix: HY-Image-V3.0修正为tokenhub官方端点/api/image/submit

This commit is contained in:
yumoqing 2026-07-08 17:17:03 +08:00
parent a5d06c8085
commit 96bf6c4394

View File

@ -46,12 +46,12 @@ UPDATE uapi SET ioid='hunyuan_vision_io' WHERE id='qStjXm_Meu0nBjiRzdPew' AND up
-- ===================== Part 4: image uapi (tokenhub) =====================
INSERT INTO uapi (id,name,title,description,need_auth,stream,path,httpmethod,headers,data,response,ioid,upappid) VALUES
('uapi_hunyuan_tokenhub_image','hunyuan-image-tokenhub','混元Image','Hunyuan Image via TokenHub','0','async','/images/generations','POST',
('uapi_hunyuan_tokenhub_image','hunyuan-image-tokenhub','混元Image','混元生图3.0 via TokenHub','0','async','/api/image/submit','POST',
'{"Content-Type":"application/json"}',
'{"model":"{{model}}","prompt":{{json.dumps(prompt,ensure_ascii=False)}}{%if size%},"size":"{{size}}"{%endif%}{%if n%},"n":{{n}}{%endif%}}',
'{"model":"{{model}}","prompt":{{json.dumps(prompt,ensure_ascii=False)}}{%if image_file%},"images":["{{image_file}}"]{%endif%}{%if n%},"n":{{n}}{%endif%}{%if size%},"size":"{{size}}"{%endif%}}',
'{"taskid":"{{id}}","taskstatus":"PENDING","status":"PENDING"}',
'hunyuan_image_io','5QXZ-AMP0K0NrcpZiTomA')
ON DUPLICATE KEY UPDATE data=VALUES(data),response=VALUES(response);
ON DUPLICATE KEY UPDATE data=VALUES(data),response=VALUES(response),path=VALUES(path);
-- ===================== Part 5: pricing_program =====================
INSERT INTO pricing_program (id,name,ownerid,providerid,pricing_belong,description) VALUES