The two changes
Use your Deepshi key
Replace your OpenAI key with your Deepshi key (
sk-bf-...). See Authentication.Update model names
Set themodel field to a Deepshi catalog id such as deepshi-2.0 or deepshi-3.0. You can also reference frontier models that Deepshi exposes; check the models catalog for available ids.
What carries over
- Chat completions request/response shapes.
- Streaming (
stream: true) and the SSE format. - Tool / function calling.
- Most libraries and agent frameworks built on the OpenAI API, as long as you override the base URL and key.
Things to check
- Pricing and credits work differently. Deepshi uses prepaid, USD-denominated credits. See Pricing & credits.
- Error codes mostly match OpenAI, with
402specifically meaning you’re out of credits. See Errors. - Parameters a given model doesn’t support are ignored rather than rejected.