# 2.1 Hyper Portraits

**Method:** `POST`

```
https://sdk.hypergpt.ai/hyperPortraits
```

**Headers:**

<table data-header-hidden><thead><tr><th width="343">Key</th><th>Value</th></tr></thead><tbody><tr><td>Bearer Token</td><td>new_user_token</td></tr></tbody></table>

**Params:**

* **query** (str): The text query used to generate the images.
* **number** (int): The number of images to generate.
* **width** (int, optional): The width of the images. Default is `None`.
* **height** (int, optional): The height of the images. Default is `None`.

**Example Request (Python):**

```python
headers = {
        "Authorization": bearer_token
    }
    
params = {
        "query": query,
        "number": number,
        "width": widht,
        "height": height
    }
    
response = requests.post(
        "https://sdk.hypergpt.ai/hyperPortraits",
        headers=headers,
        params=params
    )
    
return response.json()
```

**Example Response (Success):**

```json
{
  "image": [
    "https://example.com/image1.png"
  ]
}
```

**Example Response (Error):**

```
{
    "detail": "Credit not enough"
}
```
