Seedance 2.5 وصل الآن · Nano Banana 2 وGPT Image 2.5 غير محدودة حتى ١٥ نوفمبرترقية
  • شعار Picasso IALogo Picasso IA
  • الرئيسية
  • صورة
  • فيديو
  • موسيقى
  • صوت
  • دردشة
  • ثلاثي الأبعاد
  • مؤثر بالذكاء الاصطناعيNEW
  • AI ToolkitNEW
  • SupercomputerNEW
  • APINEW
  • MCPNEW
  • التوليدات
  • الفواتير
  • الدعم
  • الحساب
انتقل إلى المحتوى
  • استكشاف
  • صورة
  • فيديو
  • دردشة
  • غير محدودة
  • تحرير الفيديو
  • مزامنة الشفاه
  • تحسين
  • موسيقى
  • صوت
  • تفريغ صوتي
  • ثلاثي الأبعاد
  • ترقية الدقة
  • إزالة الخلفية
ابدأ مجانًاابدأ مجانًا الآنجديدإنشاءابدأ الإنشاءالأسعارالأسعار80% OFF
Crea GratisStart Freeابدأ مجانًاCrie GrátisEssai Gratuitमुफ़्त शुरूEmpieza Gratis YaStart Free Nowابدأ مجانًا الآنComece Grátis JáCommencer Gratuitementअभी मुफ़्त शुरू करेंNuevoNewجديدNovoNouveauनयाCrearCreateإنشاءCriarCréerबनाएंEmpieza a CrearStart Creatingابدأ الإنشاءComece a CriarCommencer à Créerबनाना शुरू करेंPreciosPricingالأسعارPreçosTarifsमूल्यPreciosPricingالأسعارPreçosTarifsमूल्य80% OFF
  • ExplorarExploreاستكشافExplorarExplorerएक्सप्लोर
  • Inicio RápidoQuickstartالبدء السريعInício RápidoDémarrage Rapideत्वरित शुरुआत
  • DocumentaciónDocsالوثائقDocumentaçãoDocumentationडॉक्स
  • PreciosPricingالأسعارPreçosTarifsकीमत
  • Claves de APIAPI Keysمفاتيح APIChaves de APIClés APIAPI कुंजियाँ
  • MCPMCPخادم MCPMCPMCPMCP
  1. DocumentaciónDocsالوثائقDocumentaçãoDocumentationडॉक्स
  2. Inicio RápidoQuickstartالبدء السريعInício RápidoDémarrage Rapideत्वरित शुरुआत
