Мазмұнға өту

Creative Lab қателерінің анықтамалығы

Сұрау сәтті орындалса, HTTP күй коды 200, ал жауап денесіндегі code өрісі 0 болады. Қате болса, API тиісті HTTP күй кодын және code өрісінде машина оқи алатын қате кодын қайтарады.

{
"code": 5,
"message": "Insufficient balance, check account balance.",
"trace_id": "662f1a9c4b1e2d0012a3b4c5"
}
ӨрісТүріМіндетті ме?Сипаттама
codenumberиәҚате коды. Сұрау сәтті орындалса, мәні 0 болады. Төмендегі кестені қараңыз.
messagestringиәҚатенің мәтіндік сипаттамасы.
detailsarrayжоқКіріс деректерін тексеру туралы мәлімет (code: 3 кезінде беріледі).
trace_idstringжоқҚолдау қызметіне хабарласқанда берілетін сұрау идентификаторы (ішкі қате кезінде, code: 1).

API кілті берілмесе немесе жарамсыз болса, API HTTP 401 күйін және { "error": { "message": "Unauthorized" } } денесін қайтарады. Authorization тақырыбын тексеріңіз.

Қолжетімді қателіктер

«Қолжетімді қателіктер» бөлімі
Код HTTP Хабар
1 # 500 Internal server error.
3 # 400 Invalid input, check schema issues.
5 # 402 Insufficient balance, check account balance.
6 # 429 API key limit exceeded. Check your daily or monthly limits.
7 # 403 Model is not available for this account (banned or restricted).
20 # 404 Model not found or is not available via the LAB API.
21 # 410 Model is deprecated or not available for this organization.
22 # 404 Task not found in LAB API v2. Only tasks created via LAB API v2 are available here.
23 # 409 Task with this idempotency_key already exists with different input.
24 # 404 Model is not available for this API key. Request GET /api/v2/media/models to see the models available to you.
25 # 400 Input file was rejected by the model. Check its size, format, resolution and aspect ratio.
26 # 400 Prompt was rejected by the model. Check its length and content.
27 # 400 Requested combination of parameters is not supported by this model.
28 # 503 Generation failed for a reason we could not attribute. Repeat the same request later; if it keeps failing, check the input files and their URLs.
29 # 403 Model is not allowed for this API key. Adjust allowed models in the dashboard or use another key.
30 # 429 Too many generation requests. Retry after the window resets.
31 # 429 Too many tasks running at once. Wait for the current ones to finish.
99 # 404 API method not found, check the URL.
1001 # 400 Sensitive content has been detected in your request or uploaded files. Please check the text and media and try again.
1002 # 400 Request was blocked by moderation.

Kling бағасын есептегенде бос prompt

«Kling бағасын есептегенде бос prompt» бөлімі

ERR_EMPTY_PROMPT # kling-v3 бағасын есептеу кезінде мәтін берілмесе немесе params ішінде берілсе, API HTTP 400, code: 3 және details[].message: "ERR_EMPTY_PROMPT" қайтарады. prompt өрісін сұрау денесінің жоғарғы деңгейінде model өрісімен қатар беріп, бағаны қайта есептеңіз.

kling-image-v4-product алдымен inputs.image өрісінде сурет бар-жоғын тексереді. Сурет берілсе, мәтіннің болмауы осы қатеге әкеледі.