Skip to content

영상, 이미지 및 음악 생성

NordRouter는 공급자를 하나의 비동기 흐름으로 통합합니다. model, mode, inputs를 보내고 job ID를 받은 뒤 결과 URL을 읽습니다.

  • 카탈로그의 공개 ID만 사용하세요.
  • 화면비, 길이, 해상도, 오디오, 참조 이미지는 모델마다 다릅니다.
  • 가격과 보관 기간은 최신 카탈로그와 estimate 응답을 따릅니다.

전체 예제

원본 가이드의 실행 가능한 예제를 모두 아래에 보존했습니다. 사용 중인 도구와 운영체제에 해당하는 블록만 실행하세요.

bash
curl https://nordrouter.com/media/generate \
  -H "Authorization: Bearer sk-nr-YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "image/nano-banana-2",
    "input": { "prompt": "a cozy cabin in a winter forest, watercolor", "resolution": "2K" }
  }'
json
{ "id": "beefb531-…", "model": "image/nano-banana-2", "status": "processing",
  "poll": "https://nordrouter.com/media/job/beefb531-…" }
bash
curl https://nordrouter.com/media/job/beefb531-…
json
{ "id": "beefb531-…", "status": "done",
  "result_url": "https://nordrouter.com/media/file/beefb531-…",
  "cost_usd": 0.052, "error": null }
bash
curl https://nordrouter.com/media/generate \
  -H "Authorization: Bearer sk-nr-YOUR-KEY" -H "Content-Type: application/json" \
  -d '{
    "model": "image/nano-banana-2",
    "input": { "prompt": "…" },
    "callback_url": "https://your-server.com/webhooks/nordrouter",
    "callback_secret": "your-secret"
  }'
json
{ "event": "media.completed", "id": "beefb531-…", "status": "done",
  "result_url": "https://nordrouter.com/media/file/beefb531-…", "cost_usd": 0.052, "error": null }
python
import hmac, hashlib
expected = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
assert hmac.compare_digest(expected, request.headers["X-NR-Signature"])
json
{ "models": [
    { "id": "image/nano-banana-2", "type": "image",
      "fields": [ {"name":"prompt","type":"textarea"}, {"name":"resolution","type":"select","options":["1K","2K","4K"]} ],
      "est_usd": 0.052 }
  ], "retention_days": 14 }

공식 문서 및 관련 링크

TypeFamilyModes≈ price
🖼 ImagesNano Banana / 2 / Pro (image/nano-banana*)text→image, edit, up to 4Kfrom $0.025
🖼Imagen 4 Fast / Ultra (image/imagen4*)text→imagefrom $0.025
🖼GPT Image 1.5 / 2 (image/gpt-image-*)text→image, edit, up to 4Kfrom $0.025
🖼Flux 2 Pro / Flex (image/flux2-*)text→image, editfrom $0.03
🖼Seedream v4 / 4.5 / 5 Lite (image/seedream-*)text→image, editfrom $0.04
🖼Ideogram v3 / Character (image/ideogram-*)text, remix, characterfrom $0.02
🖼Qwen / Wan Image / Grok / Z-Imagetext→image, editfrom $0.01
🛠 UtilsTopaz / Recraft (image/*upscale*, image/recraft-remove-bg)upscale up to 8K, background removalfrom $0.01
🎬 VideoVeo 3.1 Lite / Fast / Quality (video/veo-3.1-*)text/image→videofrom $0.19
🎬Kling 2.1 → 3.0 (video/kling-*)text/image→video, motion, avatars, up to 4K & 15sfrom $0.16
🎬Wan 2.2 → 2.7 (video/wan-*)text/image/video→video, speech-to-videofrom $0.25
🎬Seedance 1.5 / 2 / Fast / Mini (video/seedance-*)text/image→video, up to 4K, audiofrom $0.06
🎬Hailuo 02 / 2.3 (video/hailuo-*)text/image→videofrom $0.08
🎬HappyHorse 1.0 / 1.1 (video/happyhorse-*)text/image/reference→video, video editfrom $0.70
🎬Grok Video / 1.5 (video/grok-*)text/image→video, up to 30sfrom $0.06
🎬Gemini Omni (video/gemini-omni)video with audio, up to 4Kfrom $0.39
🗣 AvatarsKling Avatar, OmniHuman, InfiniteTalk, Lip Syncphoto+audio→talking videofrom $0.19
🎵 MusicSuno V4–V5.5 (music/suno-v5)text/style→2 tracks~$0.08
🎙 SpeechElevenLabs Turbo / Multilingual (audio/elevenlabs-*)text→speech, vocal isolationfrom $0.04 / 1000 chars

관련 가이드

먼저 최소 텍스트 요청으로 연결을 확인한 다음 스트리밍, 도구 호출, 이미지와 같은 고급 기능을 추가하세요. API 키를 공개 코드나 브라우저 프런트엔드에 넣지 마세요.

문제 해결