Tasks
curl --request GET \
--url https://api.bytez.com/models/v2/list/tasks \
--header 'Authorization: <api-key>'import requests
url = "https://api.bytez.com/models/v2/list/tasks"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.bytez.com/models/v2/list/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bytez.com/models/v2/list/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bytez.com/models/v2/list/tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bytez.com/models/v2/list/tasks")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bytez.com/models/v2/list/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"error": null,
"output": [
[
"text-generation",
"text-to-image",
"text-to-video",
"..."
]
]
}{
"error": "Unauthorized",
"output": null
}{
"error": "Rate limit exceeded",
"output": null
}Tasks
Retrieve a list of tasks
GET
/
models
/
v2
/
list
/
tasks
Tasks
curl --request GET \
--url https://api.bytez.com/models/v2/list/tasks \
--header 'Authorization: <api-key>'import requests
url = "https://api.bytez.com/models/v2/list/tasks"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.bytez.com/models/v2/list/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bytez.com/models/v2/list/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bytez.com/models/v2/list/tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bytez.com/models/v2/list/tasks")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bytez.com/models/v2/list/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"error": null,
"output": [
[
"text-generation",
"text-to-image",
"text-to-video",
"..."
]
]
}{
"error": "Unauthorized",
"output": null
}{
"error": "Rate limit exceeded",
"output": null
}Explore the wide range of tasks supported by Bytez. These tasks enable seamless integration with open-source and closed-source AI models.
Task List
Current tasks supported, with a brief description of each.| Task Name | Description |
|---|---|
| Audio Classification | Classify audio files into predefined categories. |
| Automatic Speech Recognition (ASR) | Convert speech to text with high accuracy. |
| Chat | Facilitate conversational AI capabilities. |
| Depth Estimation | Predict depth information from images. |
| Document Question Answering | Extract answers from documents based on questions. |
| Feature Extraction | Extract features from various types of data (text, audio, images, etc.). |
| Fill Mask | Predict masked tokens in a text sequence. |
| Image Classification | Categorize images into predefined classes. |
| Image Feature Extraction | Extract visual features from images for further processing. |
| Image Segmentation | Partition an image into multiple segments. |
| Image Text-to-Text | Generate text based on the content of images. |
| Image to Text | Generate descriptive text captions for images. |
| Mask Generation | Generate mask images for specific tasks like segmentation. |
| Object Detection | Identify and locate objects within an image. |
| Question Answering | Provide accurate answers to questions based on a context or document. |
| Sentence Similarity | Compute the semantic similarity between sentences. |
| Summarization | Generate concise summaries from longer text. |
| Text Classification | Categorize text into predefined categories. |
| Text Generation | Generate coherent text based on a given prompt. |
| Text to Audio | Convert text into audio (speech synthesis). |
| Text to Image | Generate images from textual descriptions. |
| Text to Speech | Convert text to speech audio files. |
| Text to Video | Create video content from text prompts. |
| Text-to-Text Generation | Perform text transformation tasks like translation or rewriting. |
| Token Classification | Label tokens in a text sequence with appropriate tags. |
| Translation | Translate text from one language to another. |
| Unconditional Image Generation | Generate images without any specific conditions or prompts. |
| Video Classification | Classify video content into predefined categories. |
| Visual Question Answering | Answer questions based on the visual content of an image. |
| Zero-Shot Classification | Classify text without requiring task-specific training data. |
| Zero-Shot Image Classification | Classify images without requiring task-specific training data. |
| Zero-Shot Object Detection | Detect objects in images without requiring task-specific training data. |