---
# System prepended metadata

title: CONTENTS API

---

# CONTENTS API

### Categories list
sports
women_clothes
motors
home
beauty
baby
alcohol
pet
food

### Input JSON example

>{
>"keywords": "chocolate, milk, big",
>"model_type": "food"
>}


### Request example Bash

> curl -X POST -H "Content-Type: application/json" -d @test.json http://host:port/

Port: 5002
Host: gpu3.aws.contents.com

### Request example Python

```
import requests
import json
input_keywords = "chocolate, milk, big"
category_chosen = "food"
url = "http://gpu3.aws.contents.com:5002"
data ={"keywords": input_keywords,
       "model_type": category_chosen,
      }
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
r = requests.post(url, data=json.dumps(data), headers=headers)
text = r.json()
```

### Response example

renderer: "json"
output example:

> {"generation": "generated text"}

