Model API'si
WAN 2.2 A14B Image
WAN 2.2 A14B Image, metinden görsel üretir ve ayrı bir görsel düzenleme modu sunar.
Model kimliği
wan/v2.2-a14b/text-to-imageBu modelin kendi kimliği olan başka modları da var: wan/v2.2-a14b/image-to-image.
Çalıştır
Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan/v2.2-a14b/text-to-image",
"input": {
"prompt": "A red ceramic cup on a wooden table, soft morning light"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "wan/v2.2-a14b/text-to-image", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"Girdi
| Alan | Tür | Açıklama |
|---|---|---|
promptzorunlu | string | The text prompt to guide image generation. |
negative_prompt | string | Negative prompt for video generation. |
seed | integer | Random seed for reproducibility. If None, a random seed is chosen. |
num_inference_steps | integer | Number of inference steps for sampling. Higher values give better quality but take longer. |
enable_prompt_expansion | boolean | Whether to enable prompt expansion. This will use a large language model to expand the prompt with additional details while maintaining the original meaning. |
acceleration | string (enum) | Acceleration level to use. The more acceleration, the faster the generation, but with lower quality. The recommended value is 'regular'. |
guidance_scale | number | Classifier-free guidance scale. Higher values give better adherence to the prompt but may decrease quality. |
guidance_scale_2 | number | Guidance scale for the second stage of the model. This is used to control the adherence to the prompt in the second stage of the model. |
shift | number | Shift value for the image. Must be between 1.0 and 10.0. |
image_size | string (enum) | The size of the generated image. |
Çıktı
Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.
"outputs": [
{ "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]Fiyatlandırma
- 1 görsel$0,04/ görsel
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?