1. API Key を作成する
APIAny.AI のダッシュボードを開き、プロジェクト API Key を作成します。2. 利用可能なモデルを一覧表示する
3. チャット補完を実行する
4. 画像タスクを作成する
task_id が含まれます。タスクが完了するまでポーリングします:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
最初の 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 が含まれます。タスクが完了するまでポーリングします:
curl https://apiany.ai/v1/tasks/task_123 \
-H "Authorization: Bearer $APIANY_API_KEY"