API de PicassoIA · Inicio RápidoPicassoIA API · Quickstartواجهة PicassoIA API · البدء السريعPicassoIA API · Início RápidoAPI PicassoIA · Démarrage RapidePicassoIA API · त्वरित शुरुआत
Empieza con un Solo Prompt enStart in One Prompt Withابدأ بموجّه واحد معComece com um Único Prompt noDémarrez en un Seul Prompt avecएक ही प्रॉम्प्ट से शुरुआत करें
ChatGPTChatGPTChatGPTChatGPTChatGPTChatGPT
De cero a una imagen generada en pocos minutos.From nothing to a generated image in a few minutes.من الصفر إلى صورة مُولَّدة في بضع دقائق.Do zero a uma imagem gerada em poucos minutos.De zéro à une image générée en quelques minutes.शून्य से जनरेट हुई इमेज तक, कुछ ही मिनटों में।
1
Envía el Prompt a tu AgenteSend the Prompt to Your Agentأرسل الموجّه إلى وكيلكEnvie o Prompt ao seu AgenteEnvoyer le Prompt à votre Agentप्रॉम्प्ट अपने एजेंट को भेजें
Pégalo en ChatGPT, Claude, Gemini o tu agente de programación: incluye todo lo necesario para añadir la API a tu proyecto.Paste it into ChatGPT, Claude, Gemini or your coding agent: it has everything needed to add the API to your project.الصقه في ChatGPT أو Claude أو Gemini أو وكيل البرمجة لديك: فهو يتضمن كل ما يلزم لإضافة API إلى مشروعك.Cole-o no ChatGPT, no Claude, no Gemini ou no seu agente de programação: ele tem tudo o que é preciso para adicionar a API ao seu projeto.Collez-le dans ChatGPT, Claude, Gemini ou votre agent de codage : il contient tout ce qu'il faut pour ajouter l'API à votre projet.इसे ChatGPT, Claude, Gemini या अपने कोडिंग एजेंट में पेस्ट करें: आपके प्रोजेक्ट में API जोड़ने के लिए ज़रूरी सब कुछ इसमें है।
Copiar Prompt para AgenteCopy Agent Promptنسخ موجّه الوكيلCopiar Prompt para AgenteCopier le Prompt pour l'Agentएजेंट प्रॉम्प्ट कॉपी करें
Add the PicassoIA API to my project, to generate images and videos from my own code. How the API works: - Base URL: https://api.picassoia.com/v1. JSON requests and responses. - Auth: send `Authorization: Bearer <key>`, reading the key from the PICASSOIA_API_KEY environment variable. Keep it server-side: the API sends no CORS headers, so never call it from a browser or put the key in an app. - Create a prediction: `POST /v1/models/{owner}/{name}/predictions` with the body `{"input": {...}}`. It answers `201` with the prediction in the `starting` state and never waits for the result. - Poll `prediction.urls.get`, waiting `eta.next_poll_in_seconds` between calls, until `status` is `succeeded`, `failed` or `canceled`. Then read `output`, or `error` when it failed. - `GET /v1/models` lists every model with its input schema (JSON Schema). Unknown fields are refused with `422 invalid_input`. -Add the PicassoIA API to my project, to generate images and videos from my own code. How the API works: - Base URL: https://api.picassoia.com/v1. JSON requests and responses. - Auth: send `Authorization: Bearer <key>`, reading the key from the PICASSOIA_API_KEY environment variable. Keep it server-side: the API sends no CORS headers, so never call it from a browser or put the key in an app. - Create a prediction: `POST /v1/models/{owner}/{name}/predictions` with the body `{"input": {...}}`. It answers `201` with the prediction in the `starting` state and never waits for the result. - Poll `prediction.urls.get`, waiting `eta.next_poll_in_seconds` between calls, until `status` is `succeeded`, `failed` or `canceled`. Then read `output`, or `error` when it failed. - `GET /v1/models` lists every model with its input schema (JSON Schema). Unknown fields are refused with `422 invalid_input`. -Add the PicassoIA API to my project, to generate images and videos from my own code. How the API works: - Base URL: https://api.picassoia.com/v1. JSON requests and responses. - Auth: send `Authorization: Bearer <key>`, reading the key from the PICASSOIA_API_KEY environment variable. Keep it server-side: the API sends no CORS headers, so never call it from a browser or put the key in an app. - Create a prediction: `POST /v1/models/{owner}/{name}/predictions` with the body `{"input": {...}}`. It answers `201` with the prediction in the `starting` state and never waits for the result. - Poll `prediction.urls.get`, waiting `eta.next_poll_in_seconds` between calls, until `status` is `succeeded`, `failed` or `canceled`. Then read `output`, or `error` when it failed. - `GET /v1/models` lists every model with its input schema (JSON Schema). Unknown fields are refused with `422 invalid_input`. -Add the PicassoIA API to my project, to generate images and videos from my own code. How the API works: - Base URL: https://api.picassoia.com/v1. JSON requests and responses. - Auth: send `Authorization: Bearer <key>`, reading the key from the PICASSOIA_API_KEY environment variable. Keep it server-side: the API sends no CORS headers, so never call it from a browser or put the key in an app. - Create a prediction: `POST /v1/models/{owner}/{name}/predictions` with the body `{"input": {...}}`. It answers `201` with the prediction in the `starting` state and never waits for the result. - Poll `prediction.urls.get`, waiting `eta.next_poll_in_seconds` between calls, until `status` is `succeeded`, `failed` or `canceled`. Then read `output`, or `error` when it failed. - `GET /v1/models` lists every model with its input schema (JSON Schema). Unknown fields are refused with `422 invalid_input`. -Add the PicassoIA API to my project, to generate images and videos from my own code. How the API works: - Base URL: https://api.picassoia.com/v1. JSON requests and responses. - Auth: send `Authorization: Bearer <key>`, reading the key from the PICASSOIA_API_KEY environment variable. Keep it server-side: the API sends no CORS headers, so never call it from a browser or put the key in an app. - Create a prediction: `POST /v1/models/{owner}/{name}/predictions` with the body `{"input": {...}}`. It answers `201` with the prediction in the `starting` state and never waits for the result. - Poll `prediction.urls.get`, waiting `eta.next_poll_in_seconds` between calls, until `status` is `succeeded`, `failed` or `canceled`. Then read `output`, or `error` when it failed. - `GET /v1/models` lists every model with its input schema (JSON Schema). Unknown fields are refused with `422 invalid_input`. -Add the PicassoIA API to my project, to generate images and videos from my own code. How the API works: - Base URL: https://api.picassoia.com/v1. JSON requests and responses. - Auth: send `Authorization: Bearer <key>`, reading the key from the PICASSOIA_API_KEY environment variable. Keep it server-side: the API sends no CORS headers, so never call it from a browser or put the key in an app. - Create a prediction: `POST /v1/models/{owner}/{name}/predictions` with the body `{"input": {...}}`. It answers `201` with the prediction in the `starting` state and never waits for the result. - Poll `prediction.urls.get`, waiting `eta.next_poll_in_seconds` between calls, until `status` is `succeeded`, `failed` or `canceled`. Then read `output`, or `error` when it failed. - `GET /v1/models` lists every model with its input schema (JSON Schema). Unknown fields are refused with `422 invalid_input`. -
2
Crea una Clave de APICreate an API Keyأنشئ مفتاح APICrie uma Chave de APICréer une Clé APIAPI कुंजी बनाएँ
Crea una key en tu cuenta y guárdala en tu servidor, en la variable de entorno PICASSOIA_API_KEY. Para crear keys y predicciones necesitas un plan Infinite activo.Create a key in your account and keep it on your server in the PICASSOIA_API_KEY environment variable. Creating keys and predictions needs an active Infinite plan.أنشئ مفتاحًا من حسابك واحتفظ به على خادمك في متغير البيئة PICASSOIA_API_KEY. يتطلب إنشاء المفاتيح والتنبؤات خطة Infinite نشطة.Crie uma chave na sua conta e guarde-a no seu servidor, na variável de ambiente PICASSOIA_API_KEY. Criar chaves e previsões exige um plano Infinite ativo.Créez une clé dans votre compte et conservez-la sur votre serveur, dans la variable d'environnement PICASSOIA_API_KEY. La création de clés et de prédictions nécessite un forfait Infinite actif.अपने अकाउंट में एक key बनाएँ और उसे अपने सर्वर पर PICASSOIA_API_KEY एनवायरनमेंट वेरिएबल में रखें। API keys और प्रेडिक्शन बनाने के लिए सक्रिय Infinite प्लान ज़रूरी है।
Crear Clave de APICreate API Keyإنشاء مفتاح APICriar Chave de APICréer une Clé APIAPI कुंजी बनाएँ
ShellShellShellShellShellShell
3
Haz tu Primera PeticiónMake Your First Requestأرسل طلبك الأولFaça sua Primeira RequisiçãoEnvoyer votre Première Requêteअपनी पहली रिक्वेस्ट भेजें
Crea una predicción con un solo POST. La API suele responder en pocos segundos, sin esperar al resultado.Create a prediction with one POST. The API usually answers within seconds, without waiting for the result.أنشئ تنبؤًا بطلب POST واحد. تستجيب الواجهة عادةً في غضون ثوانٍ، دون انتظار النتيجة.Crie uma previsão com um único POST. A API geralmente responde em poucos segundos, sem esperar pelo resultado.Créez une prédiction avec un seul POST. L'API répond généralement en quelques secondes, sans attendre le résultat.एक POST से प्रेडिक्शन बनाएँ। API आमतौर पर कुछ ही सेकंड में जवाब देता है, नतीजे का इंतज़ार किए बिना।
cURLcURLcURLcURLcURLcURL
cURLcURLcURLcURLcURLcURL
Respuesta · 201 CreatedResponse · 201 Createdالاستجابة · 201 CreatedResposta · 201 CreatedRéponse · 201 Createdजवाब · 201 Created
4
Consulta y Descarga el ResultadoPoll and Download the Resultاستعلم ونزّل النتيجةConsulte e Baixe o ResultadoInterroger et Télécharger le Résultatपोल करें और नतीजा डाउनलोड करें
Consulta la predicción en urls.get, esperando eta.next_poll_in_seconds entre llamadas, hasta que su estado sea succeeded, failed o canceled. Si terminó con éxito, descarga la salida.Poll the prediction's urls.get, waiting eta.next_poll_in_seconds between calls, until its status is succeeded, failed or canceled. If it succeeded, download the output.استعلم دوريًا عن urls.get الخاص بالتنبؤ، منتظرًا eta.next_poll_in_seconds بين الاستدعاءات، حتى تصبح حالته succeeded أو failed أو canceled. إذا نجح، فنزّل المخرجات.Consulte o urls.get da previsão, aguardando eta.next_poll_in_seconds entre as chamadas, até que o status seja succeeded, failed ou canceled. Se o status for succeeded, baixe a saída.Interrogez l'URL urls.get de la prédiction, en attendant eta.next_poll_in_seconds entre deux appels, jusqu'à ce que son état soit succeeded, failed ou canceled. Si elle a réussi, téléchargez la sortie.प्रेडिक्शन के urls.get को पोल करें और हर कॉल के बीच eta.next_poll_in_seconds सेकंड रुकें, जब तक उसका स्टेटस succeeded, failed या canceled न हो जाए। अगर वह सफल रहा, तो आउटपुट डाउनलोड करें।
cURLcURLcURLcURLcURLcURL
Respuesta · 200 OK · terminadaResponse · 200 OK · finishedالاستجابة · 200 OK · مكتملResposta · 200 OK · concluídaRéponse · 200 OK · terminéeजवाब · 200 OK · पूरा हुआ
Explora los ModelosExplore Modelsاستكشف النماذجExplorar ModelosExplorer les Modèlesमॉडल देखें
Cada modelo con su playground, su código y sus parámetrosEvery model with its playground, its code and its parametersكل نموذج مع مساحة التجربة الخاصة به وشيفرته ومعاملاتهCada modelo com seu playground, seu código e seus parâmetrosChaque modèle avec son playground, son code et ses paramètresहर मॉडल, अपने प्लेग्राउंड, कोड और पैरामीटर के साथ
  • VídeoVideoالفيديوVídeoVidéoवीडियो
    picassoia / Seedance 2.5 Litepicassoia / Seedance 2.5 Litepicassoia / Seedance 2.5 Litepicassoia / Seedance 2.5 Litepicassoia / Seedance 2.5 Litepicassoia / Seedance 2.5 Lite
    Texto e imagen a vídeo con audio, clips de 5, 10 o 15 segundos y salida en 480p o 720p.Text and image to video with audio, clips of 5, 10 or 15 seconds and 480p or 720p output.تحويل النص والصورة إلى فيديو مع الصوت ومقاطع مدتها 5 أو 10 أو 15 ثانية ودقة 480p أو 720p.Texto e imagem para vídeo com áudio, clipes de 5, 10 ou 15 segundos e saída em 480p ou 720p.Texte et image vers vidéo avec audio, des clips de 5, 10 ou 15 secondes et une sortie en 480p ou 720p.टेक्स्ट और इमेज से वीडियो: ऑडियो, 5, 10 या 15 सेकंड की क्लिप और 480p या 720p आउटपुट।
    IlimitadoUnlimitedغير محدودIlimitadoIllimitéअसीमित
    $0$0$0$0$0$0
    / ejecución/ run/ تشغيل/ execução/ requête/ रन
    desde ~$0.2205/s en otras APIsfrom ~$0.2205/s elsewhereابتداءً من ⁦~$0.2205⁩/ثانية لدى الآخرينa partir de ~$0.2205/s em outros provedoresà partir de ~$0.2205/s ailleursदूसरी जगह ~$0.2205/⁠सेकंड से शुरू
  • VídeoVideoالفيديوVídeoVidéoवीडियो
    picassoia / PicassoIA Videopicassoia / PicassoIA Videopicassoia / PicassoIA Videopicassoia / PicassoIA Videopicassoia / PicassoIA Videopicassoia / PicassoIA Video
    Texto e imagen a vídeo con audio, clips de 1 a 20 segundos y salida en 480p, 720p o 1080p.Text and image to video with audio, clips of 1 to 20 seconds and 480p, 720p or 1080p output.تحويل النص والصورة إلى فيديو مع الصوت ومقاطع مدتها من 1 إلى 20 ثانية ودقة 480p أو 720p أو 1080p.Texto e imagem para vídeo com áudio, clipes de 1 a 20 segundos e saída em 480p, 720p ou 1080p.Texte et image vers vidéo avec audio, des clips de 1 à 20 secondes et une sortie en 480p, 720p ou 1080p.टेक्स्ट और इमेज से वीडियो: ऑडियो, 1 से 20 सेकंड की क्लिप और 480p, 720p या 1080p आउटपुट।
    IlimitadoUnlimitedغير محدودIlimitadoIllimitéअसीमित
    $0$0$0$0$0$0
    / ejecución/ run/ تشغيل/ execução/ requête/ रन
    desde $0.06/s en otras APIsfrom $0.06/s elsewhereابتداءً من ⁦$0.06⁩/ثانية لدى الآخرينa partir de $0.06/s em outros provedoresà partir de $0.06/s ailleursदूसरी जगह $0.06/⁠सेकंड से शुरू
  • ImagenImageالصورImagemImageइमेज
    picassoia / PicassoIA Imagepicassoia / PicassoIA Imagepicassoia / PicassoIA Imagepicassoia / PicassoIA Imagepicassoia / PicassoIA Imagepicassoia / PicassoIA Image
    Texto a imagen con 1 o 2 imágenes por petición y 7 relaciones de aspecto.Text to image with 1 or 2 images per request and 7 aspect ratios.تحويل النص إلى صورة مع صورة أو صورتين لكل طلب و7 نسب أبعاد.Texto para imagem com 1 ou 2 imagens por requisição e 7 proporções.Texte vers image avec 1 ou 2 images par requête et 7 rapports d'aspect.टेक्स्ट से इमेज: हर रिक्वेस्ट पर 1 या 2 इमेज और 7 आस्पेक्ट रेशियो।
    IlimitadoUnlimitedغير محدودIlimitadoIllimitéअसीमित
    $0$0$0$0$0$0
    / ejecución/ run/ تشغيل/ execução/ requête/ रन
    $0.02/MP en otras APIs$0.02/MP elsewhere⁦$0.02⁩/ميغابكسل لدى الآخرين$0.02/MP em outros provedores$0.02/MP ailleursदूसरी जगह $0.02/⁠मेगापिक्सेल
  • ImagenImageالصورImagemImageइमेज
    picassoia / PicassoIA Image Editor Propicassoia / PicassoIA Image Editor Propicassoia / PicassoIA Image Editor Propicassoia / PicassoIA Image Editor Propicassoia / PicassoIA Image Editor Propicassoia / PicassoIA Image Editor Pro
    Edición de imágenes por IA con hasta 4 imágenes de entrada, 1 o 2 imágenes por petición y 7 relaciones de aspecto.AI image editing with up to 4 input images, 1 or 2 images per request and 7 aspect ratios.تعديل الصور بالذكاء الاصطناعي مع ما يصل إلى 4 صور مدخلة وصورة أو صورتين لكل طلب و7 نسب أبعاد.Edição de imagens por IA com até 4 imagens de entrada, 1 ou 2 imagens por requisição e 7 proporções.Édition d'images par IA avec jusqu'à 4 images d'entrée, 1 ou 2 images par requête et 7 rapports d'aspect.AI इमेज एडिटिंग: अधिकतम 4 इनपुट इमेज, हर रिक्वेस्ट पर 1 या 2 इमेज और 7 आस्पेक्ट रेशियो।
    IlimitadoUnlimitedغير محدودIlimitadoIllimitéअसीमित
    $0$0$0$0$0$0
    / ejecución/ run/ تشغيل/ execução/ requête/ रन
    $0.03/MP en otras APIs$0.03/MP elsewhere⁦$0.03⁩/ميغابكسل لدى الآخرين$0.03/MP em outros provedores$0.03/MP ailleursदूसरी जगह $0.03/⁠मेगापिक्सेल
