Get Started
Verifying an Answer
Every completion is one job on the Lightchain AI network, and every response says which one:CodeJSON
x-lightchain response header (the same object, as JSON). OpenAI SDKs keep unknown fields, so it is there in JavaScript as completion.lightchain (TypeScript needs a cast: the SDK's types do not know it) and in Python as completion.model_extra["lightchain"]. To read the header with the Node SDK:
CodeTYPESCRIPT
Check it on chain
CodeBASH