---
title: "BroadNet Inference guides: SDKs, agents and Arabic speech"
description: "Step-by-step guides for BroadNet Inference: OpenAI SDK setup, streaming, coding agents on the unlimited plan, Arabic transcription, vision, errors and retries."
url: https://broadrouter.com/guides/
lang: en
updated: 2026-11-16
publisher: BroadRouter (a BroadNet site); API by BroadNet Inference, https://inference.broadnet.ai
---

# Guides

Updated 2026-11-16

Each guide answers one job with code you can run against BroadNet Inference's OpenAI-compatible API. Start with your SDK, then pick the guide for your use: coding agents on the unlimited plan, Arabic speech to text, WhatsApp voice notes, images, or handling errors and retries. Every guide lists its sources and the date it was checked.

## Start

1.  [https://broadrouter.com/guides/openai-python-sdk/](https://broadrouter.com/guides/openai-python-sdk/)
    
    ### [Use the OpenAI Python SDK with BroadNet Inference](https://broadrouter.com/guides/openai-python-sdk/)
    
    Point the official OpenAI Python SDK at BroadNet Inference with one base\_url change. Install, set your key, make a first request and stream the answer.
    
2.  [https://broadrouter.com/guides/openai-node-sdk/](https://broadrouter.com/guides/openai-node-sdk/)
    
    ### [Use the OpenAI Node.js SDK with BroadNet Inference](https://broadrouter.com/guides/openai-node-sdk/)
    
    Point the official OpenAI Node.js and TypeScript SDK at BroadNet Inference by setting baseURL. Install it, make a first request, stream tokens and log request IDs.
    
3.  [https://broadrouter.com/guides/try-broadnet-inference-playground/](https://broadrouter.com/guides/try-broadnet-inference-playground/)
    
    ### [Try BroadNet Inference in your browser, no account](https://broadrouter.com/guides/try-broadnet-inference-playground/)
    
    Test Arabic speech-to-text, document reading and Gemma 4 chat in BroadNet's browser playground with no sign-up or card, then move the same request to the API.
    
4.  [https://broadrouter.com/guides/curl-quickstart/](https://broadrouter.com/guides/curl-quickstart/)
    
    ### [First request to BroadNet Inference with curl](https://broadrouter.com/guides/curl-quickstart/)
    
    Make your first BroadNet Inference calls with curl - a chat completion, a streamed reply and an audio transcription - and read the response, usage and errors.
    

## Agents and plans

1.  [https://broadrouter.com/guides/unlimited-llm-api-sessions/](https://broadrouter.com/guides/unlimited-llm-api-sessions/)
    
    ### [How the unlimited LLM API plans work for agents](https://broadrouter.com/guides/unlimited-llm-api-sessions/)
    
    The unlimited DeepSeek V4.1 Flash plans have no token meter and no weekly limit. Here is how sessions, parallel agents, keys and billing actually work.
    

## Arabic and speech

1.  [https://broadrouter.com/guides/arabic-speech-to-text-api/](https://broadrouter.com/guides/arabic-speech-to-text-api/)
    
    ### [Arabic speech-to-text API, step by step](https://broadrouter.com/guides/arabic-speech-to-text-api/)
    
    Transcribe Arabic audio with BroadNet Transcribe Arabic through an OpenAI-compatible endpoint. Formats, the language field, Python and curl examples, and the price.
    
2.  [https://broadrouter.com/guides/transcribe-whatsapp-voice-notes/](https://broadrouter.com/guides/transcribe-whatsapp-voice-notes/)
    
    ### [Transcribe WhatsApp voice notes to text with an API](https://broadrouter.com/guides/transcribe-whatsapp-voice-notes/)
    
    Convert WhatsApp .ogg voice notes or .m4a phone recordings to WAV with ffmpeg and transcribe them in Arabic or 13 other languages with one API call.
    
3.  [https://broadrouter.com/guides/read-arabic-invoices-with-vision/](https://broadrouter.com/guides/read-arabic-invoices-with-vision/)
    
    ### [Read Arabic invoices and receipts with a vision model](https://broadrouter.com/guides/read-arabic-invoices-with-vision/)
    
    Send an invoice or receipt photo to a vision model on BroadNet Inference and get the total, date and vendor back as JSON, with questions in Arabic or English.
    

## Integrations

-   [Run Aider on unlimited DeepSeek V4.1 Flash](https://broadrouter.com/guides/aider-unlimited-deepseek/)
    
    Connect the Aider coding agent to BroadNet Inference through its OpenAI-compatible setting and run it on a flat-price, unlimited DeepSeek V4.1 Flash plan.
    
-   [Use LangChain with BroadNet Inference](https://broadrouter.com/guides/langchain-openai-base-url/)
    
    Connect LangChain's ChatOpenAI to BroadNet Inference with base\_url and api\_key, and learn what LangChain does and doesn't keep from reasoning models.
    
-   [Use Cline with BroadNet Inference (OpenAI Compatible provider)](https://broadrouter.com/guides/cline-openai-compatible/)
    
    Set up the Cline VS Code extension with BroadNet Inference through its OpenAI Compatible provider, with exact fields, model IDs, context sizes and common fixes.
    
-   [Use Roo Code with BroadNet Inference (OpenAI Compatible)](https://broadrouter.com/guides/roo-code-openai-compatible/)
    
    Roo Code was shut down in May 2026. Settings for existing installs and forks, and where to move next (Cline or the Zoo Code fork) with BroadNet Inference.
    
-   [Use Continue with BroadNet Inference (config.yaml and apiBase)](https://broadrouter.com/guides/continue-dev-openai-compatible/)
    
    Add BroadNet Inference models to the Continue IDE extension with provider openai and apiBase in config.yaml, including tool\_use capabilities and context length.
    
-   [Add BroadNet Inference to opencode as a custom provider](https://broadrouter.com/guides/opencode-custom-provider/)
    
    Add BroadNet Inference to the opencode coding agent as a custom OpenAI-compatible provider in opencode.jsonc, with model aliases, capabilities and limits.
    
-   [Connect Open WebUI to BroadNet Inference](https://broadrouter.com/guides/open-webui-openai-api/)
    
    Add BroadNet Inference to Open WebUI as an OpenAI-compatible connection, add model IDs to the allowlist, and fix verify, empty-reply and rate-limit issues.
    
-   [Add BroadNet Inference to LibreChat as a custom endpoint](https://broadrouter.com/guides/librechat-custom-endpoint/)
    
    Add BroadNet Inference to LibreChat as an OpenAI-compatible custom endpoint in librechat.yaml, with the key in .env, the model list, title model and fixes.
    
-   [Use BroadNet Inference in n8n (OpenAI credential, Base URL)](https://broadrouter.com/guides/n8n-openai-compatible/)
    
    Point n8n's OpenAI credential at BroadNet Inference with the Base URL field, then use the OpenAI Chat Model node by ID with the Responses API toggle turned off.
    
-   [Use the Vercel AI SDK with BroadNet Inference](https://broadrouter.com/guides/vercel-ai-sdk-openai-compatible/)
    
    Call BroadNet Inference from the Vercel AI SDK with createOpenAICompatible from @ai-sdk/openai-compatible. generateText, streamText, tools and reasoning effort.
    
-   [Route LiteLLM to BroadNet Inference (SDK and proxy)](https://broadrouter.com/guides/litellm-proxy-custom-provider/)
    
    Call BroadNet Inference through LiteLLM with the openai/ model prefix and api\_base, in the Python SDK or the proxy config.yaml, with matching rate limits.
    
-   [Run the OpenAI Agents SDK on BroadNet Inference](https://broadrouter.com/guides/openai-agents-sdk-custom-provider/)
    
    Use the OpenAI Agents SDK for Python with BroadNet Inference through AsyncOpenAI and OpenAIChatCompletionsModel, and turn off tracing that needs an OpenAI key.
    
-   [Transcribe WhatsApp voice notes in n8n](https://broadrouter.com/guides/n8n-whatsapp-voice-note-transcription/)
    
    An n8n workflow that receives a WhatsApp voice note, downloads it from Meta, converts it with ffmpeg and transcribes it in Arabic or 13 other languages.
    
-   [Use Zed with BroadNet Inference as an OpenAI-compatible provider](https://broadrouter.com/guides/zed-openai-compatible-provider/)
    
    Add BroadNet Inference to the Zed editor as an OpenAI-compatible provider in settings.json, with model IDs, token limits, capabilities and the key variable.
    
-   [Use Kilo Code with BroadNet Inference (OpenAI Compatible provider)](https://broadrouter.com/guides/kilo-code-openai-compatible/)
    
    Connect Kilo Code to BroadNet Inference as a custom OpenAI Compatible provider, in the VS Code dialog or kilo.json, with model IDs, limits and tool flags.
    
-   [Add BroadNet Inference to goose as a custom provider](https://broadrouter.com/guides/goose-custom-provider/)
    
    Connect the goose AI agent to BroadNet Inference as an OpenAI Compatible custom provider, from goose Desktop, goose configure or a JSON file.
    
-   [Use Pydantic AI with BroadNet Inference (OpenAICompatibleProvider)](https://broadrouter.com/guides/pydantic-ai-openai-compatible/)
    
    Run Pydantic AI agents on BroadNet Inference with OpenAIChatModel and OpenAICompatibleProvider, plus tool calls, structured output and model profile fixes.
    
-   [Use CrewAI with BroadNet Inference as a custom OpenAI endpoint](https://broadrouter.com/guides/crewai-custom-openai-endpoint/)
    
    Point CrewAI agents at BroadNet Inference with LLM(custom\_openai=True, base\_url=...), then pick models for tools, long context and the flat-rate plan.
    
-   [Use LlamaIndex with BroadNet Inference through OpenAILike](https://broadrouter.com/guides/llamaindex-openailike/)
    
    Connect LlamaIndex to BroadNet Inference with the OpenAILike class, setting api\_base, context\_window, is\_chat\_model and is\_function\_calling\_model correctly.
    
-   [Add BroadNet Inference to Dify with the OpenAI-API-compatible plugin](https://broadrouter.com/guides/dify-openai-api-compatible/)
    
    Connect Dify to BroadNet Inference through the OpenAI-API-compatible model provider plugin, with exact field values, context sizes and function calling settings.
    
-   [Use Jan with BroadNet Inference as a custom OpenAI-compatible provider](https://broadrouter.com/guides/jan-custom-endpoint/)
    
    Add BroadNet Inference to the Jan desktop app as a custom OpenAI-compatible provider, add model IDs by hand, and switch on tools and vision per model.
    
-   [Connect SillyTavern to BroadNet Inference (Custom OpenAI-compatible)](https://broadrouter.com/guides/sillytavern-custom-openai-endpoint/)
    
    Connect SillyTavern to BroadNet Inference with the Custom (OpenAI-compatible) Chat Completion source, the right model IDs, prompt post-processing and token limits.
    
-   [Use Spring AI with BroadNet Inference (OpenAI base-url)](https://broadrouter.com/guides/spring-ai-openai-base-url/)
    
    Point Spring AI's OpenAI chat starter at BroadNet Inference with spring.ai.openai.base-url, a BroadNet model ID and max-tokens, then call it from ChatClient.
    
-   [Call BroadNet Inference from Go with the openai-go SDK](https://broadrouter.com/guides/openai-go-sdk/)
    
    Use the official openai-go v3 SDK with BroadNet Inference through option.WithBaseURL, with chat completions, streaming with usage and error handling in Go.
    
-   [Build LangGraph agents on BroadNet Inference](https://broadrouter.com/guides/langgraph-openai-compatible/)
    
    Run a LangGraph StateGraph or create\_agent on BroadNet Inference with ChatOpenAI, base\_url and a BroadNet model ID, plus tools, streaming and memory.
    
-   [Use Haystack pipelines and agents with BroadNet Inference](https://broadrouter.com/guides/haystack-openai-compatible/)
    
    Point Haystack's OpenAIChatGenerator at BroadNet Inference with api\_base\_url, a BroadNet model ID and a Secret key, for pipelines, tools, streaming and agents.
    
-   [Use Semantic Kernel with BroadNet Inference](https://broadrouter.com/guides/semantic-kernel-openai-compatible/)
    
    Connect Microsoft Semantic Kernel to BroadNet Inference in Python with an AsyncOpenAI client, or in C# with a custom endpoint, for chat, plugins and agents.
    
-   [Use Mastra agents with BroadNet Inference](https://broadrouter.com/guides/mastra-openai-compatible/)
    
    Run Mastra agents on BroadNet Inference with a model object that sets id, url and apiKey, including the doubled broadnet/ prefix the model ID needs.
    
-   [Get structured output with Instructor on BroadNet Inference](https://broadrouter.com/guides/instructor-structured-output/)
    
    Extract Pydantic objects from BroadNet Inference with Instructor, using from\_openai or from\_provider with a custom base\_url, and pick the right Mode.
    
-   [Use DSPy with BroadNet Inference (set model\_type="chat")](https://broadrouter.com/guides/dspy-openai-compatible/)
    
    Configure dspy.LM for BroadNet Inference with the openai/ prefix, api\_base and model\_type="chat", because DSPy 3.5 sends OpenAI models to the Responses API.
    
-   [Evaluate BroadNet models with promptfoo](https://broadrouter.com/guides/promptfoo-openai-compatible/)
    
    Run promptfoo evals and side-by-side model tests on BroadNet Inference with the openai:chat provider, apiBaseUrl and apiKeyEnvar, plus graders.
    
-   [Run smolagents on BroadNet Inference with OpenAIModel](https://broadrouter.com/guides/smolagents-openai-compatible/)
    
    Connect Hugging Face smolagents to BroadNet Inference with OpenAIModel and api\_base, for CodeAgent on any model or ToolCallingAgent on GLM 5.3 and Qwen3.8 27B.
    
-   [Connect Flowise to BroadNet Inference (OpenAI Custom Model)](https://broadrouter.com/guides/flowise-openai-compatible/)
    
    Use BroadNet Inference in Flowise chatflows with the OpenAI Custom Model node, a Base Path, an OpenAI API credential and a typed BroadNet model name.
    
-   [Connect Langflow to BroadNet Inference](https://broadrouter.com/guides/langflow-openai-compatible/)
    
    Use BroadNet Inference in Langflow with the OpenAI component's OpenAI API Base field and a typed model name, and why the OpenAI Compatible provider won't list it.
    

Looking for a tool that has no guide yet? [See every integration](https://broadrouter.com/integrations/) and how each one connects.

## Reference

1.  [https://broadrouter.com/guides/streaming-chat-completions/](https://broadrouter.com/guides/streaming-chat-completions/)
    
    ### [Stream chat completions and handle dropped connections](https://broadrouter.com/guides/streaming-chat-completions/)
    
    How streaming works on BroadNet Inference - Server-Sent Events, the \[DONE\] marker, token usage in the last chunk, and what to do when a stream ends early.
    
2.  [https://broadrouter.com/guides/reasoning-tokens-empty-response/](https://broadrouter.com/guides/reasoning-tokens-empty-response/)
    
    ### [Why a reasoning model returns an empty answer](https://broadrouter.com/guides/reasoning-tokens-empty-response/)
    
    DeepSeek V4.1 Flash, GLM 5.3 and Qwen3.8 27B think before they answer, and that reasoning counts toward max\_tokens. How to stop getting empty replies.
    
3.  [https://broadrouter.com/guides/errors-and-retries/](https://broadrouter.com/guides/errors-and-retries/)
    
    ### [BroadNet Inference error codes and when to retry](https://broadrouter.com/guides/errors-and-retries/)
    
    What each HTTP status from the BroadNet Inference API means, which ones to retry with backoff, which to fix first, and what to send support with a request ID.
    
4.  [https://broadrouter.com/guides/api-keys-ip-allow-lists/](https://broadrouter.com/guides/api-keys-ip-allow-lists/)
    
    ### [Lock API keys to your servers with IP allow-lists](https://broadrouter.com/guides/api-keys-ip-allow-lists/)
    
    Protect BroadNet Inference keys with IP allow-lists, separate inference keys from portal credentials, and revoke a leaked key in seconds. With curl examples.
    

Try it on your real workload. New accounts start with $5 of credit for Gemma and transcription. DeepSeek, GLM and Qwen3.8 need a top-up.

[Get started](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=guides&utm_content=page-cta) ·

**Sources**

-   [BroadNet Inference API reference](https://inference.broadnet.ai/docs?utm_source=broadrouter&utm_medium=referral&utm_campaign=guides&utm_content=sources)