Lee la DocumentaciónRead the Docsاقرأ الوثائقLer a DocumentaçãoLire la Documentationडॉक्स पढ़ें
Todo sobre la API, página a páginaEverything about the API, page by pageكل ما يخص API، صفحة بصفحةTudo sobre a API, página por páginaTout sur l'API, page par pageAPI के बारे में सब कुछ, पेज दर पेज
  • الرئيسية
  • مجموعة الأدوات
  • المكتبة
  • الحساب
ابدأ مجانًاابدأ مجانًا الآنجديدإنشاءابدأ الإنشاءالأسعارالأسعار80% OFF
  • استكشاف
  • البدء السريع
  • الوثائق
  • الأسعار
  • مفاتيح API
  • خادم MCP
  1. الوثائق
  2. البدء السريع

واجهة PicassoIA API · البدء السريعابدأ بموجّه واحد مع ChatGPT, Claude, Gemini

من الصفر إلى صورة مُولَّدة في بضع دقائق.

1

أرسل الموجّه إلى وكيلك

الصقه في ChatGPT أو Claude أو Gemini أو وكيل البرمجة لديك: فهو يتضمن كل ما يلزم لإضافة API إلى مشروعك.

Add the PicassoIA API to my project, to generate images and videos from my own code.

How the API works:
- Base URL: https://api.picassoia.com/v1. JSON requests and responses.
- Auth: send `Authorization: Bearer <key>`, reading the key from the PICASSOIA_API_KEY environment variable. Keep it server-side: the API sends no CORS headers, so never call it from a browser or put the key in an app.
- Create a prediction: `POST /v1/models/{owner}/{name}/predictions` with the body `{"input": {...}}`. It answers `201` with the prediction in the `starting` state and never waits for the result.
- Poll `prediction.urls.get`, waiting `eta.next_poll_in_seconds` between calls, until `status` is `succeeded`, `failed` or `canceled`. Then read `output`, or `error` when it failed.
- `GET /v1/models` lists every model with its input schema (JSON Schema). Unknown fields are refused with `422 invalid_input`.
- Images go as public https URLs or data URLs (PNG, JPEG or WebP, up to 5 MB each); the request body is limited to 10 MB.
- Up to 5 predictions queued or running per account; the next one answers `429 concurrency_limit` with a `Retry-After` header.
- Output URLs are hosted by PicassoIA: download the files you want to keep.
- Docs: https://picassoia.com/en/api

