Référence API de Seedream 5.5
Même visage sur tous les looks ; petit texte multilingue.
Une seule clé API PopNow suffit pour appeler Seedream 5.5 depuis votre code. Vous trouverez ici les identifiants de modèle à envoyer, chaque champ d’entrée accepté, le coût d’une requête en USD et une requête à coller telle quelle dans un terminal.
Les descriptions des paramètres proviennent du schéma d’entrée du modèle et ne sont disponibles qu’en anglais.
En bref
- Éditeur
- ByteDance
- Résultat
- Image
- À partir de
- $0.018 USD par image
- Durée habituelle
- environ 31 s
Les prix sont affichés en USD et les frais sont déduits de votre solde PopNow. Le montant maximal est réservé à la réception de la tâche, puis la consommation réelle est facturée à la fin et le solde libéré. Les tâches en échec ne sont pas facturées. Obtenez un devis exact avant de lancer avec POST /api/v1/jobs/quote.
Créer une image
bytedance/seedream-5.5/text-to-image
Prix
| Option | USD |
|---|---|
1.5k | $0.018 par image |
1k | $0.018 par image |
2k | $0.031 par image |
Paramètres
| Champ | Type | Valeur par défaut | Valeurs admises | Rôle |
|---|---|---|---|---|
promptObligatoire | string | — | jusqu’à 5 000 caractères | Describe the image: subject, composition, style, lighting and any exact text. |
aspect_ratioFacultatif | string | 1:1 | 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9 | Output aspect ratio. |
resolutionFacultatif | string | 2k | 1k, 1.5k, 2k | Output resolution tier. |
output_formatFacultatif | string | png | png, jpeg | File format of the returned image. |
backgroundFacultatif | string | auto | auto, transparent, opaque | Background treatment. Transparent needs PNG output; a JPEG always stays opaque. |
Exemple de requête
Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "bytedance/seedream-5.5/text-to-image",
"input": {
"prompt": "A cozy reading nook beside a rain-streaked window, warm lamp light, a sleeping orange cat on a knitted blanket, soft film grain",
"resolution": "2k"
}
}'La réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Modifier une image
bytedance/seedream-5.5/edit
Prix
| Option | USD |
|---|---|
1.5k | $0.02 par image |
1k | $0.02 par image |
2k | $0.035 par image |
Paramètres
| Champ | Type | Valeur par défaut | Valeurs admises | Rôle |
|---|---|---|---|---|
promptObligatoire | string | — | jusqu’à 5 000 caractères | Say what to change. Refer to the images as Image 1, Image 2 and so on. |
image_urlsObligatoire | array<string (uri)> | — | jusqu’à 10 éléments | Source images that you are authorised to process, up to ten. Each one adds a small charge. |
aspect_ratioFacultatif | string | 1:1 | 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9 | Output aspect ratio. It does not follow the input automatically, so pick the one that matches your image. |
resolutionFacultatif | string | 2k | 1k, 1.5k, 2k | Output resolution tier. |
output_formatFacultatif | string | png | png, jpeg | File format of the returned image. |
backgroundFacultatif | string | auto | auto, transparent, opaque | Background treatment. Transparent needs PNG output; a JPEG always stays opaque. |
Exemple de requête
Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.
L’exemple utilise des fichiers d’exemple PopNow dans image_urls. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "bytedance/seedream-5.5/edit",
"input": {
"prompt": "Change the orange jacket to deep forest green and add soft golden-hour light; keep the face, pose and background unchanged",
"image_urls": [
"https://media.popnow.ai/influencer/examples/marco.webp"
],
"resolution": "2k"
}
}'La réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Découper en calques
bytedance/seedream-5.5/layer-decomposition
Prix
| Option | USD |
|---|---|
1.5k | $0.02 par image |
1k | $0.02 par image |
2k | $0.035 par image |
auto | $0.035 par image |
Paramètres
| Champ | Type | Valeur par défaut | Valeurs admises | Rôle |
|---|---|---|---|---|
image_urlObligatoire | string (uri) | — | — | The finished PNG or JPEG image to split into layers. |
promptFacultatif | string | — | jusqu’à 5 000 caractères | Optional: name the elements to separate. Leave empty to let the model pick the main elements. |
num_outputsFacultatif | integer | 10 | de 2 à 100 | Most images to return, counting the base image. You pay only for what comes back. |
resolutionFacultatif | string | auto | auto, 1k, 1.5k, 2k | Output resolution tier. auto follows the size of the source image. |
output_formatFacultatif | string | png | png, jpeg | File format of the base image. Layers are always transparent PNG. |
Exemple de requête
Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.
L’exemple utilise des fichiers d’exemple PopNow dans image_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "bytedance/seedream-5.5/layer-decomposition",
"input": {
"prompt": "Separate the clouds from the sky",
"image_url": "https://media.popnow.ai/live-wallpaper/in/clouds-97e42ef4.jpg",
"resolution": "auto",
"num_outputs": 10
}
}'La réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
