Cintao AI Hub
软件安装
Nodejs 环境安装教程
Claude Code 配置教程
Codex (OpenAI) 配置教程
CC Switch 配置文档
Gemini Cli (Google)配置安装
用户手册
快速注册 Chintao AI Hub 账号
支持模型及分组
创建令牌获取API Key
文章心得
Claude Code 创始人 Boris Cherny 的 13 个使用技巧完整解析
绘画
创建绘画
编辑图片【暂不可用】
联系我们
本站点使用 MrDoc 构建
-
+
编辑图片【暂不可用】
--- title: 默认模块 language_tabs: - shell: Shell - http: HTTP - javascript: JavaScript - ruby: Ruby - python: Python - php: PHP - java: Java - go: Go toc_footers: [] includes: [] search: true code_clipboard: true highlight_theme: darkula headingLevel: 2 generator: "@tarslib/widdershins v4.0.30" --- # 默认模块 Base URLs: * <a href="https://chintao.cn">正式环境: https://chintao.cn</a> # Authentication - HTTP Authentication, scheme: bearer ## POST 编辑图片 POST /v1/images/edits > Body 请求参数 ```json { "model": "nano-banana-2-1k", "prompt": "图一的女生抱着图二的小猫", "images": [ "https://example.com/example.png", "https://example.com/example.png" ], "ratio": "9:16", "resolution": "2k" } ``` ### 请求参数 |名称|位置|类型|必选|说明| |---|---|---|---|---| |Accept|header|string| 是 |none| |Authorization|header|string| 否 |none| |body|body|object| 否 |none| |» model|body|string| 是 |用于生成图像的模型。| |» prompt|body|string| 是 |所需图像的文本描述。| |» images|body|[string]| 是 |要编辑的图片。必须是受支持的图片图片数组。| |» ratio|body|string| 是 |画面比例,支持9:16、16:9、4:3、3:4、1:1,具体以模型为准。| |» resolution|body|string| 是 |分辨率,支持1k、2k、4k,如果模型名字携带分辨率此参数失效| > 返回示例 > 200 Response ```json { "id": "d854f3a9-1c64-40b7-8ef9-eee89c1869fe", "model": "nano-banana-2-1k", "object": "chat.completion", "created": 1774761856, "data": [ { "url": "https://img.nanobananas.ai/outputs/2026/03/29/mkp4sueb.jpg" } ], "usage": { "prompt_tokens": 1, "completion_tokens": 1, "total_tokens": 2, "generated_images": 1, "prompt_tokens_details": { "cached_tokens": 0, "text_tokens": 0, "audio_tokens": 0, "image_tokens": 0 }, "completion_tokens_details": { "text_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0 }, "input_tokens": 0, "output_tokens": 0, "input_tokens_details": null, "claude_cache_creation_5_m_tokens": 0, "claude_cache_creation_1_h_tokens": 0 } } ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| ### 返回数据结构 状态码 **200** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» id|string|true|none||none| |» model|string|true|none||none| |» object|string|true|none||none| |» created|integer|true|none||none| |» data|[object]|true|none||none| |»» url|string|false|none||none| |» usage|object|true|none||none| |»» prompt_tokens|integer|true|none||none| |»» completion_tokens|integer|true|none||none| |»» total_tokens|integer|true|none||none| |»» generated_images|integer|true|none||none| |»» prompt_tokens_details|object|true|none||none| |»»» cached_tokens|integer|true|none||none| |»»» text_tokens|integer|true|none||none| |»»» audio_tokens|integer|true|none||none| |»»» image_tokens|integer|true|none||none| |»» completion_tokens_details|object|true|none||none| |»»» text_tokens|integer|true|none||none| |»»» audio_tokens|integer|true|none||none| |»»» reasoning_tokens|integer|true|none||none| |»» input_tokens|integer|true|none||none| |»» output_tokens|integer|true|none||none| |»» input_tokens_details|null|true|none||none| |»» claude_cache_creation_5_m_tokens|integer|true|none||none| |»» claude_cache_creation_1_h_tokens|integer|true|none||none| |» choices|[object]|true|none||none| |»» index|integer|false|none||none| |»» message|object|false|none||none| |»»» role|string|true|none||none| |»»» content|string|true|none||none| |»» finish_reason|string|false|none||none|
nibiew
2026年3月30日 01:32
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
PDF文档(打印)
分享
链接
类型
密码
更新密码