Models:
- `picassoia/seedance-2.5-lite` (Seedance 2.5 Lite): text or image to video with synchronized audio: 5, 10 or 15 s at 480p, up to 10 s at 720p; optional closing frame (last_frame_image, needs image). Output: one MP4 URL (a string).
- `picassoia/picassoia-video` (PicassoIA Video): text or image to video: 480p up to 20 s, 720p up to 10 s, 1080p up to 5 s. Output: one MP4 URL (a string).
- `picassoia/picassoia-image` (PicassoIA Image): text to image: 1 or 2 images from a prompt. Output: a list of image URLs.
- `picassoia/picassoia-image-editor-pro` (PicassoIA Image Editor Pro): edits or combines 1 to 4 images following a prompt (refer to them as "image 1", "image 2"…). Output: a list of image URLs.
- `picassoia/picassoia-reference-to-video` (PicassoIA Reference To Video): reference to video with synchronized audio: up to 9 reference images, an optional reference video and an optional reference audio (a voice a character lip-syncs, or music), named in the prompt as "Image 1", "Video 1", "Audio 1". At least one image or the video is required; the video and the audio go as public https URLs only. 480p or 720p, 1 to 15 s. Output: one MP4 URL (a string).
2

أنشئ مفتاح API

أنشئ مفتاحًا من حسابك واحتفظ به على خادمك في متغير البيئة PICASSOIA_API_KEY. يتطلب إنشاء المفاتيح والتنبؤات خطة Infinite نشطة.

