Photo-to-Avatar
Photo-to-Avatar · GPT-Aktionen
Upload Image by Image URL
Upload image by image URL for user to download late
POST /file/upload_image_urlUploadImageBySendingURLUpload image by sending URL
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "Upload Image by Image URL",
"description": "Upload image by image URL for user to download late",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://a.thaigpt.com"
}
],
"paths": {
"/file/upload_image_url": {
"post": {
"description": "Upload image by sending URL",
"operationId": "UploadImageBySendingURL",
"requestBody": {
"description": "JSON object that contains the image URL",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"image_url": {
"type": "string",
"format": "url",
"description": "URL of the image to upload"
},
"title": {
"type": "string",
"description": "Title of the image"
},
"description": {
"type": "string",
"description": "Description of the image"
}
},
"required": [
"image_url"
]
}
}
}
},
"responses": {
"200": {
"description": "Image uploaded successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"url": {
"type": "string",
"format": "url"
}
}
}
}
}
},
"400": {
"description": "Bad Request"
}
},
"deprecated": false
}
}
},
"components": {
"schemas": {}
}
}