[DeepInfra docs]: DeepInfra exposes an OpenAI-compatible endpoint. Set base_url to https://api.deepinfra.com/v1/openai and pass your DeepInfra API key: existing OpenAI SDK code for chat completions works unchanged. Use DeepInfra model IDs like meta-llama/Meta-Llama-3.1-70B-Instruct instead of OpenAI model names. If you get a model-not-found error, the ID is wrong or the model is not served on DeepInfra: check the model list first.

Context: No new SDK needed. Swap the base URL and keep your OpenAI client code.