开发中(2026-07):本站统一出图入口,兼容 Google Gemini 的 interactions格式。Base URL 为主站。⚠️ 响应字段为临时契约,正在按真实上游返回校准中。
model 选中的渠道类型自动分流到不同后端,再统一返回:/v1beta/interactions(保真返回上游 JSON);/v1/images/generations(有输入图则 /edits),响应组装回 interactions 形态。input 里带 type:image 输入图)、流式(stream:true,SSE)。Authorization: Bearer <apikey>。/v1/images/* 一致;Gemini 透传按模型价(按次/按图)计费;失败不扣。分组差价一致。1:1 / 16:9 / 9:16 / 4:3 / 3:4 / 2:3 / 3:2 / 4:5 / 5:4 / 21:9 等;image_size:512px(仅Flash) / 1K / 2K / 4K。curl --location 'https://api.openai-hub.net/v1beta/interactions' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Authorization: Bearer sk-0ABIEXVjh9****Qckjy' \
--header 'Content-Type: application/json' \
--data '{
"model": "string",
"input": [
{
"type": "text",
"text": "string",
"mime_type": "string",
"data": "string"
}
],
"response_format": {
"type": "image",
"mime_type": "string",
"aspect_ratio": "string",
"image_size": "512px"
},
"stream": false
}'{
"model": "string",
"output_image": {
"data": "string",
"mime_type": "string"
},
"output_text": "string"
}