Get Started
Playground
Ask one question through the Developer API and see the job it ran on chain. Each run is paid from your prepaid balance with one wallet signature and no gas.
LightchainAI · chain 9200
One question, one answer: a run keeps no history.
The same call in code
From a terminal or a server, the call authenticates with an API key in $LIGHTCHAIN_API_KEY and pays from the same prepaid balance. A run here pays with a single-use signature instead, so it can't be replayed. Create a key.
curl https://chat-api.mainnet.lightchain.ai/v1/chat/completions \
-H "Authorization: Bearer $LIGHTCHAIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gemma4:e2b","messages":[{"role":"user","content":"Reply with a one-sentence fun fact about the ocean."}]}'curl https://chat-api.mainnet.lightchain.ai/v1/chat/completions \
-H "Authorization: Bearer $LIGHTCHAIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gemma4:e2b","messages":[{"role":"user","content":"Reply with a one-sentence fun fact about the ocean."}]}'