# Guides — Core Features, Cost Optimization, and Errors Source: https://ofox.io/docs/develop/guides Once your first request works, find the guide for what you want to do next. Each guide includes runnable examples; check each page for the protocols it covers. ## Core Features Shape how the model responds: stream output token by token, call your functions, return a fixed format, and understand images. | I want to… | Read | Key points | |------|------|------| | Show the reply as it is generated instead of waiting for the full response | [Streaming](https://ofox.io/docs/develop/guides/streaming) | SSE push; covers reconnection and function calling while streaming | | Let the model call my functions or external APIs | [Function Calling](https://ofox.io/docs/develop/guides/function-calling) | Define `tools`; supports parallel calls and `tool_choice` | | Get output in a fixed JSON format | [Structured Output](https://ofox.io/docs/develop/guides/structured-output) | JSON Mode and JSON Schema constraints | | Let the model read images | [Vision](https://ofox.io/docs/develop/guides/vision) | Image URL or Base64; supports comparing multiple images | ## Cost and Reliability Spend less on the same requests and keep running when something goes wrong. | I want to… | Read | Key points | |------|------|------| | Lower costs when sending long prompts repeatedly | [Prompt Caching](https://ofox.io/docs/develop/advanced/prompt-caching) | Cache repeated prefixes to reduce token cost and latency | | Reuse a large Gemini context across requests | [Gemini Explicit Caching](https://ofox.io/docs/develop/advanced/gemini-explicit-cache) | Create and reference cachedContents explicitly for more predictable cache hits | | Choose which provider handles a request | [Provider Routing](https://ofox.io/docs/develop/advanced/provider-routing) | Automatic routing by default; use `provider.type` to specify one when needed | | Switch to a backup model automatically when the primary model fails | [Fallback](https://ofox.io/docs/develop/advanced/fallback) | `provider.fallback`, up to 3 backup models | ## When Something Goes Wrong Start here when a request fails, is rate limited, or is blocked. | I'm seeing… | Read | Key points | |------|------|------| | An error (including 402 / 403 from a spending limit or access rule), and I want to know how to handle it and whether to retry | [Error Handling](https://ofox.io/docs/develop/guides/error-handling) | Status codes, error format, exponential backoff, and timeout settings | | 429 Too Many Requests | [Rate Limits](https://ofox.io/docs/develop/guides/rate-limits) | 100 RPM by default, aggregated per team; read the response headers to decide how long to wait | | A request blocked or paused by content safety | [Content Safety](https://ofox.io/docs/develop/guides/content-safety) | Trigger rules, pause duration, and how to recover | ## SDKs and Frameworks Integrate in code with an existing SDK or framework. In every case, only the API address and key change. | I'm using… | Read | |------|------| | The official OpenAI SDK (migrating an existing project) | [OpenAI SDK](https://ofox.io/docs/integrations/openai-sdk) | | LangChain | [LangChain](https://ofox.io/docs/integrations/langchain) | | LlamaIndex | [LlamaIndex](https://ofox.io/docs/integrations/llamaindex) |