主题切换
Gemini格式图片编辑
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1beta/models/{model-name}:generateContent:
post:
summary: Gemini格式图片编辑
deprecated: false
description: ''
tags:
- 绘画模型/Image2作图
parameters:
- name: model-name
in: path
description: ''
required: true
schema:
type: string
- name: Authorization
in: header
description: ''
required: false
example: Bearer sk-xxx
schema:
type: string
- name: Content-Type
in: header
description: ''
required: false
example: multipart/form-data
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
01KP10ETYC40FK298ABBH5HZQ3:
type: string
x-apifox-orders:
- 01KP10ETYC40FK298ABBH5HZQ3
example:
contents:
- parts:
- inline_data:
mime_type: image/jpeg
data: <base64>
- text: >-
请根据以下要求编辑这张图片,并直接输出编辑后的图片:将背景改成纯白,保留主体结构和细节。请直接生成编辑后的图片,不要只返回文字描述。
generationConfig:
responseModalities:
- IMAGE
imageConfig:
aspectRatio: '1:1'
imageSize: 2K
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
x-apifox-name: 成功
security:
- bearer: []
x-apifox-folder: 绘画模型/Image2作图
x-apifox-status: developing
x-run-in-apifox: https://app.apifox.com/web/project/7937429/apis/api-439172771-run
components:
schemas: {}
securitySchemes:
bearer:
type: http
scheme: bearer
servers:
- url: https://new.22codex.xyz
description: 正式环境
security:
- bearer: []