google/imagen4
📝 模型简介待补充(TODO)。 本页所有取值均来自 ModelFold 模型目录,未编造任何技术细节。
概览
| 字段 | 值 |
|---|---|
| 模型 ID | google/imagen4 |
| 所属系列 | google/imagen4 |
| 模态 | 图像生成 (image) |
| 计费积分 | 12 |
| 上游成本 | 8 / per request |
| 定价来源 | upstream-api — 上游官方定价(媒体类) |
| 调用端点 | POST /v1/images/generations |
调用示例
bash
export API_BASE="https://modelfold.ai/v1"
export MODELFOLD_API_KEY="mf-..." # 在控制台 API Key 页面创建
curl -X POST "$API_BASE/images/generations" \
-H "Authorization: Bearer $MODELFOLD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"google/imagen4","prompt":"A lively comic scene where two colleagues are in an office. The first person says, '\''Have you heard about Google Imagen 4 Ultra?'\'' The second person responds with excitement, '\''It’s the best text-to-image tool out there!'\'' The first person asks again, '\''Do you know where to get the API?'\'' The second person smiles and says, '\''ModelFold has it!'\'' In the final panel, the two look at a screen showing ModelFold’s interface with an API option, with bright and colorful comic-style illustrations.","aspect_ratio":"1:1"}'必填参数
必填:prompt、aspect_ratio。
模型参数直接放在请求体顶层,不要套 input。示例素材地址需替换为自己的公开可访问文件;请求等待生成完成后返回 data[].url。
条件必填、取值限制及其它输入模式见完整参数文档。
