sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

image2调用何时能引入保活机制?cf超时问题需解决

Open RoseKhlifa opened this issue 6 months ago • 2 comments

如题

RoseKhlifa avatar May 17 '26 08:05 RoseKhlifa

我临时的解决方法:普通接口走橙云,生图接口走灰云,规避120s的限制。

yhj945 avatar May 18 '26 01:05 yhj945

流式输出。案例:

curl 'https://xxxxxxx/v1/responses' \
  -H 'Accept: */*' \
  -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8' \
  -H 'Authorization: Bearer sk-xxxxxxx' \
  -H 'Cache-Control: no-cache' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: application/json' \
  -H 'DNT: 1' \
  -H 'Pragma: no-cache' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: same-site' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36' \
  -H 'sec-ch-ua: "Google Chrome";v="147", "Not.A/Brand";v="8", "Chromium";v="147"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Windows"' \
  --data-raw '{"model":"gpt-5.5","input":[{"role":"user","content":[{"type":"input_text","text":"篮球 街舞 鸡"}]}],"tools":[{"type":"image_generation","model":"gpt-image-2","action":"generate","size":"1024x1024","quality":"auto","output_format":"png","moderation":"low","partial_images":0}],"tool_choice":{"type":"image_generation"},"reasoning":{"effort":"xhigh"},"store":false,"stream":true}'

BeiPoer avatar May 18 '26 09:05 BeiPoer