seedinteger
Random seed for reproducibility (0-2147483647).
alibaba/qwen-image-3/text-to-imageQwen Image 3 by Alibaba - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.
Wypróbuj model
Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
{
"prompt": "A cute baby koala holding a card that says \"Qwen Image 3 is now available on fal\" while on a water slide"
}{
"num_images": 3,
"prompt": "Three different colorful paper lanterns floating at dusk, painterly"
}Preferencje użytkowników
Oceny Elo na podstawie ślepych głosowań porównawczych, zestawione z innymi modelami obrazu i wideo.
Rankingi pochodzą z Artificial Analysis Arena
Arena tekst-na-obraz: użytkownicy wybierają lepszy z dwóch obrazów wygenerowanych z tego samego promptu, bez znajomości nazw modeli.
Qwen Image 3 (Pro) generates photorealistic images and dense layouts such as posters, infographics, and slides, with accurate Chinese and English text rendering. Up to 6 images per request at 1K or 2K.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 5,000 characters. |
output_format | jpeg / png | png | Output file format. |
seed | integer | random | Fix it to compare prompt changes. |
num_images | integer 1–6 | 1 | Images to generate (1–6); each is billed. |
resolution | 1K / 2K | 1K | Sets the per-image rate. |
$0.04 per image at 1K and $0.075 at 2K, Alibaba's list price for Qwen Image 3.0 Pro.
| Images | 1K | 2K |
|---|---|---|
| 1 | $0.04 | $0.075 |
| 2 | $0.08 | $0.15 |
| 4 | $0.16 | $0.30 |
| 6 | $0.24 | $0.45 |
Failed runs are not charged.
Related: alibaba/qwen-image-3/edit (edit with Qwen Image 3), alibaba/qwen-image-2.
Zacznij tworzyć
Prześlij ten model przez SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "alibaba/qwen-image-3/text-to-image",
"prompt": "A cute baby koala holding a card that says \"Qwen Image 3 is now available on fal\" while on a water slide",
"num_images": 1,
"resolution": "1K",
"output_format": "png"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Utwórz klucz API SandBase i ustaw go w środowisku serwera. Wszystkie żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym ani nie commituj do repozytorium.
Wyślij POST do /v1/run z tym identyfikatorem modelu i jego danymi wejściowymi. Powyższy przykład żądania obejmuje wysyłanie i odpytywanie statusu.
Użyj zwróconego ID uruchomienia, aby odpytywać status do momentu completion, failed lub timeout. Odczytaj wynik dopiero po completion.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Przekaż publicznie dostępny URL pliku w polu image, video lub audio modelu. Obsługiwane formaty i limity są pokazane obok każdego pola wejściowego w Playground.
Użyj kontrolki upload lub replace w obsługiwanych polach image w Playground. Pola URL wideo akceptują hostowany film źródłowy; nie oznacza to obsługi przesyłania wideo.
seedintegerRandom seed for reproducibility (0-2147483647).
promptstringwymaganeText prompt describing the desired image. Supports Chinese and English. Max 5000 characters.
num_imagesintegerDomyślnie: 1
Minimum: 1
Maksimum: 6
resolutionstringOutput resolution tier used by fal billing.
Domyślnie: "1K"
Możliwe wartości: "1K", "2K"
output_formatstringThe format of the generated image.
Domyślnie: "png"
Możliwe wartości: "jpeg", "png"
{
"model": "alibaba/qwen-image-3/text-to-image",
"prompt": "A cute baby koala holding a card that says \"Qwen Image 3 is now available on fal\" while on a water slide",
"num_images": 1,
"resolution": "1K",
"output_format": "png"
}Zakończone uruchomienie udostępnia swój wynik w output. Poniżej znajduje się zapisany przykład modelu, a nie nowa generacja.
[
{
"source": "Alibaba Model Studio schema mirror",
"source_url": "https://www.alibabacloud.com/help/en/model-studio/",
"url": "https://static.sandbase.ai/examples/6ae3c326-6c22-4cb5-9093-753b27bd5fe1/output/d5763339-81b8-4f20-9651-3faa3df34f52.png"
}
]