Zum Hauptinhalt springen
GET
/
openai
/
v1
/
models
/
{model}
Informationen zu einem bestimmten Modell abrufen
curl --request GET \
  --url https://api.highwayapi.ai/openai/v1/models/{model} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "id": "<string>",
  "created": 123,
  "object": "<string>",
  "input_token_price_per_m": 123,
  "output_token_price_per_m": 123,
  "title": "<string>",
  "description": "<string>",
  "context_size": 123
}
Ruft eine Modellinstanz ab und stellt grundlegende Informationen zum Modell bereit. Dieser Endpoint ist mit der OpenAI API kompatibel.

Request-Header

Content-Type
string
erforderlich
Enum-Wert: application/json
Authorization
string
erforderlich
Bearer-Authentifizierungsformat: Bearer {{API Key}}.

Pfadparameter

model
string
erforderlich
Die für diese Anfrage verwendete Modell-ID.

Antwortinformationen

id
string
erforderlich
Modell-ID, die in API Endpoints referenziert wird.
created
integer
erforderlich
Unix-Zeitstempel der Modellerstellung (in Sekunden).
object
string
erforderlich
Objekttyp, immer “model”.
input_token_price_per_m
integer
erforderlich
Preis pro Million Eingabe-tokens.
output_token_price_per_m
integer
erforderlich
Preis pro Million Ausgabe-tokens.
title
string
erforderlich
Titel des Modells.
description
string
erforderlich
Beschreibung des Modells.
context_size
integer
erforderlich
Maximale Kontextgröße des Modells.