Dashboard
Coral light catches the mountain ridges above a turquoise lake.

AI image generation API

From prompt
to picture.

Bring image generation to your app with the PixQueue API. Describe an image and pay for the resolution you request.

Get started

Browse the FAQ
  1. Create an account

    Open the dashboard to sign up or log in.

    Dashboard
  2. Choose a model

    Explore model capabilities and pricing.

    Model catalog
  3. Build a request

    Prepare an image request in your preferred language.

    See code examples
API preview

API integration examples

After submitting a job, use the Location response header to check its progress and results.

Server environment variables

PIXQUEUE_GENERATION_URL
Full endpoint URL ending in /generations
PIXQUEUE_API_KEY
Your API key
PIXQUEUE_IDEMPOTENCY_KEY
Use a unique value for each new job. Reuse it when retrying that job.
generate.py
import json
import os
from urllib.request import Request, urlopen

payload = {
  "model": "Qwen-Image-2.1",
  "prompt": "Moonlit alpine peaks above a sea of clouds",
  "width": 1024,
  "height": 1024
}

request = Request(
    os.environ["PIXQUEUE_GENERATION_URL"],
    method="POST",
    headers={
        "Authorization": "Bearer " + os.environ["PIXQUEUE_API_KEY"],
        "Idempotency-Key": os.environ["PIXQUEUE_IDEMPOTENCY_KEY"],
        "Content-Type": "application/json",
    },
    data=json.dumps(payload).encode("utf-8"),
)
with urlopen(request, timeout=60) as response:
    print(response.status, response.headers["Location"])
POST · application/json

Frequently asked questions

Answers to questions about accounts, model selection, and usage-based pricing.

How do I get started?

Open the dashboard to create an account.

Already have an account? Log in there directly.

Dashboard

Which image models can I choose?

The catalog includes Qwen-Image-2.1, MOSS-Image, and SenseNova-U1. Each model page lists its capabilities and pricing.

View model catalog

How is usage measured?

Usage is the width multiplied by the height in your API request.

The provisional rate is 0.005 USD per 1,000,000 pixels.

See pricing examples

How do I get account or API support?

The contact form is not accepting submissions yet. For API issues, include the model name, requested resolution, and any error message.

Contact us