© 2026 Hedgehog Software, LLC
import requests import json url = "<https://api.runpod.ai/v2/llama2-13b-chat/runsync"> headers = { "accept": "application/json", "authorization": "7YEK9P00D6BR8UY8WORQ3Y61XA8X2VDSZT5VGV54", "content-type": "application/json", } data = { "input": { "prompt": "Who is the president of the United States?", "sampling_params": { "max_tokens": 16, "n": 1, "best_of": None, "presence_penalty": 0, "frequency_penalty": 0, "temperature": 0.7, "top_p": 1, "top_k": -1, "use_beam_search": False, "stop": [ "None" ], "ignore_eos": False, "logprobs": None } } } response = requests.post(url, headers=headers, data=json.dumps(data)) print(response.json())
Join the Discord to ask follow-up questions and connect with the community
We're a community of enthusiasts, engineers, and enterprises, all sharing insights on AI, Machine Learning and GPUs!
21,906 Members