> For the complete documentation index, see [llms.txt](https://docs.fluxpoint.dev/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fluxpoint.dev/api/endpoints/image-gen.md).

# Image Gen

## List Image Gen Templates

<mark style="color:blue;">`GET`</mark> `https://api.fluxpoint.dev/gen/html`

Get a test error response to handle errors.

#### Headers

| Name                                            | Type | Description                                           |
| ----------------------------------------------- | ---- | ----------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> |      | Your API token here <https://fluxpoint.dev/api/token> |

{% tabs %}
{% tab title="200: OK " %}
This will send you raw image data (bytes)
{% endtab %}
{% endtabs %}

## Generate Image Template

<mark style="color:blue;">`GET`</mark> `https://api.fluxpoint.dev/gen/{template}`

Generate a image template type with parameters.

#### Headers

| Name                                            | Type | Description                                           |
| ----------------------------------------------- | ---- | ----------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> |      | Your API token here <https://fluxpoint.dev/api/token> |

{% tabs %}
{% tab title="200: OK " %}
This will send you raw image data (bytes)
{% endtab %}
{% endtabs %}

{% content-ref url="/pages/g7Zax5iY8kkbxIYDMvVJ" %}
[Templates](/api/endpoints/image-gen/templates.md)
{% endcontent-ref %}

## Custom Image Generation

<mark style="color:blue;">`GET`</mark> `https://api.fluxpoint.dev/gen/custom`

Generate a custom image with json body format.

#### Headers

| Name                                            | Type | Description                                           |
| ----------------------------------------------- | ---- | ----------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> |      | Your API token here <https://fluxpoint.dev/api/token> |

{% tabs %}
{% tab title="200: OK Test" %}
This will send you raw image data (bytes)
{% endtab %}

{% tab title="400: Bad Request " %}

```json
{
    "success": false,
    "code": 400,
    "message": "Failed to parse request json. ( IG-7 )"
}
```

{% endtab %}
{% endtabs %}

{% content-ref url="/pages/PCT1XlYJZYZov5nKpkxL" %}
[Custom Image](/api/endpoints/image-gen/custom-image.md)
{% endcontent-ref %}
