春节拜年图片设计师Spring Festival picture designer
春节拜年图片设计师Spring Festival picture designer · GPT Actions
FastAPI
GET /privacyFileupload隐私策略
GET /file-manager/Fileupload用户图像上传的承接页面
POST /upload/Upload用户提交接口
POST /gen/Gen生成一张用户新春主题AI图片
原始 API 定义
{
"openapi": "3.1.0",
"info": {
"title": "FastAPI",
"version": "0.1.0"
},
"servers": [
{
"url": "https://saigpts-dev.domob-inc.cn"
}
],
"paths": {
"/privacy": {
"get": {
"summary": "Fileupload",
"description": "隐私策略",
"operationId": "fileUpload_privacy_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/file-manager/": {
"get": {
"summary": "Fileupload",
"description": "用户图像上传的承接页面",
"operationId": "fileUpload_file_manager__get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/upload/": {
"post": {
"summary": "Upload",
"description": "用户提交接口",
"operationId": "upload_upload__post",
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/Body_upload_upload__post"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/gen/": {
"post": {
"summary": "Gen",
"description": "生成一张用户新春主题AI图片",
"operationId": "gen_gen__post",
"parameters": [
{
"name": "user_prompt",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "User Prompt"
}
},
{
"name": "user_img_filename",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "User Img Filename"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GenResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Body_upload_upload__post": {
"properties": {
"user_img": {
"type": "string",
"format": "binary",
"title": "User Img"
}
},
"type": "object",
"required": [
"user_img"
],
"title": "Body_upload_upload__post"
},
"GenResponse": {
"properties": {
"id": {
"type": "integer",
"title": "Id",
"description": "素材图像id",
"examples": [
1021,
2022
]
},
"u": {
"type": "string",
"title": "U",
"description": "生成结果图片访问地址",
"examples": [
"18:00",
"23:00"
]
}
},
"type": "object",
"required": [
"id",
"u"
],
"title": "GenResponse"
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
}
}
}
}