Models Featured
curl --request GET \
--url https://api.deepinfra.com/models/featuredimport requests
url = "https://api.deepinfra.com/models/featured"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.deepinfra.com/models/featured', 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.deepinfra.com/models/featured",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.deepinfra.com/models/featured"
req, _ := http.NewRequest("GET", url, nil)
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.deepinfra.com/models/featured")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deepinfra.com/models/featured")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"model_name": "microsoft/resnet-50",
"type": "image-classification",
"reported_type": "text-generation",
"pricing": {
"cents_per_sec": 123,
"discount": 0.2,
"discount_ends_at": 1786000000,
"short": "$0.15 / second",
"full": "$0.15 / second for 1080P, $0.10 / second for 720P",
"table": {
"columns": [
"resolution",
"$ cost per second"
],
"rows": [
[
"780P",
"$0.10"
],
[
"1080P",
"$0.15"
]
]
},
"type": "time"
},
"description": "ResNet-50 is a convolutional neural network that is trained on more than a million images from the ImageNet database. It is a 50-layer deep neural network.",
"cover_img_url": "",
"tags": [
"<string>"
],
"max_tokens": 123,
"replaced_by": "<string>",
"deprecated": 123,
"quantization": "<string>",
"mmlu": 123,
"expected": "<string>",
"create_ts": "<string>",
"private": 0,
"is_partner": false
}
]Models
Models Featured
GET
/
models
/
featured
Models Featured
curl --request GET \
--url https://api.deepinfra.com/models/featuredimport requests
url = "https://api.deepinfra.com/models/featured"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.deepinfra.com/models/featured', 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.deepinfra.com/models/featured",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.deepinfra.com/models/featured"
req, _ := http.NewRequest("GET", url, nil)
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.deepinfra.com/models/featured")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deepinfra.com/models/featured")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"model_name": "microsoft/resnet-50",
"type": "image-classification",
"reported_type": "text-generation",
"pricing": {
"cents_per_sec": 123,
"discount": 0.2,
"discount_ends_at": 1786000000,
"short": "$0.15 / second",
"full": "$0.15 / second for 1080P, $0.10 / second for 720P",
"table": {
"columns": [
"resolution",
"$ cost per second"
],
"rows": [
[
"780P",
"$0.10"
],
[
"1080P",
"$0.15"
]
]
},
"type": "time"
},
"description": "ResNet-50 is a convolutional neural network that is trained on more than a million images from the ImageNet database. It is a 50-layer deep neural network.",
"cover_img_url": "",
"tags": [
"<string>"
],
"max_tokens": 123,
"replaced_by": "<string>",
"deprecated": 123,
"quantization": "<string>",
"mmlu": 123,
"expected": "<string>",
"create_ts": "<string>",
"private": 0,
"is_partner": false
}
]Response
200 - application/json
Successful Response
Model Name
Example:
"microsoft/resnet-50"
raw type of the model
Example:
"image-classification"
reported type of the model
Example:
"text-generation"
The pricing type and cost for this model
- ModelPricingTime
- ModelPricingTokens
- ModelPricingInputLength
- ModelPricingInputTokens
- ModelPricingUptime
- ModelPricingInputCharacterLength
- ModelPricingImageUnits
- ModelPricingOutputLength
- ModelPricingFrameUnits
Show child attributes
Show child attributes
description of the model
Example:
"ResNet-50 is a convolutional neural network that is trained on more than a million images from the ImageNet database. It is a 50-layer deep neural network."
cover image link
list of tags
The maximum context size of this model, if applicable