메인 콘텐츠로 건너뛰기

1. API 키 만들기

APIAny.AI 대시보드를 열고 프로젝트 API 키를 만드세요.

2. 사용 가능한 모델 목록 조회

curl https://apiany.ai/v1/models \
  -H "Authorization: Bearer $APIANY_API_KEY"

3. 채팅 완성 실행

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." }
    ]
  }'

4. 이미지 작업 만들기

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"