Get Rated Bids
curl --request GET \
--url https://api.mor.org/api/v1/models/ratedbids \
--header 'Authorization: <authorization>'import requests
url = "https://api.mor.org/api/v1/models/ratedbids"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.mor.org/api/v1/models/ratedbids', 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.mor.org/api/v1/models/ratedbids",
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: <authorization>"
],
]);
$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.mor.org/api/v1/models/ratedbids"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.mor.org/api/v1/models/ratedbids")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mor.org/api/v1/models/ratedbids")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"bids": [
{
"bid_id": "<string>",
"provider": "<string>",
"model_id": "<string>",
"price_per_second": "<string>",
"rating": 123,
"total_sessions": 123,
"availability": "<string>",
"min_duration": 123,
"max_duration": 123
}
]
}Models
Get Rated Bids
Get rated bids for a specific model
GET
/
api
/
v1
/
models
/
ratedbids
Get Rated Bids
curl --request GET \
--url https://api.mor.org/api/v1/models/ratedbids \
--header 'Authorization: <authorization>'import requests
url = "https://api.mor.org/api/v1/models/ratedbids"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.mor.org/api/v1/models/ratedbids', 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.mor.org/api/v1/models/ratedbids",
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: <authorization>"
],
]);
$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.mor.org/api/v1/models/ratedbids"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.mor.org/api/v1/models/ratedbids")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mor.org/api/v1/models/ratedbids")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"bids": [
{
"bid_id": "<string>",
"provider": "<string>",
"model_id": "<string>",
"price_per_second": "<string>",
"rating": 123,
"total_sessions": 123,
"availability": "<string>",
"min_duration": 123,
"max_duration": 123
}
]
}Get rated bids for a specific model.
Connects to the proxy-router’s
/blockchain/models/{id}/bids/rated endpoint. Returns all available provider bids for the model, sorted by rating and price.
Headers
string
required
API key in format:
Bearer sk-xxxxxxQuery Parameters
string
required
The blockchain ID (hex) of the model to get rated bids for, e.g.,
0x1234...Response
array
Array of rated bid objects
Show Bid Object
Show Bid Object
string
Unique identifier for the bid
string
Provider’s blockchain address
string
Model’s blockchain address
string
Price per second in MOR tokens
number
Provider rating (0-5)
integer
Number of sessions completed
string
Current availability status:
available, busy, offlineinteger
Minimum session duration in seconds
integer
Maximum session duration in seconds
Understanding Ratings: Provider ratings are calculated based on session success rate, response time, and user feedback. Higher-rated providers typically offer more reliable service.
Cost Calculation: To calculate the total session cost, multiply
price_per_second by your desired session duration. For example, a 1-hour session (3600 seconds) at 0.000014 MOR/second would cost 0.0504 MOR.Use the
bid_id from this response when creating a session with /api/v1/session/bidsession to select a specific provider.⌘I

