AnyInt Docs

Guides

Guides for request behavior that cuts across API families, including streaming, tool calling, structured outputs, prompt caching, and fallbacks.

Use guides when you already know the API family you want to call, but need to make the integration production-ready. These pages cover behavior that cuts across route families: streaming, structured outputs, tool calling, prompt caching, fallback planning, and local agent integrations.

For exact request fields, always return to API Reference. A guide explains the pattern; the API page defines the public contract.

Choose by behavior

NeedPage
Understand the feature set at a high levelOverview
Send partial output to users as it is generatedStreaming
Ask models to return predictable JSON-like outputStructured Outputs
Let models call functions or toolsTool Calling
Reuse long prompt prefixes when the route supports itPrompt Caching
Keep production workloads usable when a model path failsModel Fallbacks
Configure coding agents or local tools against AnyIntAgent Tool Integrations
StageWhat to verifyRelated page
First requestKey, base URL, model ID, and a minimal text responseVerify Your Integration
User experienceWhether the UI needs incremental chunks or a complete responseStreaming
Machine-readable outputWhether downstream code can safely parse the model responseStructured Outputs
External actionsWhether the model should call functions or tools controlled by your appTool Calling
Cost and latencyWhether repeated prompt prefixes can be reusedPrompt Caching
ReliabilityWhat happens when the primary model or provider path failsModel Fallbacks
Local toolingHow coding agents, CLIs, and automation should discover docs and endpointsAgent Tool Integrations

API family matters

These guides describe patterns, not universal request fields. Always confirm the exact payload shape in API Reference before shipping a production client.

FamilyCommon guide concernWhat changes by family
OpenAI-compatibleFirst integration, streaming, structured outputs, tool callingUses OpenAI-style messages, stream, and tool fields
Anthropic-compatibleClaude-style content blocks and image inputUses Anthropic headers and content block shapes
Gemini-compatibleGemini-native generation, streaming, and function declarationsUses contents[].parts[] and route methods such as generateContent
Media and music APIsAsync tasks, polling, callbacks, and output URLsCreation responses may return task IDs instead of final assets

What to document in your own app

For each production workload, keep a small integration note next to the code that records:

  1. Primary API family and route.
  2. Model ID source and refresh process.
  3. Whether the request is sync, streaming, or task-based.
  4. Retry and fallback behavior.
  5. Error messages surfaced to users for auth, quota, invalid request, and temporary upstream failures.

On this page