Skip to main content
Use BLACKBOX AI’s rich API for text models to directly integrate the power of AI into your applications.

OpenAI Compatibility

BLACKBOX AI’s API endpoints for text are fully compatible with OpenAI’s API. If you have an application that uses OpenAI’s client libraries, you can configure it to point to BLACKBOX AI’s API servers and use our models.

Configuring OpenAI to use BLACKBOX AI’s API

Pass your BLACKBOX AI API key to the api_key option and set the base_url to https://api.blackbox.ai:
You can find your API key in your BLACKBOX AI account settings.

Querying a Chat Model

Query one of our chat models, like GPT-4:
Output:

Streaming a Chat Response

Use streaming to receive responses incrementally:
Access real-time information from the web using the blackbox-search model:
The blackbox-search model automatically searches the web and provides responses with source citations in the annotations field. Learn more about Web Search.