Segmind Docs
WebsiteConsole
  • Segmind Developer Platform
    • Developer Quickstart
    • Key Concepts
    • Support
    • Authentication
    • Pricing and Billing
    • Flux Fine Tuning
      • Flux fine Tuning API
      • Flux Pro fine tuning API
      • Fine tuning GPU options
    • Webhooks
    • Teams
    • Account and Developer Settings
  • API Reference
    • Model Status
    • Rate Limits
    • Account and Billing APIs
    • Premium models
    • Monitoring
    • Logging
    • Random Seed
  • PixelFlow
    • Getting Started
    • PixelFlow Components
    • PixelFlow Operations
    • Templates
    • Workflow to API
  • Model Hub
  • Dedicated Endpoints
    • Getting started
    • Endpoint APIs
Powered by GitBook

Segmind Developer Platform

Segmind makes it easy to use generative AI models in the cloud. We offer a range of models that can be used via the Serverless API endpoints or the PixelFlow GUI

NextDeveloper Quickstart

Last updated 1 month ago

Developer Quickstart

Make your first API request in minutes.

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

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

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

headers = {'x-api-key': api_key}
response = requests.post(url, json=data, headers=headers)

print(response.content)
const axios = require('axios');

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

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

    try {
        const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
        console.log(response.data);
    } catch (error) {
        console.error('Error:', error.response ? error.response.data : error.message);
    }
})();

We highly recommend learning about the before getting started.

Start Building

  • →

  • →

  • →

  • →

  • →

  • →

  • →

  • →

Stay up to date with the latest updates, ask questions about billing and pricing, and get support from fellow developers.

Join our Community

Discord
key concepts
Generate an image
Generate a video
Generate a voiceover
Build Product Photo workflow
Build a Virtual clothing try-on workflow
Build a avatar generator workflow
Fine tune Image model
Setup Dedicated Endpoints
Cover

Explore PixelFlow

Build multimodal workflows using a simple drag-and-drop interface.

Cover

Explore Serverless API

Get started with using our REST APIs for serverless model deployments.

Cover

Setup Dedicated Endpoints

Scale from zero to the peak with fast cold starts and autoscaling

PixelFlow Docs
Explore Templates
API Docs
Explore Model Library
Endpoint Docs