إنشاء مفتاح API
Shell
1export PICASSOIA_API_KEY="pia_sk_…"
3

أرسل طلبك الأول

أنشئ تنبؤًا بطلب POST واحد. تستجيب الواجهة عادةً في غضون ثوانٍ، دون انتظار النتيجة.

cURL
1
2
3
4curl -s -X POST https://api.picassoia.com/v1/models/picassoia/picassoia-image/predictions \
  -H "Authorization: Bearer $PICASSOIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"prompt":"a lighthouse at sunset, oil painting"}}'
Node.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17const API = 'https://api.picassoia.com/v1'
const headers = {
  Authorization: `Bearer ${process.env.PICASSOIA_API_KEY}`,
  'Content-Type': 'application/json',
}

const input = {
  prompt: "a lighthouse at sunset, oil painting"
}
const created = await fetch(`${API}/models/picassoia/picassoia-image/predictions`, {
  method: 'POST',
  headers,
  body: JSON.stringify({ input }),
})
let prediction = await created.json()
if (!created.ok) throw new Error(`${prediction.code}: ${prediction.detail}`)
console.log(prediction.id, prediction.status) // api_…, starting
Python
1
2
3
4
5
6
7
8
9
10
11
12
13import os, requests

API = "https://api.picassoia.com/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['PICASSOIA_API_KEY']}"}

