1. Créer une clé API
Ouvrez le tableau de bord APIAny.AI et créez une clé API de projet.2. Lister les modèles disponibles
3. Lancer un chat completion
4. Créer une tâche d’image
task_id. Interrogez la tâche jusqu’à ce qu’elle soit terminée :
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Effectuez votre première requête APIAny.AI.
curl https://apiany.ai/v1/models \
-H "Authorization: Bearer $APIANY_API_KEY"
curl https://apiany.ai/v1/chat/completions \
-H "Authorization: Bearer $APIANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4",
"messages": [
{ "role": "user", "content": "Write a concise product tagline for APIAny.AI." }
]
}'
curl https://apiany.ai/v1/images/generations \
-H "Authorization: Bearer $APIANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana",
"prompt": "A clean product hero image for an AI API gateway",
"size": "1k"
}'
task_id. Interrogez la tâche jusqu’à ce qu’elle soit terminée :
curl https://apiany.ai/v1/tasks/task_123 \
-H "Authorization: Bearer $APIANY_API_KEY"