> ## Documentation Index
> Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Segmind

> Use Segmind's Stable Diffusion models for fast, serverless image generation through Prisma AIRS AI Gateway.

## Quick Start

Get started with Segmind in under 2 minutes:

```bash cURL theme={"system"}
curl https://aigw.portkey.ai/v1/images/generations \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $PORTKEY_API_KEY" \
    -d '{
        "model": "@segmind/sdxl1.0-txt2img",
        "prompt": "Lucy in the sky with diamonds",
        "size": "1024x1024"
    }'
```

## Add Provider in Model Catalog

Before making requests, add Segmind to your Model Catalog:

1. Go to [**Model Catalog → Add Provider**](https://stratacloudmanager.paloaltonetworks.com/)
2. Select **Segmind**
3. Enter your [Segmind API key](https://cloud.segmind.com/console/api-keys)
4. Name your provider (e.g., `segmind`)

> **[Complete Setup Guide](https://docs.portkey.ai/docs/aigw/product/model-catalog.md)**
>
> See all setup options and detailed configuration instructions

***

## Supported Models

Segmind provides fast, serverless access to various Stable Diffusion models:

| Model | Description |
| - | - |
| sdxl1.0-txt2img | Stable Diffusion XL |
| sd1.5-dreamshaper | Dream Shaper |
| sd1.5-realisticvision | Realistic Vision |
| sd1.5-juggernaut | Juggernaut |
| sd1.5-epicrealism | Epic Realism |
| kandinsky2.2-txt2img | Kandinsky |
| qrsd1.5-txt2img | QR Code Generator |

And 20+ more models. Check [Segmind's documentation](https://docs.segmind.com/) for the complete list.

> [!NOTE]
>
> The AI Gateway uses the OpenAI image generation signature for Segmind, allowing you to easily switch between providers.

***

## Next Steps

> **[Gateway Configs](https://docs.portkey.ai/docs/aigw/product/ai-gateway.md)**
>
> Add fallbacks, load balancing, and more

> **[Observability](https://docs.portkey.ai/docs/aigw/product/observability.md)**
>
> Monitor and trace your Segmind requests

> **[Caching](https://docs.portkey.ai/docs/aigw/product/ai-gateway/cache-simple-and-semantic.md)**
>
> Cache generated images

> **[Image API Reference](https://docs.portkey.ai/docs/aigw/api-reference/images/create-image.md)**
>
> Complete image generation API docs


## Related topics

- [Prisma AIRS AI Gateway Models](https://docs.portkey.ai/docs/aigw/product/model-catalog/gateway-models.md)
- [Supported Providers](https://docs.portkey.ai/docs/aigw/api-reference/inference-api/supported-providers.md)
- [Enterprise Gateway](https://docs.portkey.ai/docs/changelog/enterprise.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.