Prabloe Console

Playground

Compose a request against the public API and read the exact bytes it sends back. For a conversation, use the chat app; this page is the wire.

Request

POST /api/v1/chat
Model
gpt-oss-20b

The one model this endpoint serves. Any other id is refused with model_not_in_scope.

Up to 24 messages, 8,000 characters each. Prompts are never stored.

Body
{
  "model": "gpt-oss-20b",
  "messages": [
    {
      "role": "user",
      "content": "Explain a token bucket in two sentences."
    }
  ]
}

Response

200 · application/json
Shape
{
  "id": "pbcmpl_m1k2j3",
  "object": "chat.completion",
  "created": 1757376000,
  "model": "gpt-oss-20b",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "A token bucket…"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 18,
    "completion_tokens": 42,
    "total_tokens": 60
  }
}

Headers on every authenticated response, success and 429 alike

  • x-prabloe-ratelimit-requests-limit
  • x-prabloe-ratelimit-requests-remaining
  • x-prabloe-ratelimit-requests-reset
  • x-prabloe-provider

Streaming is not served yet: stream: true is refused rather than quietly downgraded to one blob.

Errors

every code this endpoint can return
StatusCodeWhen
404The endpoint is not enabled on this deployment.
401invalid_keyMissing, unknown, publishable, or sent from a browser.
401key_revokedA well-formed key that no longer verifies.
403insufficient_scopeA live key that is not scoped to this route.
400model_not_in_scopeAny model other than "gpt-oss-20b".
400invalid_requestBad JSON, empty messages, or stream: true.
429rate_limitedPer-key burst limit. Read retry-after.
402spend_limit_reachedThe key's daily call or USD budget is spent.
502 / 503unavailableNo provider reachable, or an unusable reply.

Run it

not from this page

A pb_secret_ key is refused when it arrives from a browser — one that reached us this way has already been shipped to end users. Copy the request above and run it from your server or terminal. For an interactive conversation, the chat app is the surface.