{
  "info": {
    "_postman_id": "9cb85464-52c1-4994-b684-0cee72926254",
    "name": "Flonno API \u2014 Models and text Chat Completions",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "# Flonno API quickstart\n\n1. Fork this collection into your own PRIVATE workspace or import it locally.\n2. Create a Flonno account at https://www.flonno.com/sign-up and a key with models:read and chat:completions permissions plus access to the selected model.\n3. Check model prices and add prepaid credit at https://www.flonno.com/dashboard/billing. These examples do not include free credit.\n4. Set flonno_api_key privately (Postman Vault or an unshared local environment); never save a real key to this public collection or workspace.\n5. Run List models, then Chat completion. Streaming chat returns SSE data events followed by [DONE].\n\nBase URL: https://www.flonno.com/v1. Default model: qwen3.8-27b; output cap 128 tokens. Input and output tokens can be billed separately. Flonno serves qwen3.8-27b on its own GPUs and does not route requests to another AI API provider. Read https://www.flonno.com/privacy before sending customer data. Token speed varies by model and request; no guaranteed speed. This collection covers implemented text Chat Completions, not every OpenAI API feature.\n\n401: key invalid; 403: missing permission/model/IP access; 402: insufficient balance; 400: check request fields. Do not blindly retry failed generation. Setup and n8n examples: https://www.flonno.com/integrations.\n"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{flonno_api_key}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://www.flonno.com/v1",
      "type": "string"
    },
    {
      "key": "model",
      "value": "qwen3.8-27b",
      "type": "string"
    },
    {
      "key": "flonno_api_key",
      "value": "",
      "type": "string",
      "description": "Keep your real key in a PRIVATE local environment or Vault; never publish it."
    }
  ],
  "item": [
    {
      "name": "List models",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/models",
        "description": "Requires models:read. Returns model IDs; no generation performed."
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
              "pm.test(\"Model catalog\", () => pm.expect(pm.response.json().data).to.be.an(\"array\").that.is.not.empty);"
            ]
          }
        }
      ]
    },
    {
      "name": "Chat completion",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": "{{base_url}}/chat/completions",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"model\": \"{{model}}\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"Reply with one short greeting.\"\n    }\n  ],\n  \"max_tokens\": 128,\n  \"stream\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "description": "Requires chat:completions, selected model access and available prepaid credit. Output includes reasoning tokens where reported; inspect finish_reason if the cap is reached."
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
              "pm.test(\"Chat choices\", () => pm.expect(pm.response.json().choices).to.be.an(\"array\").that.is.not.empty);",
              "pm.test(\"Reported usage\", () => pm.expect(pm.response.json().usage.total_tokens).to.be.a(\"number\"));"
            ]
          }
        }
      ]
    },
    {
      "name": "Streaming chat",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": "{{base_url}}/chat/completions",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"model\": \"{{model}}\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"Reply with one short greeting.\"\n    }\n  ],\n  \"max_tokens\": 128,\n  \"stream\": true\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "description": "Requires chat:completions, selected model access and available prepaid credit. Output includes reasoning tokens where reported; inspect finish_reason if the cap is reached."
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
              "pm.test(\"SSE response\", () => pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"text/event-stream\"));",
              "pm.test(\"Stream completed\", () => pm.expect(pm.response.text()).to.include(\"[DONE]\"));"
            ]
          }
        }
      ]
    }
  ]
}
