Capability
Text to ImageImage to Image
Weighted Discount
-94%
Price Rank #5 / 13
Billing Mode
Per Config
Resolution
Param Completeness
44%
API Doc Score 55/100
OpenAI-compatible API, easy to use but only curl examples, lacks error code docs
Pricing
| Quality \ Resolution | 1K | 2K | 4K |
|---|---|---|---|
| Low | $0.0088 $0.006 +47% | $0.0118 $0.012 -2% | $0.0118 $0.016 -26% |
| Medium | $0.0088 $0.053 -83% | $0.0118 $0.107 -89% | $0.0118 $0.139 -92% |
| High | $0.0088 $0.211 -96% | $0.0118 $0.428 -97% | $0.0118 $0.565 -98% |
Price unit: USD, official price from OpenAI public pricing (USD)
API
API Style
OpenAI CompatibleDelivery
Sync
SDK
OpenAI SDK
Output
urlbase64
Integration
Base URL
https://api.openai-hk.comEndpoint
POST
/v1/images/generationsAuth
bearer(Authorization)
Content-Type
application/jsonRequest Parameters
| Name | Type | Required | Default | Values |
|---|---|---|---|---|
| model | string | required | — | gpt-image-2gpt-image-1.5gpt-image-1 |
| prompt | string | required | — | — |
| n | integer | optional | — | — |
| size | string | optional | auto | 1024x10241536x10241024x15362048x20482048x11523840x2160+1 |
| quality | string | optional | auto | lowmediumhighauto |
| response_format | string | optional | url | urlb64_json |
Developer Experience
Code Examples
curl
extracted_from: https://openai-hk.com/docs/openai/gpt-image.html; also supports /v1/images/edits for i2i