API Documentation

Console.Core.Today - 하나의 API로 여러 AI 서비스 이용하기

Quick Start Guide

Console.Core.Today를 사용하면 단일 API 키로 여러 AI 서비스를 이용할 수 있습니다. 3단계로 시작해보세요.

Base URL

https://api.core.today/v1
1

API Key 발급받기

대시보드의 API Keys 페이지에서 새 API Key를 생성합니다.

  1. "Create New API Key" 버튼을 클릭합니다
  2. Key 이름을 입력합니다 (예: "Production", "Development")
  3. 생성된 API Key를 복사합니다 (한 번만 표시됩니다)

중요: API Key는 생성 시 한 번만 표시됩니다. 안전한 곳에 저장해두세요. 분실 시 새로 발급받아야 합니다.

2

Prediction 요청하기

X-API-Key 헤더에 발급받은 API Key를 넣어 요청합니다.

curl -X POST https://api.core.today/v1/predictions \
  -H "X-API-Key: cdt_xxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "replicate/stability-ai/sdxl",
    "input": {
      "prompt": "a photo of an astronaut riding a horse on mars",
      "width": 1024,
      "height": 1024
    }
  }'

모델 형식: provider/model_name

3

결과 조회하기

요청 시 반환된 job_id로 결과를 조회합니다. 상태가 completed가 될 때까지 폴링합니다.

curl -X GET https://api.core.today/v1/predictions/{job_id} \
  -H "X-API-Key: cdt_xxxxxxxxxxxxxxxxxxxx"

성공 응답 예시:

{
  "job_id": "job_abc123xyz",
  "status": "completed",
  "provider": "replicate",
  "model": "stability-ai/sdxl",
  "result": "https://cdn.example.com/results/job_abc123xyz/output.png",
  "public_url": null
}

지원 모델

사용 가능한 모델 목록은 Models 페이지에서 확인하세요.