SPOT TAPE
FRNT-200K2.180+1.42%
MID-128K0.4204−0.81%
OW-70B0.0840+3.11%
OW-8B0.0191+0.44%
VIS-1M1.6400−2.19%
RSN-XL6.9000+0.93%
EMB-S0.01100.00%
14:02:07 UTC
Documentation v1 · UPDATED 21 AUG 2026
Get an API key

Response consumption

POST /v1/chat/completions returns an OpenAI chat.completion object. Read it the same way you read OpenAI. Fields from ChatCompletionResponse in protocol/src/openai.rs:

fieldtypenotes
idstringCompletion identifier
objectstringTypically "chat.completion"
createdintegerUnix timestamp (seconds)
modelstringModel that produced the completion
choices[]arrayEach item has index, message, finish_reason
usageobject, optionalprompt_tokens, completion_tokens, total_tokens
from token_gateway import BuyerAuth, BuyerTokenGateway

gw = BuyerTokenGateway("http://127.0.0.1:8080", buyer=BuyerAuth("sk-buyer"))
completion = gw.chat_completions(
    model="gpt-4",
    messages=[{"role": "user", "content": "hello"}],
)
content = completion.choices[0].message.content
print(content)

stream: true exists on the request (see chat_completions_stream in sdks/consistency/fixtures/calls.json). End-to-end SSE consumption is on the buyer flow.