PopNowAPI 문서

PopNow API 문서

API 키 하나로 이미지·영상·오디오·채팅을 이용하세요. 본인의 PopNow 잔액에서 미국 달러로 결제합니다.

어디서 시작할까요

세 단계로 첫 이미지 만들기

  1. 키를 만들고 잔액 충전하기

    popnow.ai에 로그인해 API 콘솔에서 sk-popnow- 키를 만든 뒤 결제 페이지에서 충전하세요. 미국 달러 기준 API 잔액은 $0에서 시작하며 API 호출, 개발자용 MCP, Playground 이용 요금을 결제하는 데 사용됩니다.

  2. 요청 한 번 보내기

    아래 내용을 터미널에 붙여 넣으세요. Z-Image로 이미지 한 장을 생성하며 비용은 $0.01 USD입니다. 최대 60초 동안 결과를 기다립니다.

    POST /api/v1/jobs/createTask?wait=60
    export POPNOW_API_KEY="sk-popnow-..."   # your key from the API console
    
    curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
      -H "Authorization: Bearer $POPNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
      "model": "alibaba/z-image-turbo/text-to-image",
      "input": {
        "prompt": "A small red fox curled up in a teacup, soft morning light, studio photo"
      }
    }'
  3. 결과 열기

    응답의 output.assets[0].url이 이미지의 서명된 링크입니다. 영상처럼 오래 걸리는 작업은 taskId가 먼저 오니, 나중에 recordInfo로 조회하거나 웹훅으로 받으세요.

    200 OK
    {
      "code": 200,
      "msg": "success",
      "data": {
        "taskId": "job_01JH8Z4Q5W2N7R3K9M6P1C0VXD",
        "model": "alibaba/z-image-turbo/text-to-image",
        "state": "succeeded",
        "output": {
          "assets": [
            {
              "url": "https://…signed-link…",
              "expiresAt": "2026-10-16T09:20:00Z",
              "mime": "image/png",
              "width": 1024,
              "height": 1024
            }
          ]
        },
        "costUsd": "0.01",
        "settled": true
      },
      "request_id": "req_…"
    }
    A small red fox curled up in a teacup, soft morning light, studio photo
    output.assets[0].url

레퍼런스