{
  "info": {
    "name": "glhf API",
    "description": "OpenAI-compatible REST API for glhf (glhf.chat). Models are selected by passing a Hugging Face repository as hf:org/model. API keys are created at https://glhf.chat/users/settings/api.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://glhf.chat/api/openai/v1"
    },
    {
      "key": "bearerToken",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Chat",
      "item": [
        {
          "name": "Create a chat completion.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/chat/completions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "chat",
                "completions"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"hf:meta-llama/Llama-3.3-70B-Instruct\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"Hello!\"\n    }\n  ],\n  \"stream\": false\n}"
            },
            "description": "Creates a model response for the given chat conversation. The model field must be a Hugging Face repository in the form hf:org/model. When stream is true, partial deltas are returned as Server-Sent Events."
          }
        }
      ]
    },
    {
      "name": "Models",
      "item": [
        {
          "name": "List available models.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/models",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "models"
              ]
            },
            "description": "Lists the models available to the account in the OpenAI models response shape."
          }
        }
      ]
    }
  ]
}
