pollinations
/
toolkit
- Public
- 449 runs
Run pollinations/toolkit with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
task |
string
(enum)
|
Options: convert_input_to_mp4, convert_input_to_gif, extract_video_audio_as_mp3, zipped_frames_to_mp4, zipped_frames_to_gif, extract_frames_from_input, reverse_video, bounce_video, concatenate_video |
Task to perform
|
input_file |
string
|
File – zip, image or video to process
|
|
input_file2 |
string
|
Second file – zip, image or video to process
|
|
fps |
integer
|
0
|
frames per second, if relevant. Use 0 to keep original fps (or use default). Converting to GIF defaults to 12fps
|
{
"type": "object",
"title": "Input",
"required": [
"task",
"input_file"
],
"properties": {
"fps": {
"type": "integer",
"title": "Fps",
"default": 0,
"x-order": 3,
"description": "frames per second, if relevant. Use 0 to keep original fps (or use default). Converting to GIF defaults to 12fps"
},
"task": {
"enum": [
"convert_input_to_mp4",
"convert_input_to_gif",
"extract_video_audio_as_mp3",
"zipped_frames_to_mp4",
"zipped_frames_to_gif",
"extract_frames_from_input",
"reverse_video",
"bounce_video",
"concatenate_video"
],
"type": "string",
"title": "task",
"description": "Task to perform",
"x-order": 0
},
"input_file": {
"type": "string",
"title": "Input File",
"format": "uri",
"x-order": 1,
"description": "File \u2013 zip, image or video to process"
},
"input_file2": {
"type": "string",
"title": "Input File2",
"format": "uri",
"x-order": 2,
"description": "Second file \u2013 zip, image or video to process"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}