SegmindSegmind / Docs

Quickstart

Make your first Segmind API request in minutes. Learn the basics of the platform.

This guide walks you through creating an account, getting an API key, and making your first inference request.

Create a free account

Head over to segmind.com and sign up for a free account. You can connect with Google or Discord to get started instantly.

Try a model in the playground

Open any model page and run it from the in-browser playground. Tweak the prompt and parameters to see how the model behaves before integrating it into your code.

Create an API key

The Segmind AI Gateway uses API keys for authentication. Sign in to your account and head to the API Keys page on the dashboard to create one.

Treat your API key like a password. Don't commit it to source control or expose it in client-side code.

Make your first request

Authenticate by including your API key in the x-api-key header.

curl -X POST "https://api.segmind.com/v1/instantid" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a futuristic city skyline at sunset, cinematic"
  }'
import requests

api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/face-to-sticker"

data = {
    "prompt": "a futuristic city skyline at sunset, cinematic",
}

response = requests.post(url, json=data, headers={"x-api-key": api_key})
print(response.json())
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.segmind.com/v1/face-to-sticker';

const response = await fetch(url, {
  method: 'POST',
  headers: {
    'x-api-key': apiKey,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    prompt: 'a futuristic city skyline at sunset, cinematic',
  }),
});

console.log(await response.json());

Next steps

  • Long-running models (video, upscaling, LLMs) should use the Async Inference (V2) API for better reliability.
  • Browse the Model Hub to discover what's available.
  • Learn about PixelFlow for visual, multi-step workflows.

On this page