빠른 시작
API 키를 만들고 몇 분 안에 첫 이미지, 동영상, 음악 작업을 실행하세요.
API 키 생성
콘솔에서 이름과 만료 기간(만료 없음 포함)을 지정해 키를 생성하세요. 새 키에는 모든 표준 API 권한이 포함되며 로그인 후 다시 볼 수 있습니다. 키를 클라이언트 코드나 공개 저장소에 절대 넣지 마세요.
첫 요청 보내기
API 키를 생성해 HERMES_API_KEY로 내보낸 뒤 이 요청을 실행하세요. 다음 모델의 스키마에서 생성되었습니다: nano-banana-pro-text-to-image-economy.
shell
export HERMES_API_KEY=your_api_key# 1. Submit the task (asynchronous; returns 202 with a task id)
curl -X POST https://api.hermes-ai.net/api/v1/jobs \
-H "Authorization: Bearer $HERMES_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "nano-banana-pro-text-to-image-economy",
"input": {
"prompt": "A lighthouse on a rocky coast at sunrise, soft light",
"resolution": "1k"
}
}'
# 2. Poll until status is succeeded, failed or reconciliation_required
curl https://api.hermes-ai.net/api/v1/jobs/TASK_ID \
-H "Authorization: Bearer $HERMES_API_KEY"다른 모델 호출
다른 모델을 호출하려면 model과 input을 변경하세요. 각 모델 페이지에 고유한 예시가 있습니다: 모델 둘러보기