import requests import json response = requests.post( "https://api.respell.ai/v1/run", headers={ # This is your API key "Authorization": "Bearer 6438355a-133a-4ad6-9674-a4f9be050cf8", "Accept": "application/json", "Content-Type": "application/json" }, data=json.dumps({ "spellId": "9M0c8QbC2gYfeigDjNhpm", # This field can be omitted to run the latest published version "spellVersionId": "hc0fOdSXkCiPQ_FFrRg-i", # Fill in values for each of your 2 dynamic input blocks "inputs": { "input": "Example text", "input_2": "Example text", } }), )