Model API'si
UGC Ad Creator
Model kimliği
ugc-ad-creatorÇ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": "ugc-ad-creator",
"input": {
"inputImage": [
"https://example.com/input.png"
],
"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": "ugc-ad-creator", "quote_id": "QUOTE_ID", "input": {"inputImage":["https://example.com/input.png"],"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 |
|---|---|---|
mode | string (enum) | Required. Default std. std renders at 768P; pro renders at 2K. Both support every ratio. |
effectType | string (enum) | Required. Sets the scene and the person for every clip. Pick Custom to build the scene from your prompt instead. If you upload a model photo, your model replaces the person in the preset. |
duration | string (enum) | Required. Video length in seconds, rendered as one 10-second clip per 10 seconds. Longer videos cost more and take a little longer, but the clips are planned together so the person, the product and the voice stay the same across them. |
inputImagezorunlu | array of image URLs | Required: Product photo |
promptzorunlu | string | Required. Write what the person should say about your product, in the language you want them to speak: "this perfume lasts all day and never feels heavy". Anything you ask to be mentioned - a benefit, a price, a discount code - is said out loud in the video. With Custom selected, also describe the setting here; with a preset the setting comes from the preset. |
ratio | string (enum) | Required. Default auto (matched from your product image). All ratios are supported. |
caption | string (enum) | Burns what the person says onto the video, timed to their speech. |
captionEffect | string (enum) | Choose how captions appear: 'Rolling Line' keeps the last three words on screen and drops the oldest as the next one arrives, 'Flash Each Word' shows words briefly, 'Sentence' displays the whole sentence at once. |
language | string (enum) | Required. The language the person speaks. Write your prompt in any language you like; the script is written and spoken in this one, and the captions follow it. |
voice | string (enum) | Required. The voice the person speaks with. |
inputImageModel | array of image URLs | Optional: Model photo. The person in this photo replaces the person from the effect and stays the same in every clip. |
captionPosition | string (enum) | Select the caption position. |
captionFontFamily | string (enum) | Select the caption font family. |
captionFontColor | string | Enter a hex color code (e.g. #FFFFFF) to set the caption text color. |
captionBoxColor | string | Enter a hex color code (e.g. #FFFFFF) to set the caption box color. |
captionBoxOpacity | string | Adjust the transparency of the caption background box. |
Çı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": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]Fiyatlandırma
- std · 10 s$1,75/ video
- std · 20 s$3,25/ video
- std · 30 s$4,76/ video
- pro · 10 s$2,54/ video
- pro · 20 s$4,84/ video
- pro · 30 s$7,14/ video
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?