File size: 604 Bytes
63917e8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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",
    }
  }),
)