Image Upload Learn how to upload images to use in various tasks,…
- User
Assistant: User: User: Image Upload Learn how to upload images to use in various tasks, including image-to-image generation, background removal, upscaling, and more. Introduction
Images can be uploaded to be used in other tasks like Image-to-Image, Upscaling or ControlNet preprocessing.
There are 3 things to keep in mind:
codeValid extensions are: jpeg, jpg, png, webp, bmp and gif. There is no limit on image size but we save them with a maximum of 2048 pixels in width or height, maintaining the original aspect ratio. Images are deleted 30 days after last use. As long as you continue using them, we will continue saving them indefinitely.Request
Our API always accepts an array of objects as input, where each object represents a specific task to be performed. The structure of the object varies depending on the type of the task. For this section, we will focus on the parameters related to the image upload task.
The following JSON snippet shows the basic structure of a request object. All properties are explained in detail in the next section.
[ { "taskType": "imageUpload", "taskUUID": "50836053-a0ee-4cf5-b9d6-ae7c5d140ada", "image": "data:image/png;base64,iVBORw0KGgo..." } ]
taskType stringrequired
codeThe type of task to be performed. For this task, the value should be imageUpload.taskUUID stringrequiredUUID v4
codeWhen a task is sent to the API you must include a random UUID v4 string using the taskUUID parameter. This string is used to match the async responses to their corresponding tasks. If you send multiple tasks at the same time, the taskUUID will help you match the responses to the correct tasks. The taskUUID must be unique for each task you send to the API.image stringrequired
code - Assistant
Конечно, давайте разберемся, что может быть не так с вашим кодом. На первый взгляд, код выглядит относительно правильно структурированным, однако есть несколько моментов, которые стоит проверить и протестировать:
-
Токен и API ключ: Убедитесь, что ваш токен бота и ключ API RunWare верны и активны. Неправильный или деактивированный ключ вызовет ошибки.
-
: Проверьте, установлены ли все необходимые библиотеки и корректно ли они импортированы. В частности, , , , и должны быть доступными в вашей среде.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.