Model API'si
Creative Upscaler
Creative Upscaler ile görseli büyütürken ayrıntıları yeniden yorumlayabilirsin.
Model kimliği
creative-upscalerÇ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": "creative-upscaler",
"input": {
"image_url": "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": "creative-upscaler", "quote_id": "QUOTE_ID", "input": {"image_url":"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 |
|---|---|---|
model_type | string (enum) | The type of model to use for the upscaling. Default is SD_1_5 |
image_urlzorunlu | string (image URL) | The image to upscale. |
prompt | string | The prompt to use for generating the image. Be as descriptive as possible for best results. If no prompt is provide BLIP2 will be used to generate a prompt. |
scale | number | The scale of the output image. The higher the scale, the bigger the output image will be. |
creativity | number | How much the output can deviate from the original |
detail | number | How much detail to add |
shape_preservation | number | How much to preserve the shape of the original image |
prompt_suffix | string | The suffix to add to the prompt. This is useful to add a common ending to all prompts such as 'high quality' etc or embedding tokens. |
negative_prompt | string | The negative prompt to use.Use it to address details that you don't want in the image. This could be colors, objects, scenery and even the small details (e.g. moustache, blurry, low resolution). |
seed | integer | The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time. |
guidance_scale | number | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
num_inference_steps | integer | The number of inference steps to use for generating the image. The more steps the better the image will be but it will also take longer to generate. |
skip_ccsr | boolean | If set to true, the image will not be processed by the CCSR model before being processed by the creativity model. |
override_size_limits | boolean | Allow for large uploads that could take a very long time. |
base_model_url | string (URL) | The URL to the base model to use for the upscaling |
additional_lora_url | string (URL) | The URL to the additional LORA model to use for the upscaling. Default is None |
additional_lora_scale | number | The scale of the additional LORA model to use for the upscaling. Default is 1.0 |
additional_embedding_url | string (URL) | The URL to the additional embeddings to use for the upscaling. Default is None |
Çı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
- en fazla$0,60/ üretim
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?