DeepInfra

DeepInfra examples: basic agent runs, JSON output, tool use, and retries.

ExampleDescription
DeepInfra BasicRun DeepSeek V3 on DeepInfra with synchronous, asynchronous, and streaming responses.
DeepInfra JSON OutputRequest JSON from DeepInfra phi-4 and validate it locally as a MovieScript.
RetryReview retry settings and why invalid model IDs cannot reliably exercise the retry path.
Tool UseAdd web search to a DeepSeek V3 agent on DeepInfra and stream synchronous and asynchronous responses.