Large Language Models

Guides for using Bitdeer AI's text generation models — capabilities, parameters, and advanced features.

Model capabilities

Large Language Models (LLMs) on Bitdeer AI are accessed through the Chat Completions HTTP API (POST /v1/chat/completions). They support:

  • Text Generation — Generate coherent, contextual text for any task
  • Code Generation — Write, explain, and debug code in Python, JavaScript, and 30+ languages
  • Summarization & Translation — Condense documents or translate between languages
  • Multi-turn Conversation — Maintain context across multiple user/assistant exchanges
  • Tool Use — Call external functions and APIs via Function Calling

Available models

ModelProviderModalityHighlights
deepseek-ai/DeepSeek-V4.1-FlashDeepSeekTextMultimodal mixture-of-experts
deepseek-ai/DeepSeek-V4-FlashDeepSeekTextHigh-speed text generation
zai-org/GLM-5.3ZAITextAdvanced reasoning and scaling
zai-org/GLM-5.3-FlashZAIText + VisionFast multimodal reasoning
Qwen/Qwen3.8-27BAlibabaTextCompact dense vision-language

See the full list in the Model Catalog.

API integration

Use the API Reference for request and response fields. In short:

  1. Base URL: https://api-inference.bitdeer.ai/v1
  2. Send Authorization: Bearer <your Bitdeer key>

The snippet below uses the Python helper from SDKs; the same call is a JSON POST over HTTPS.

from openai import OpenAI

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

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V4.1-Flash",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "What is serverless inference?"},
    ],
    stream=True,
    max_tokens=512,
)

for chunk in response:
    print(chunk.choices[0].delta.content or "", end="")

Feature guides

Key parameters

ParameterTypeDescription
modelstringRequired. The model ID from the Model Catalog.
messagesarrayRequired. The conversation history — system, user, and assistant messages.
max_tokensintegerMaximum tokens in the response.
temperaturefloatControls randomness. 0 = deterministic, 2 = highly creative. Default 1.
top_pfloatNucleus sampling. Controls cumulative probability. Default 1.
streambooleanWhether to stream the response. Default false.
stopstring or arraySequences that will terminate generation.
frequency_penaltyfloatPenalizes repeated tokens. Range [-2, 2].
presence_penaltyfloatEncourages topic diversity. Range [-2, 2].

Last updated on

On this page