PPromptoll

Docs

Promptoll is OpenAI-compatible. If you know the OpenAI SDK, you know Promptoll.

Quickstart

  1. 1. Create an account

    Sign up and create an API key from Console → API Keys.

  2. 2. Point the OpenAI SDK at Promptoll

    from openai import OpenAI
    
    client = OpenAI(
        base_url="https://promptoll.com/v1",
        api_key="zai_•••",
    )
  3. 3. Pick a model — or let us pick

    client.chat.completions.create(
        model="auto",
        messages=[{"role": "user", "content": "hi"}],
    )

Routing modes

autoCheapest model in your catalog
qualityHighest quality tier available
<model-id>Use this model. If arbitrage is enabled, we may swap for a cheaper equivalent.

Response headers

X-Model-UsedModel that actually produced the response
X-Latency-MsUpstream + routing time in ms
X-Cost-MicrocentsWhat we pay upstream (µ¢)
X-Price-MicrocentsWhat you are charged (µ¢)

Streaming

Pass stream=True for SSE. Promptoll forwards every chunk unchanged and bills on the final usage event.