OpenAI Compatibility
Blackbox AI’s API endpoints for chat, images, and video 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 theapi_key
option and set the base_url
to https://api.blackbox.ai
:
Querying a Chat Model
Query one of our chat models, like GPT-4:Streaming a Chat Response
Use streaming to receive responses incrementally:Image Generation
Generate images from text prompts using our image models: