API / Posts images
POST
/v1/postsCrée un post image.
Paramètres
| Nom | Emplacement | Type | Requis | Description |
|---|---|---|---|---|
format | corps | string | oui | square | portrait | story. |
prompt | corps | string | non | Sujet/consigne (sinon depuis le compte). |
Exemple de requête
curl -X POST https://deklip.com/v1/posts \
-H "Authorization: Bearer dk_live_VOTRE_CLE" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"format":"portrait","prompt":"annonce d'une nouvelle fonctionnalité"}'Exemple de réponse
{
"id": "post_1",
"status": "processing",
"cost": 0,
"credits_remaining": 320
}Via MCP: cet endpoint correspond à l'outil
generate_post.