PixMind Docs
API ReferenceImage ModelsPixmind

Pixmind Image API

Generate or process images with Pixmind through the PixMind API.

Free text-to-image generation with relaxed and fast processing modes.

Provider

Pixmind

Model ID

z-image

Endpoint

POST /api-platform/v1/generations

Model notes

  • API pricing has not been published for this route yet.

Request parameters

ParameterTypeRequiredDescription
modelstringYes

Stable PixMind model ID. Use `z-image`.

Allowed values: z-image

promptstringYes

Natural-language generation or editing instructions.

resolutionstringNo

Output resolution tier. This field affects request pricing.

Allowed values: 1k

Default: 1k

aspectRatiostringNo

Requested output aspect ratio.

Allowed values: 1:1, 16:9, 9:16, 4:3, 3:4

Default: 1:1

speedstringNo

Processing mode. This field can affect request pricing.

Allowed values: relax, fast

Default: fast

Request example

cURL
curl https://aihub-admin.aimix.pro/api-platform/v1/generations \
  -H "Authorization: Bearer $PIXMIND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "z-image",
  "prompt": "A polished campaign image with clean composition and controlled lighting",
  "resolution": "1k",
  "aspectRatio": "1:1",
  "speed": "fast"
}'
JavaScript
const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/generations", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "model": "z-image",
  "prompt": "A polished campaign image with clean composition and controlled lighting",
  "resolution": "1k",
  "aspectRatio": "1:1",
  "speed": "fast"
})
});

const task = await response.json();

Accepted task response

Generation is asynchronous. Save taskId and poll GET /api-platform/v1/tasks/{taskId} until status is ready or failed.

200 OK
{
  "code": 1000,
  "data": {
    "id": "img_44160",
    "taskId": 44160,
    "type": "image",
    "model": "z-image",
    "status": "processing"
  }
}

API pricing

ConfigurationPrice
API price not published

API pricing uses the apiPlatform role and is separate from PixMind Studio credits. The accepted task response is the final pricing snapshot.