SegmindSegmind / Docs

Overview

Segmind makes it easy to use generative AI models in the cloud. Run models via the AI Gateway or compose them visually in PixelFlow.

Segmind is a developer platform for generative AI. Use our AI Gateway to run hundreds of serverless and 3rd-party models, or compose them visually with PixelFlow.

Make your first request

curl -X POST "https://api.segmind.com/v1/fast-flux-schnell" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A wallpaper of a sports car with \"Flux\" written on it, motion blur, side view",
    "steps": 4,
    "seed": 1184522,
    "aspect_ratio": "1:1",
    "base64": false
  }'
import requests

api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/fast-flux-schnell"

data = {
    "prompt": "A wallpaper of a sports car with 'Flux' written on it, motion blur, side view",
    "steps": 4,
    "seed": 1184522,
    "aspect_ratio": "1:1",
    "base64": False,
}

response = requests.post(url, json=data, headers={"x-api-key": api_key})
print(response.content)
import axios from 'axios';

const apiKey = 'YOUR_API_KEY';
const url = 'https://api.segmind.com/v1/fast-flux-schnell';

const data = {
  prompt:
    "A wallpaper of a sports car with 'Flux' written on it, motion blur, side view",
  steps: 4,
  seed: 1184522,
  aspect_ratio: '1:1',
  base64: false,
};

const { data: result } = await axios.post(url, data, {
  headers: { 'x-api-key': apiKey },
});
console.log(result);

We highly recommend reading the Quickstart before going further.

Explore the platform

Start building

Join our Discord community. Stay up to date, ask billing or pricing questions, and get support from fellow developers.

On this page