# Segmind Developer Platform

### **Developer Quickstart**

Make your first API request in minutes.&#x20;

{% tabs %}
{% tab title="cURL" %}

```sh
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"
```

{% endtab %}

{% tab title="Python" %}

```python
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)
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
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);
    }
})();
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
We highly recommend learning about the [key concepts](https://docs.segmind.com/readme/key-concepts) before getting started.
{% endhint %}

<table data-view="cards" data-full-width="true"><thead><tr><th></th><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Explore PixelFlow</strong></td><td>Build multimodal workflows using a simple drag-and-drop interface. </td><td><a href="pixelflow">PixelFlow Docs</a></td><td><a href="https://www.segmind.com/pixelflows">Explore Templates</a></td><td><a href="https://1074585346-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu6dQqQJaio4OZqiMWnkH%2Fuploads%2Fha039tkFbhQasm5rAPzN%2FChatGPT%20Image%20Mar%2026%2C%202025%2C%2006_13_03%20PM.png?alt=media&#x26;token=b69f6691-043a-4b53-9674-f4e0389cb690">ChatGPT Image Mar 26, 2025, 06_13_03 PM.png</a></td><td><a href="pixelflow">pixelflow</a></td></tr><tr><td><strong>Explore Serverless API</strong></td><td>Get started with using our REST APIs for serverless model deployments.</td><td><a href="api-reference">API Docs</a></td><td><a href="https://segmind.com/models">Explore Model Library</a></td><td><a href="https://1074585346-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu6dQqQJaio4OZqiMWnkH%2Fuploads%2F4nX1Xi95GXYWGydEzRwR%2FChatGPT%20Image%20Mar%2026%2C%202025%2C%2006_13_06%20PM.png?alt=media&#x26;token=5ef6086c-9d15-4277-8020-287f12c2aa8b">ChatGPT Image Mar 26, 2025, 06_13_06 PM.png</a></td><td><a href="api-reference">api-reference</a></td></tr><tr><td><strong>Setup Dedicated Endpoints</strong></td><td>Scale from zero to the peak with fast cold starts and autoscaling</td><td><a href="../dedicated-endpoints#overview">Endpoint Docs</a></td><td></td><td><a href="https://1074585346-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu6dQqQJaio4OZqiMWnkH%2Fuploads%2FcQZgpBbQ1NkaHoOAyrCr%2FChatGPT%20Image%20Mar%2026%2C%202025%2C%2006_14_11%20PM.png?alt=media&#x26;token=34f8970c-48a9-4b43-8999-77043c9fe6e4">ChatGPT Image Mar 26, 2025, 06_14_11 PM.png</a></td><td><a href="https://blog.segmind.com">https://blog.segmind.com</a></td></tr></tbody></table>

### Start Building

* [Generate an image](https://www.segmind.com/models/ideogram-2a-txt-2-img) →
* [Generate a video](https://www.segmind.com/models/veo-2) →
* [Generate a voiceover](https://www.segmind.com/models/orpheus-3b-0.1) →
* [Build  Product Photo workflow](https://www.segmind.com/pixelflows/ai-product-background-generator) →
* [Build a Virtual clothing try-on workflow](https://www.segmind.com/pixelflows/ai-fashion-video-generator) →
* [Build a avatar generator workflow](https://www.segmind.com/pixelflows/ai-artistic-style-video-runway-musicgen/pixelflow) →
* [Fine tune Image model](https://cloud.segmind.com/console/model-training) →
* [Setup Dedicated Endpoints](https://cloud.segmind.com/console/endpoints) →

{% hint style="info" %}
**Join our** [**Discord**](https://discord.com/invite/G5t5k2JRN6) **Community**

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.segmind.com/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
