새 계정에는 7일 안에 사이트나 API에서 쓸 수 있는 무료 이미지 5장(1K, GPT Image 2, 2.5, 2.6)이 주어지므로, 결제 전에 호환성을 시험해 볼 수 있습니다.
from openai import OpenAI
client = OpenAI(base_url="https://api.cheapestimagen.com/v1", api_key="YOUR_KEY")
image = client.images.generate(
model="gpt-image-2.6",
prompt="a lighthouse on a cliff at dusk, oil painting",
size="1024x1024",
response_format="url",
)
print(image.data[0].url)
curl https://api.cheapestimagen.com/v1/images/generations \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-image-2.6", "prompt": "a lighthouse on a cliff at dusk", "size": "1024x1024", "response_format": "url"}'
기본 URL은 https://api.cheapestimagen.com/v1입니다. 키는 API 키 페이지에서 만드세요. 모든 모델과 해상도, 가격은 모델 페이지에, 충전 금액은 가격 페이지에 있습니다. 다른 판매처와의 비교는 가장 저렴한 이미지 생성 API를 보세요.