# 2.10 Hyper Images

**Method:** `POST`

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

**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>

**Parameters:**

* **Query** (str): The text prompt provided by the user for generating the image.
* **sample** (int): The number of samples to generate.
* **steps** (int): The number of steps for the image generation process.
* **negative** (str): Information about whether the process should avoid certain features.
* **width** (int): The width of the generated image. It must be either 1024 or 512.
* **height** (int): The height of the generated image. It must be either 1024 or 512.

#### Example Request:

```python
headers = {
    "Authorization": "Bearer " + bearer_token,

}
data = {
    "Query": Query,
    "sample": samples,
    "steps": steps,
    "negative": negative,
    "width": width,
    "height": height,
}

response = requests.post(
    "https://sdk.hypergpt.ai/hyperImages",
    headers=headers,
    params=data
)
```

**Example Response (Success):**

```json
{
   "<image_link>"
}
```

**Example Response (Error):**

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