WanAPIs · JSON-LD Context

Wanapis Context

JSON-LD context defining the semantic vocabulary for Wanapis from WanAPIs.

31 Classes 5 Properties 2 Namespaces
View Context View on GitHub

Namespaces

xsd: http://www.w3.org/2001/XMLSchema#
wanapis: https://wanapis.com/ns#

Classes

Model ModelMarketplace Provider Channel ChatCompletion Response Embedding ImageGeneration Transcription Speech Task Quota id name description model messages role content input prompt voice size usage finish_reason owned_by pricing task_id status channel failover

Properties

Property Type Container
prompt_tokens integer
completion_tokens integer
total_tokens integer
input_price decimal
output_price decimal

JSON-LD Document

wanapis-context.jsonld Raw ↑
{
  "@context": {
    "@vocab": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "wanapis": "https://wanapis.com/ns#",
    "Model":          "wanapis:Model",
    "ModelMarketplace": "wanapis:ModelMarketplace",
    "Provider":       "wanapis:Provider",
    "Channel":        "wanapis:Channel",
    "ChatCompletion": "wanapis:ChatCompletion",
    "Response":       "wanapis:Response",
    "Embedding":      "wanapis:Embedding",
    "ImageGeneration": "wanapis:ImageGeneration",
    "Transcription":  "wanapis:Transcription",
    "Speech":         "wanapis:Speech",
    "Task":           "wanapis:Task",
    "Quota":          "wanapis:Quota",
    "id":   "@id",
    "name": "schema:name",
    "description": "schema:description",
    "model":   "wanapis:model",
    "messages": "wanapis:messages",
    "role":    "wanapis:role",
    "content": "schema:text",
    "input":   "wanapis:input",
    "prompt":  "wanapis:prompt",
    "voice":   "wanapis:voice",
    "size":    "wanapis:size",
    "usage":   "wanapis:usage",
    "prompt_tokens":     { "@id": "wanapis:promptTokens",     "@type": "xsd:integer" },
    "completion_tokens": { "@id": "wanapis:completionTokens", "@type": "xsd:integer" },
    "total_tokens":      { "@id": "wanapis:totalTokens",      "@type": "xsd:integer" },
    "finish_reason":     "wanapis:finishReason",
    "owned_by":          "wanapis:ownedBy",
    "pricing":           "wanapis:pricing",
    "input_price":       { "@id": "wanapis:inputPrice",  "@type": "xsd:decimal" },
    "output_price":      { "@id": "wanapis:outputPrice", "@type": "xsd:decimal" },
    "task_id":           "wanapis:taskId",
    "status":            "wanapis:taskStatus",
    "channel":           "wanapis:channel",
    "failover":          "wanapis:failover"
  }
}