API Documentation
Developer API
Integrate PixGenX generation directly into your apps with our simple REST API.
Generate Image
POST /api/v1/generate
Generates a new image based on a text prompt.
Request Headers
x-api-key (Required) Your secret API key
Content-Type application/json
Request Body
prompt string (Required)
width number (Required)
height number (Required)
curl_example.sh
curl -X POST https://your-site.com/api/v1/generate \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "gourmet pizza",
"width": 540,
"height": 960
}'Response
{
"id": "abc12345-xyz-6789",
"imageUrl": "https://...supabase.co/.../abc.png",
"seed": 928374827364,
"status": "completed"
}