Api Endpoint

quickbuild.quynguyenbac.workers.dev

Drop-in OpenAI Chat Completions endpoint: POST {model, messages, max_tokens, temperature, top_p, seed, stream, response_format} and get a chat.completion object (or SSE chunks with stream=true). Models (Cloudflare Workers AI): llama-3.1-8b (default), llama-3.2-3b, llama-3.2-1b, mistral-7b, granite-4.0-micro; any other model name maps to the default (actual model is in the response). Text only, no tool calling; max_tokens capped at 512, input up to 24000 chars. Latest user message checked by...

Open interactive test console

Offering

Provider
quickbuild.quynguyenbac.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://quickbuild.quynguyenbac.workers.dev/v1/chat/completions
MIME type
application/json
First seen
2026-10-23T22:46:33.373Z
Last seen
Tags
LLM, chat, openai-compatible, Inference, AI

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.003 USDC
Atomic price: 3000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "payTo": "0x751a4c3841bE287544C371B4EE09Bd3366AeA7cf"
  }
]

Observed health

Status
Healthy
Latest latency
307 ms
Average latency
366 ms
HTTP status
402
Last checked
Reachability
100% over 15 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "model": {
          "type": "string",
          "enum": [
            "llama-3.1-8b",
            "llama-3.2-3b",
            "llama-3.2-1b",
            "mistral-7b",
            "granite-4.0-micro",
            "@cf/meta/llama-3.1-8b-instruct-fp8-fast",
            "@cf/meta/llama-3.2-3b-instruct",
            "@cf/meta/llama-3.2-1b-instruct",
            "@cf/mistral/mistral-7b-instruct-v0.1",
            "@cf/ibm-granite/granite-4.0-h-micro"
          ],
          "description": "Model alias or Workers AI id (default llama-3.1-8b). Unknown names fall back to the default."
        },
        "messages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string",
                "enum": [
                  "system",
                  "developer",
                  "user",
                  "assistant"
                ]
              },
              "content": {
                "type": "string"
              }
            },
            "required": [
              "role",
              "content"
            ]
          },
          "description": "OpenAI-style chat messages. Optional: if omitted, `prompt` (or a sample question) is used."
        },
        "prompt": {
          "type": "string",
          "description": "Convenience: a single user message (appended after `messages`)."
        },
        "max_tokens": {
          "type": "integer",
          "minimum": 1,
          "maximum": 512,
          "description": "Max completion tokens (default and cap 512)."
        },
        "temperature": {
          "type": "number",
          "minimum": 0,
          "maximum": 2,
          "description": "Sampling temperature (model default if omitted)."
        },
        "top_p": {
          "type": "number",
          "minimum": 0,
          "maximum": 1,
          "description": "Nucleus sampling."
        },
        "seed": {
          "type": "integer",
          "description": "Optional seed."
        },
        "stream": {
          "type": "boolean",
          "description": "If true, returns text/event-stream chat.completion.chunk events (whole answer in one chunk) ending with [DONE]."
        },
        "response_format": {
          "type": "object",
          "description": "{\"type\":\"json_object\"} or {\"type\":\"json_schema\",\"json_schema\":{\"schema\":{...}}}."
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "object": {
          "type": "string"
        },
        "created": {
          "type": "integer"
        },
        "model": {
          "type": "string"
        },
        "choices": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer"
              },
              "message": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  }
                }
              },
              "finish_reason": {
                "type": "string"
              }
            }
          }
        },
        "usage": {
          "type": "object",
          "properties": {
            "prompt_tokens": {
              "type": "integer"
            },
            "completion_tokens": {
              "type": "integer"
            },
            "total_tokens": {
              "type": "integer"
            }
          }
        }
      }
    }
  },
  "required": [
    "type"
  ]
}