Switch language

API Reference Overview

Complete reference for the Bitdeer AI inference APIs — endpoints, parameters, and response schemas.

Base URL

All API requests should be made to:

https://api-inference.bitdeer.ai/v1

Authentication

All requests require a bearer token in the Authorization header:

Authorization: Bearer {API_KEY}

Get your key from Bitdeer AI Console → API Keys. See Authentication for full details.

API groups

Basic APIs

EndpointDescription
AuthenticationAPI key management and usage
Error CodesUnified error response format and retry guidance

LLM APIs

HTTP endpoints for self-deployed chat and vision models, plus optional embeddings and reranking APIs.

EndpointMethodPathDescription
Create Chat CompletionPOST/v1/chat/completionsGenerate text responses (supports streaming, tools, vision)
Create EmbeddingsPOST/v1/embeddingsConvert text to vector representations
Create RerankPOST/v1/rerankReorder documents by relevance
List ModelsGET/v1/modelsList all available models

Quick start

1. Get your API key

Visit Bitdeer AI Console → API Keys to create and manage your keys.

2. Make your first request

curl https://api-inference.bitdeer.ai/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

3. Client libraries

  • Python and JavaScript/TypeScript: configure the community openai client with base_url / baseURL set to https://api-inference.bitdeer.ai/v1. Request and response bodies match the HTTP API schemas.

Common use cases

What you want to doGo to
"How to get started?"Get Started + Authentication
"API error, status 401"Error Codes
"Generate text with LLM"Create Chat Completion
"Understand images with a VLM"Vision guide
"Build a RAG pipeline"RAG example
"Use function calling"Function Calling guide
"Stream responses"Streaming guide
"See all models"Model Catalog
"Connect to Cursor / LangChain"Integrations
"How do chat requests work?"LLM guide

Error handling

All errors follow a consistent JSON format. See Error Codes for complete reference.

Last updated on

On this page

API Reference Overview · Bitdeer AI