DEVELOPER API

Documentation API REST Soguify-IA

Intégrez nos modèles IA (Claude 5.5, ChatGPT-4o, Gemini 2.5) directement dans vos applications tierces grâce à votre clé API B2B (`sgf_live_...`).

1. Authentification

Transmettez votre clé API dans l'en-tête HTTP Authorization :

Authorization: Bearer sgf_live_votre_cle_api
2. Générer une réponse IA (POST /api_direct/chat.php)
curl -X POST https://ia.soguify.com/api_direct/chat.php \
  -H "Authorization: Bearer sgf_live_votre_cle_api" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "prompt": "Rédige une synthèse exécutive en 3 points."
  }'