Bang gia API GPT Image 1
Pay-as-you-go access through PiAPI.
GPT Image 1 API
$0.011 /anh
Starting price per generated image.
Features
State-of-the-Art Image Generation
GPT-image-1 excels in generating stunningly detailed images, turning imagination into tangible and serene landscapes to elaborate graphics.
Context Learning
Upload and analyze your images, as GPT Image 1 effortlessly integrates their details into new creations; empowering dynamic, context-aware designs.
Rich World Knowledge
With native multimodal capabilities, GPT Image 1 API seamlessly connects textual insights with visual representation, enhancing image generation with informed content.
Photorealism and Artistic Expression
Trained on diverse styles; the GPT-Image-1 model ensures strikingly realistic images, yet accommodates shifts from photorealism to abstract artistry.
Integrate in Minutes
Create your API key
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Top up credits
Add credits on the billing page when you are ready to scale beyond the free tier.
Call the API
POST your first task following the API docs, then poll the task until the result is ready.
Iterate in the playground
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gpt-image-1",
"task_type": "gpt-image-generation",
"input": {
"prompt": "A steaming bowl of ramen viewed from above, rich broth, sliced pork, soft-boiled egg, cinematic food photography, natural lighting.",
"n": 1,
"size": "1024x1024",
"quality": "low"
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"image_url": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run gpt-image-1 \ prompt="A steaming bowl of ramen viewed from above, rich broth, sliced pork, soft-boiled egg, cinematic food photography, natural lighting." \ n=1 \ size=1024x1024 \ quality=low ✓ Task completed! https://img.theapi.app/ephemeral/…
Câu hỏi thường gặp
Toi co the su dung anh duoc tao tu GPT Image 1 API cho muc dich thuong mai khong?
Noi dung do GPT tao ra khong duoc bao ho ban quyen, vi vay nguoi dung co the su dung anh da tao cho muc dich mong muon.
Có hoàn tiền không?
Không, chúng tôi không hoàn tiền. Nhưng khi bạn đăng ký lần đầu trên Workspace của PiAPI, bạn sẽ nhận được tín dụng miễn phí để thử API trước khi thanh toán!
Tôi có thể liên hệ với nhóm của bạn như thế nào?
Vui lòng gửi email cho chúng tôi tại support@piapi.ai — chúng tôi rất muốn nói chuyện thêm về sản phẩm của mình!
More questions? See the API docs.
Our blog
GPT Image 1 API