payload = {"input": {
    "prompt": "a lighthouse at sunset, oil painting",
}}
response = requests.post(f"{API}/models/picassoia/picassoia-image/predictions", json=payload, headers=HEADERS)
prediction = response.json()
if not response.ok:
    raise RuntimeError(f"{prediction['code']}: {prediction['detail']}")
print(prediction["id"], prediction["status"])  # api_…, starting
الاستجابة · 201 Created
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28{
  "id": "api_3f9c2b7e8d1a4c6f9e0b1a2c3d4e5f60",
  "model": "picassoia/picassoia-image",
  "input": {
    "prompt": "a lighthouse at sunset, oil painting",
    "aspect_ratio": "1:1",
    "num_outputs": 1,
    "output_format": "jpg",
    "output_quality": 80
  },
  "output": null,
  "error": null,
  "status": "starting",
  "created_at": "2026-10-01T09:30:00.000Z",
  "started_at": null,
  "completed_at": null,
  "metrics": {
    "predict_time": null
  },
  "urls": {
    "get": "https://api.picassoia.com/v1/predictions/api_3f9c2b7e8d1a4c6f9e0b1a2c3d4e5f60",
    "cancel": "https://api.picassoia.com/v1/predictions/api_3f9c2b7e8d1a4c6f9e0b1a2c3d4e5f60/cancel"
  },
  "eta": {
    "seconds": 12,
    "next_poll_in_seconds": 6
  }
}
4

