Skip to content

Qwen Image 3.0 ​

qwen-image-3.0 is Alibaba Qwen Image 3.0. It uses Pixapi's OpenAI-compatible image endpoints for generation and editing.

API surface ​

OperationEndpointMode
Image generationPOST /v1/images/generationsSync
Image generation taskPOST /v1/async/images/generationsAsync
Image editingPOST /v1/images/editsSync
Image editing taskPOST /v1/async/images/editsAsync

Model ids ​

Model idBest for
qwen-image-3.0Qwen image generation and editing

Pricing ​

Model idCredits / image
qwen-image-3.03

Request fields ​

Send the common fields at the top level. Put the model-specific controls listed below inside providerOptions.

FieldTypeRequiredDescription
modelstringYesqwen-image-3.0. Case-sensitive model ID.
promptstringYesDescribe the subject, composition, style, and requested edits. Pixapi keeps the first 2,000 characters; provide a non-empty prompt for both generation and editing.
nintegerNoInteger 1–6, default 1.
sizestringNoUse pixel dimensions WIDTHxHEIGHT, for example 1024x1024. Pixel area 512×512–2048×2048. Ratio 1:8–8:1. Each edge 512–2048; default 1024×1024.
imagestring / string[]For editsPublic HTTP(S) image URL or URL array; required on /images/edits. 1–3 images, ≤ 10 MB each; recommended 384–2048 pixels per edge. JPEG/PNG/BMP/TIFF/WebP/GIF.
providerOptionsobjectNoModel-specific options; see the table below.

providerOptions ​

All fields in this table are nested inside providerOptions, not alongside model.

FieldTypeDescription
nsfw_checkbooleanOptional prompt/image moderation; default false.
negative_promptstringDescribe content to exclude.
prompt_extendbooleanIntelligent rewriting, default false.
prompt_extend_modestringdirect (default) for generation/editing; agent for text-to-image only. Requires prompt_extend=true.

Input rules ​

Output resolution is selected with pixels in size.

Example ​

bash
curl https://api.pixapi.ai/v1/images/generations \
  -H "Authorization: Bearer $PIXAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen-image-3.0","prompt":"A clean editorial product photo on a warm gray background","n":1,"size":"1024x1024"}'
py
import os
import requests

response = requests.post(
    "https://api.pixapi.ai/v1/images/generations",
    headers={
        "Authorization": f"Bearer {os.environ['PIXAPI_KEY']}",
        "Content-Type": "application/json",
    },
    json={
  "model": "qwen-image-3.0",
  "prompt": "A clean editorial product photo on a warm gray background",
  "n": 1,
  "size": "1024x1024"
},
)
response.raise_for_status()
print(response.json())
js
const response = await fetch('https://api.pixapi.ai/v1/images/generations', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PIXAPI_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "model": "qwen-image-3.0",
  "prompt": "A clean editorial product photo on a warm gray background",
  "n": 1,
  "size": "1024x1024"
}),
});

if (!response.ok) {
  throw new Error(await response.text());
}

console.log(await response.json());
go
package main

import (
  "bytes"
  "fmt"
  "io"
  "net/http"
  "os"
)

func main() {
  body := []byte(`{
  "model": "qwen-image-3.0",
  "prompt": "A clean editorial product photo on a warm gray background",
  "n": 1,
  "size": "1024x1024"
}`)

  req, err := http.NewRequest(
    "POST",
    "https://api.pixapi.ai/v1/images/generations",
    bytes.NewBuffer(body),
  )
  if err != nil {
    panic(err)
  }
  req.Header.Set("Authorization", "Bearer "+os.Getenv("PIXAPI_KEY"))
  req.Header.Set("Content-Type", "application/json")

  resp, err := http.DefaultClient.Do(req)
  if err != nil {
    panic(err)
  }
  defer resp.Body.Close()

  result, _ := io.ReadAll(resp.Body)
  fmt.Println(string(result))
}

Edit an image ​

json
{
  "model": "qwen-image-3.0",
  "prompt": "Replace the background with a minimalist studio set",
  "image": "https://example.com/input.png",
  "n": 1
}

For async requests and task polling, see Async Media Tasks.

For the shared response shape, see the API Reference.