범용 생성 API
범용 생성 API를 사용하여 프롬프트 생성기, 위키 등 다양한 AI 콘텐츠를 생성하고 관리할 수 있습니다.인증
모든 API 요청에는 PULITZER-API-KEY 헤더에 API 키가 필요합니다.
헤더 설정
PULITZER-API-KEY: YOUR_API_KEYcurl -X GET "https://api.pulitzer.ai/live/openapi/generic-creation/list" \
-H "PULITZER-API-KEY: YOUR_API_KEY"범용 콘텐츠 생성
프롬프트 생성기 또는 위키를 AI로 생성합니다.
POST https://api.pulitzer.ai/live/openapi/generic-creation/create요청 본문
{
"keyword": "인스타그램 카드뉴스 제작 가이드",
"creation_type": "prompt_generator",
"sub_type": "cardnews",
"language": "ko",
"is_public": false
}파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
keyword | string | Yes | 생성 키워드 또는 요청 내용 |
creation_type | string | Yes | 생성 유형: prompt_generator, wiki |
sub_type | string | No | 서브 유형 (prompt_generator: shorts/cardnews, wiki: namuwiki/wikipedia) |
language | string | No | 생성 언어 (기본값: ko) |
is_public | boolean | No | 공개 여부 (기본값: false) |
과금
건당 1,000원 (API 크레딧 차감)
curl -X POST "https://api.pulitzer.ai/live/openapi/generic-creation/create" \
-H "PULITZER-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "인스타그램 카드뉴스 제작 가이드",
"creation_type": "prompt_generator",
"sub_type": "cardnews",
"language": "ko",
"is_public": false
}'AI 수정
생성된 콘텐츠를 AI로 수정합니다.
POST https://api.pulitzer.ai/live/openapi/generic-creation/modify-ai요청 본문
{
"creation_id": 123,
"modification_prompt": "더 구체적인 예시를 추가해주세요"
}파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
creation_id | integer | Yes | 수정할 생성 결과 ID |
modification_prompt | string | Yes | 수정 요청사항 |
curl -X POST "https://api.pulitzer.ai/live/openapi/generic-creation/modify-ai" \
-H "PULITZER-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"creation_id": 123,
"modification_prompt": "더 구체적인 예시를 추가해주세요"
}'상세 조회
생성 결과의 상세 정보를 조회합니다.
GET https://api.pulitzer.ai/live/openapi/generic-creation/detail/{creation_id}응답
{
"status": "SUCCESS",
"success": true,
"data": {
"id": 123,
"title": "인스타그램 카드뉴스 제작 가이드",
"content": "...",
"creation_type": "prompt_generator",
"sub_type": "cardnews",
"language": "ko",
"is_public": false,
"keyword": "인스타그램 카드뉴스 제작 가이드",
"created_at": "2026-05-28T10:00:00"
}
}curl -X GET "https://api.pulitzer.ai/live/openapi/generic-creation/detail/123" \
-H "PULITZER-API-KEY: YOUR_API_KEY"목록 조회
사용자의 생성 결과 목록을 조회합니다.
GET https://api.pulitzer.ai/live/openapi/generic-creation/listQuery Parameters
| 파라미터 | 타입 | 설명 |
|---|---|---|
page | integer | 페이지 번호 (기본값: 1) |
page_size | integer | 페이지 크기 (1~100, 기본값: 20) |
creation_type | string | 생성 유형 필터 (선택) |
curl -X GET "https://api.pulitzer.ai/live/openapi/generic-creation/list?page=1&page_size=20&creation_type=prompt_generator" \
-H "PULITZER-API-KEY: YOUR_API_KEY"에러 응답
| HTTP Status | 설명 |
|---|---|
| 402 | API 크레딧 부족 |
| 404 | 생성 결과를 찾을 수 없음 |
| 403 | 접근 권한 없음 |
| 500 | 생성 실패 |