1. Create an API key
Open the APIAny.AI dashboard and create a project API key. Send your API key as a Bearer token:2. List available models
3. Run a chat completion
4. Create an image task
task_id. Poll the task until it completes:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Make your first APIAny.AI request.
Authorization: Bearer $APIANY_API_KEY
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. Poll the task until it completes:
curl https://apiany.ai/v1/tasks/task_123 \
-H "Authorization: Bearer $APIANY_API_KEY"