Python client
Call Bitdeer AI from Python using the community openai package and a custom base URL.
This guide uses the openai package as a convenient HTTP client. Configure base_url to Bitdeer and use your Bitdeer API key.
Install
Configure
api_keystrrequiredYour Bitdeer API key. Never hardcode into source control.
base_urlstrrequiredtimeoutfloatdefault: 600Request timeout in seconds.
Chat completion
Async
Streaming
Error handling
See Errors for the full error reference.
Last updated on