title: Converting cURL to Python with Requests
body: <p>I'm having trouble accessing an API with Python. Here's my Python:</p>
  
  <pre><code>import requests
  
  url = 'https://bigjpg.com/api/task/'
  payload = {'style': 'photo', 'noise': '3', 'x2': '1', 'input': 'https://www.example.com/photo.jpg'}
  headers = {'X-API-KEY': 'xyz123'}
  
  r = requests.get(url, data=payload, headers=headers)
  
  print(r.text)
  </code></pre>
  
  <p>It returns 404 content but when I use cURL, it works and returns the json I'm looking for. This is the cURL line from the API:</p>
  
  <pre><code>curl -F 'conf={"style": "photo", "noise": "3", "x2": "1", "input": "https://www.example.com/photo.jpg"}' -H 'X-API-KEY:xyz123' https://bigjpg.com/api/task/
  </code></pre>