Zum Hauptinhalt springen

Documentation Index

Fetch the complete documentation index at: https://docs.tokenlab.sh/llms.txt

Use this file to discover all available pages before exploring further.

Pfadparameter

model
string
erforderlich
Die ID des abzurufenden Modells (z. B. gpt-5.4, claude-sonnet-4-6).

Antwort

id
string
Modellbezeichner.
object
string
Immer model.
created
integer
Erstellungszeitstempel.
owned_by
string
Modellanbieter.
lemondata
object
Öffentliche TokenLab-Metadaten. Die Detailroute kann category, pricing_unit, capability_flags, supported_operations, pricing_provenance, public_contract_summary, das vollständige public_contract sowie szenenbezogene agent_preferences für Nicht-Chat-Empfehlungssnapshots enthalten.
curl "https://api.tokenlab.sh/v1/models/gpt-5.4" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "id": "gpt-5.4",
  "object": "model",
  "created": 1706000000,
  "owned_by": "openai"
}

Fehlerbehandlung

Wenn das Modell nicht existiert, erhalten Sie einen 404-Fehler:
{
  "error": {
    "message": "Model 'invalid-model' not found",
    "type": "invalid_request_error",
    "code": "model_not_found"
  }
}

Nicht-Chat-Empfehlungsmetadaten

Bei Nicht-Chat-Modellen gibt die Detailroute außerdem lemondata.agent_preferences.<scene> zurück. Verwenden Sie das, um Folgendes zu prüfen:
  • preferred_rank
  • success_rate_24h
  • sample_count_24h
  • status
  • updated_at
Die öffentliche Antwort lässt basis.channel_id und basis.physical_model absichtlich auf null, damit Agenten das Empfehlungssignal konsumieren können, ohne interne Routing-IDs zu sehen.

Öffentliche Detailmetadaten

Im Vergleich zu GET /v1/models kann die Detailroute zusätzlich Folgendes zurückgeben:
  • lemondata.capability_flags
  • lemondata.supported_operations
  • lemondata.pricing_provenance
  • lemondata.public_contract_summary
  • lemondata.public_contract