Omni Image G2
Omni Image G2 API(图片生成):$0.0141 / 张。经济档文生图与改图。通过 /v1/images/generations 调用,美元按量付费。
- 价格
- $0.0141
- 单位
- 张
- 类型
- 图片生成
- 接口
- /v1/images/generations
价格
$0.0141 / 张
预计 $0.0564
美元计价,按标价从预付余额扣费。少数特殊套餐的 Key 价格可能不同。 计费规则
能力
经济档文生图与改图
- 模型 ID
- omni-image-g2
- 模式
- 图片编辑、文生图
接口
POST /v1/images/generations
结果直接在响应中返回。先把 BIGMODEL_API_KEY 设为你的 API Key。
cURL
curl https://bigmodel.io/v1/images/generations \
-H "Authorization: Bearer $BIGMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "omni-image-g2",
"prompt": "A paper lantern floating over a misty lake at dawn",
"n": 1
}'Python、Node.js 示例、全部输入字段和错误处理见指南。 接入指南 →