Quick Start
The Block Entropy API provides interfaces for developers to create intelligence layers in their applications.
The Block Entropy API provides interfaces for developers to create intelligence layers in their applications, powered by state-of-the-art, open source language, image, video, and audio models. The BE APIs use a format compatible with OpenAI, allowing developers to use the OpenAI SDK or software compatible with the OpenAI API to access these services.
Key Points:
API Compatibility: By modifying the configuration, you can use OpenAI-compatible tools to access Block Entropy APIs.
Base URLs:
https://api.blockentropy.ai/v1
API Keys: Services require API keys, which you must apply for and keep secure.
Chat Completions: The API offers chat completion endpoints, which power conversational AI like ChatGPT and provide a way to generate text outputs based on input prompts.
Streaming: The API supports streaming responses. Set the
stream
parameter totrue
to enable this feature.
Setup and Usage:
Account Setup: Create an account and obtain an API key.
Environment Setup:
Install Python
Set up a virtual environment (optional but recommended)
Install the appropriate OpenAI Python library
API Key Configuration:
Set up the API key for all projects or for a single project
Keep the API key secure and do not share it
Making API Requests:
Use curl, Python, Node.js, or other programming languages to send requests
Example Python Code:
Last updated