API Reference
Welcome to the Segmind API Docs! This guide will help you get started with using our REST APIs.
Last updated
Welcome to the Segmind API Docs! This guide will help you get started with using our REST APIs.
Last updated
The Segmind Serverless API uses API keys for authentication. To create one, login to your account and head to the on the dashboard.
You can authenticate by including your Segmind API key in the Request Header and pass it as x-api-key
section of the request.
Example cURL request:
Example Python request:
Base URL
POST https://api.segmind.com/...
Version 1 (v1)
Some endpoints that typically complete their requests within 60 seconds are on version 1. For example: https://api.segmind.com/v1/sdxl1.0-newreality-lightning
Version 2 (v2)
We created v2 to serve APIs that typically take longer than 60 seconds to process.
Below are a list of error codes to help you
Use this Postman collection to get started faster.
To integrate an API, visit the model's page and tab. You can see the list of parameters and example code to get started with the API.