واجهة PicassoIA API
الأخطاء والحدود
معنى كل خطأ وكيفية إصلاحه، والحدود التي يعمل ضمنها كل حساب.
الأخطاء
الأخطاء عبارة عن تفاصيل مشكلات (problem details) بصيغة JSON، مع إضافة code ثابت مخصص للبرامج:
{
"title": "Too many predictions in progress",
"detail": "This account can have up to 5 predictions queued or running at once, shared by its API keys, its MCP connections and the generations included in its plan running on picassoia.com, and 5 are. Wait for one to finish and try again.",
"status": 429,
"code": "concurrency_limit",
"retry_after": 10,
"limit": 5,
"running": 5
}invalid_fields. تسرد الاستجابة 422 كل حقل به خطأ:
{
"title": "Input validation failed",
"status": 422,
"code": "invalid_input",
"detail": "input.duration: At 720p the longest clip is 10 seconds.",
"invalid_fields": [
{ "type": "invalid_value", "field": "input.duration", "description": "At 720p the longest clip is 10 seconds." }
]
}