استعلم ونزّل النتيجة

استعلم دوريًا عن urls.get الخاص بالتنبؤ، منتظرًا eta.next_poll_in_seconds بين الاستدعاءات، حتى تصبح حالته succeeded أو failed أو canceled. إذا نجح، فنزّل المخرجات.

cURL
1
2
3
4
5
6
7
8
9# Repeat after eta.next_poll_in_seconds until status is
# succeeded, failed or canceled.
curl -s https://api.picassoia.com/v1/predictions/api_3f9c2b7e8d1a4c6f9e0b1a2c3d4e5f60 \
  -H "Authorization: Bearer $PICASSOIA_API_KEY"

# The last poll holds the result: "output" when "status" is succeeded,
# "error" when it is failed. With jq, just those three fields:
curl -s https://api.picassoia.com/v1/predictions/api_3f9c2b7e8d1a4c6f9e0b1a2c3d4e5f60 \
  -H "Authorization: Bearer $PICASSOIA_API_KEY" | jq '.status, .output, .error'
Node.js
1
2
3
4
5
6
7
8
9const sleep = (s) => new Promise((resolve) => setTimeout(resolve, s * 1000))

while (!['succeeded', 'failed', 'canceled'].includes(prediction.status)) {
  await sleep(prediction.eta?.next_poll_in_seconds ?? 2)
  prediction = await (await fetch(prediction.urls.get, { headers })).json()
}

