Switch language

Overview

Everything you need to go from zero to a working Bitdeer AI integration.

This section walks you through the fastest path to a working integration:

  1. Installation — Install Python or JavaScript HTTP client packages when you want typed helpers instead of raw curl.
  2. Authentication — Create and configure your API key.
  3. First Request — Send a chat completion and inspect the response.

Prerequisites

  • Python 3.10+ or Node.js 20+
  • A Bitdeer AI account — sign up here
  • A terminal with pip or npm available

What you'll build

By the end of this section you'll have a working script that calls the Bitdeer AI chat completion endpoint and prints the model's response:

from openai import OpenAI

client = OpenAI(
    base_url="https://api-inference.bitdeer.ai/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V4-Pro",
    messages=[{"role": "user", "content": "Explain AI inference in one sentence."}],
    max_tokens=128,
)

print(response.choices[0].message.content)

Last updated on

On this page

Overview · Bitdeer AI