🎨 AI Image Generator

Access at: http://api.pssoftex.com

🌐 api.pssoftex.com

🔑 Generate Your API Key

Get your personal API key to use our image generation API in your projects.

We'll notify you about API updates
⚡ Live API Endpoint: http://api.pssoftex.com/api/generate-image

Without API key: 10 requests/hour. With API key: 100 requests/hour

💡 Try these examples:

📚 API Documentation

Endpoint Method Description Headers
/api/generate-image GET Generate AI images X-API-Key (optional)
/api/generate-key POST Generate new API key None
/api/key-info GET Get API key usage stats X-API-Key
💻 Code Examples

import requests

api_key = "YOUR_API_KEY_HERE"
url = "http://api.pssoftex.com/api/generate-image"

headers = {"X-API-Key": api_key}
params = {
    "prompt": "A beautiful sunset over mountains",
    "width": 1024,
    "height": 1024,
    "seed": 42,
    "model": "flux"
}

response = requests.get(url, headers=headers, params=params)

if response.status_code == 200:
    with open("generated_image.jpg", "wb") as f:
        f.write(response.content)
    print("Image saved as generated_image.jpg")
else:
    print(f"Error: {response.status_code}", response.text)

curl -X GET \
  -H "X-API-Key: YOUR_API_KEY_HERE" \
  -G "http://api.pssoftex.com/api/generate-image" \
  --data-urlencode "prompt=A beautiful sunset" \
  -d "width=1024" \
  -d "height=1024" \
  -d "seed=42" \
  -d "model=flux" \
  --output image.jpg

const apiKey = 'YOUR_API_KEY_HERE';
const url = 'http://api.pssoftex.com/api/generate-image';

const params = new URLSearchParams({
    prompt: 'A beautiful sunset over mountains',
    width: 1024,
    height: 1024,
    seed: 42,
    model: 'flux'
});

fetch(`${url}?${params}`, {
    method: 'GET',
    headers: {
        'X-API-Key': apiKey
    }
})
.then(response => {
    if (response.ok) return response.blob();
    throw new Error('Request failed');
})
.then(blob => {
    const url = window.URL.createObjectURL(blob);
    const a = document.createElement('a');
    a.href = url;
    a.download = 'image.jpg';
    a.click();
});

Powered by FastAPI & Pollinations.ai

API Base URL: http://api.pssoftex.com

Rate Limit: 10 requests/hour without API key, 100 requests/hour with API key