if (prediction.status !== 'succeeded') throw new Error(prediction.error ?? prediction.status)
console.log(prediction.output)
Python
1
2
3
4
5
6
7
8
9import time

while prediction["status"] not in ("succeeded", "failed", "canceled"):
    time.sleep((prediction.get("eta") or {}).get("next_poll_in_seconds", 2))
    prediction = requests.get(prediction["urls"]["get"], headers=HEADERS).json()

if prediction["status"] != "succeeded":
    raise RuntimeError(prediction["error"] or prediction["status"])
print(prediction["output"])
الاستجابة · 200 OK · مكتمل
1
2
3
4
5
6
7
8
9
10
11
12
13{
  "id": "api_3f9c2b7e8d1a4c6f9e0b1a2c3d4e5f60",
  "status": "succeeded",
  "output": [
    "https://…/output-1.jpg"
  ],
  "error": null,
  "completed_at": "2026-10-01T09:30:08.000Z",
  "metrics": {
    "predict_time": 6.4
  },
  "eta": null
}

استكشف النماذج

كل نموذج مع مساحة التجربة الخاصة به وشيفرته ومعاملاته

  • Seedance 2.5 Lite
    الفيديو

    picassoia / Seedance 2.5 Lite

    تحويل النص والصورة إلى فيديو مع الصوت ومقاطع مدتها 5 أو 10 أو 15 ثانية ودقة 480p أو 720p.

    غير محدودالتكلفة ⁦$0⁩ لكل طلب مع خطة Infinite؛ ويتقاضى مزوّدون آخرون ابتداءً من ⁦~$0.2205⁩/ثانية مقابل نموذج مماثل، بتاريخ ١ أكتوبر ٢٠٢٦$0/ تشغيلابتداءً من ⁦~$0.2205⁩/ثانية لدى الآخرين
  • PicassoIA Video
    الفيديو

    picassoia / PicassoIA Video

    تحويل النص والصورة إلى فيديو مع الصوت ومقاطع مدتها من 1 إلى 20 ثانية ودقة 480p أو 720p أو 1080p.

    غير محدودالتكلفة ⁦$0⁩ لكل طلب مع خطة Infinite؛ ويتقاضى مزوّدون آخرون ابتداءً من ⁦$0.06⁩/ثانية مقابل نموذج مماثل، بتاريخ ١ أكتوبر ٢٠٢٦$0/ تشغيلابتداءً من ⁦$0.06⁩/ثانية لدى الآخرين
  • PicassoIA Image
    الصور

    picassoia / PicassoIA Image

    تحويل النص إلى صورة مع صورة أو صورتين لكل طلب و7 نسب أبعاد.

    غير محدودالتكلفة ⁦$0⁩ لكل طلب مع خطة Infinite؛ ويتقاضى مزوّدون آخرون ⁦$0.02⁩/ميغابكسل مقابل نموذج مماثل، بتاريخ ١ أكتوبر ٢٠٢٦$0/ تشغيل⁦$0.02⁩/ميغابكسل لدى الآخرين
  • PicassoIA Image Editor Pro
    الصور

    picassoia / PicassoIA Image Editor Pro

    تعديل الصور بالذكاء الاصطناعي مع ما يصل إلى 4 صور مدخلة وصورة أو صورتين لكل طلب و7 نسب أبعاد.

    غير محدودالتكلفة ⁦$0⁩ لكل طلب مع خطة Infinite؛ ويتقاضى مزوّدون آخرون ⁦$0.03⁩/ميغابكسل مقابل نموذج مماثل، بتاريخ ١ أكتوبر ٢٠٢٦$0/ تشغيل⁦$0.03⁩/ميغابكسل لدى الآخرين
اقرأ الوثائقكل ما يخص API، صفحة بصفحة