Intégrez la génération de logos IA dans vos applications. Authentification par clé API, 5 endpoints REST.
Toutes les requêtes doivent inclure votre clé API dans le header X-API-Key.
curl https://brandmotion.app/api/v1/credits \ -H "X-API-Key: bm_live_votre_clé_ici"
Format de la clé
bm_live_xxxxxxxx (48 chars)
Obtenir une clé
Plan Business requis
Rate limit
10–120 req/min selon le tier
Générer 24 logos en 3 appels API :
# 1. Lancer la génération
curl -X POST https://brandmotion.app/api/v1/generate \
-H "X-API-Key: bm_live_xxxx" \
-H "Content-Type: application/json" \
-d '{"company_name":"Acme","description":"Startup tech moderne","style":"dynamic","pack":"starter"}'
# 2. Attendre que la génération se termine (polling)
curl https://brandmotion.app/api/v1/status/{project_id} \
-H "X-API-Key: bm_live_xxxx"
# 3. Récupérer les logos et leurs URLs
curl https://brandmotion.app/api/v1/logos/{project_id} \
-H "X-API-Key: bm_live_xxxx"pack)starter24 logos — Idéal pour testerpro150 logos — Usage régulierultimate500 logos — Volume élevéstyle)dynamicillustrationcinematicnoneLancer une génération de logos. Consomme 1 crédit.
Request body
{
"company_name": "Acme",
"description": "Tech startup moderne",
"style": "dynamic",
"pack": "starter"
}Response 200
{
"project_id": "uuid",
"status": "processing",
"pack": "starter",
"logo_count": 24,
"credits_remaining": 99
}La génération est asynchrone (5–10 min). Interrogez /status/{project_id} jusqu'à status === "completed".
// JavaScript — polling toutes les 10 secondes
async function waitForCompletion(projectId, apiKey) {
while (true) {
const res = await fetch(`https://brandmotion.app/api/v1/status/${projectId}`, {
headers: { 'X-API-Key': apiKey }
});
const data = await res.json();
if (data.status === 'completed') return data;
if (data.status === 'failed') throw new Error('Generation failed');
await new Promise(r => setTimeout(r, 10000)); // attendre 10s
}
}| Code | Signification |
|---|---|
400 | Paramètre invalide (body malformé, pack inconnu, etc.) |
401 | Clé API manquante ou invalide |
403 | Crédits insuffisants ou tier insuffisant |
404 | Ressource introuvable (project_id ou logo_id inexistant) |
429 | Rate limit dépassé (voir header Retry-After) |
500 | Erreur interne — contactez support@brandmotion.app |
Créez votre clé API depuis votre dashboard — plan Business requis.
Accéder à mes clés API →