Switch language

Overview

Call the Bitdeer AI API from Python or JavaScript with common HTTP clients.

These pages show how to call Bitdeer with the community openai packages (PyPI, npm): set base_url / baseURL to https://api-inference.bitdeer.ai/v1 and set the API key to your Bitdeer key. The same endpoints accept plain HTTPS JSON—see the HTTP API reference.

Available SDKs

LanguagePackageInstallation
Pythonopenaipip install openai
JavaScript / TypeScriptopenainpm install openai

Quick comparison

curl https://api-inference.bitdeer.ai/v1/chat/completions \
  -H "Authorization: Bearer $BITDEER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek-ai/DeepSeek-V4-Pro", "messages": [{"role": "user", "content": "Hello!"}]}'

Last updated on

On this page

Overview · Bitdeer AI