Rechnungen abfragen
curl --request GET \
--url https://api.highwayapi.ai/openapi/v1/billing/bill/list \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api.highwayapi.ai/openapi/v1/billing/bill/list"
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'}
};
fetch('https://api.highwayapi.ai/openapi/v1/billing/bill/list', 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.highwayapi.ai/openapi/v1/billing/bill/list",
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>",
"Content-Type: <content-type>"
],
]);
$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.highwayapi.ai/openapi/v1/billing/bill/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
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.highwayapi.ai/openapi/v1/billing/bill/list")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/openapi/v1/billing/bill/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"bills": [
{
"userId": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"billingMethod": "<string>",
"productName": "<string>",
"category": "<string>",
"ownerID": "<string>",
"billNum0": "<string>",
"billNum1": "<string>",
"basePrice0": "<string>",
"basePrice1": "<string>",
"discountPrice0": "<string>",
"discountPrice1": "<string>",
"amount": "<string>",
"voucherAmount": "<string>",
"payAmount": "<string>",
"payAmountDisplay": "<string>",
"pricePrecision": "<string>",
"productId": "<string>"
}
]
}API-Grundlagen
Rechnungen abfragen
GET
/
openapi
/
v1
/
billing
/
bill
/
list
Rechnungen abfragen
curl --request GET \
--url https://api.highwayapi.ai/openapi/v1/billing/bill/list \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api.highwayapi.ai/openapi/v1/billing/bill/list"
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'}
};
fetch('https://api.highwayapi.ai/openapi/v1/billing/bill/list', 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.highwayapi.ai/openapi/v1/billing/bill/list",
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>",
"Content-Type: <content-type>"
],
]);
$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.highwayapi.ai/openapi/v1/billing/bill/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
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.highwayapi.ai/openapi/v1/billing/bill/list")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/openapi/v1/billing/bill/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"bills": [
{
"userId": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"billingMethod": "<string>",
"productName": "<string>",
"category": "<string>",
"ownerID": "<string>",
"billNum0": "<string>",
"billNum1": "<string>",
"basePrice0": "<string>",
"basePrice1": "<string>",
"discountPrice0": "<string>",
"discountPrice1": "<string>",
"amount": "<string>",
"voucherAmount": "<string>",
"payAmount": "<string>",
"payAmountDisplay": "<string>",
"pricePrecision": "<string>",
"productId": "<string>"
}
]
}Anfrageheader
string
erforderlich
Enum-Wert:
application/jsonstring
erforderlich
Bearer-Authentifizierungsformat: Bearer {{API Key}}.
Antwortinformationen
string
erforderlich
Granularität des Abrechnungszeitraums. Optionen:
Hour: stündlichDay: täglichWeek: wöchentlichMonth: monatlich
string
erforderlich
Produkttyp. Optionen:
summary: zusammengefasste Rechnungllm: großes Sprachmodell
string
Produktname. Unterstützt unscharfe Suche.
string
Startzeit des abzufragenden Abrechnungszeitraums, Zeitstempel (Sekunden), Standardwert: 0.
string
Endzeit des abzufragenden Abrechnungszeitraums, Zeitstempel (Sekunden), Standardwert: 0.
string
Gibt die abzufragende Instanz-ID an.
Antwortparameter
object[]
erforderlich
Abrechnungsinformationen für On-Demand-Instanzen.
Ausblenden Eigenschaften
Ausblenden Eigenschaften
string
erforderlich
Benutzer-ID, zu der die Instanz gehört.
string
erforderlich
Startzeit der Rechnung. Format: Unix-Zeitstempel.
string
erforderlich
Endzeit der Rechnung. Format: Unix-Zeitstempel.
string
erforderlich
Abrechnungsmethode der Instanz. Der Wert 1 bedeutet On-Demand-Abrechnung.
string
erforderlich
Produktname.
string
erforderlich
Produktkategorie.
string
erforderlich
Instanz-ID.
string
erforderlich
- llm: Eingabe-tokens
string
erforderlich
- llm: Ausgabe-tokens
string
erforderlich
Originalpreis
string
erforderlich
Ohne Bedeutung
string
erforderlich
- llm: Einzelpreis für Eingabe-tokens
- Sonstige: Einzelpreis
string
erforderlich
- llm: Einzelpreis für Ausgabe-tokens
string
erforderlich
Gesamtpreis.
string
erforderlich
Abgezogener Gutscheinbetrag.
string
erforderlich
Bar zu zahlender Betrag.
string
erforderlich
string
erforderlich
Preisgenauigkeit.
string
erforderlich
Produkt-ID.
⌘I