Set the Environment API Key
Make sure to get your API key from DeepInfra. You have to Login and get a new token. You are given a 1 hour free of serverless GPU compute to test different models. (see here) You can print your token withdeepctl auth token
Create the DeepInfra instance
You can also use our open-source deepctl tool to manage your model deployments. You can view a list of available parameters here.Create a Prompt Template
We will create a prompt template for Question and Answer.Initiate the LLMChain
Run the LLMChain
Provide a question and run the LLMChain.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.