AP
apimart/gpt-image-2
Launched 2025-09-25 · Operating for 238 daysWeChatAlipayCryptoPayPalCreemHOT
Capability
Text to ImageImage to Image
Weighted Discount
-93%
Price Rank #3 / 13
Billing Mode
Per Config
Resolution
Param Completeness
33%
API Doc Score 73/100
Complete doc structure but no code examples, error handling docs missing
Pricing
| Quality \ Resolution | 1K | 2K | 4K |
|---|---|---|---|
| Low | $0.006 $0.006 | $0.012 $0.012 | $0.018 $0.016 +12% |
| Medium | $0.006 $0.053 -89% | $0.012 $0.107 -89% | $0.018 $0.139 -87% |
| High | $0.006 $0.211 -97% | $0.012 $0.428 -97% | $0.018 $0.565 -97% |
Price unit: USD, official price from OpenAI public pricing (USD)
API
API Style
Custom RESTDelivery
Async (Polling)
SDK
REST Only
Output
url
Integration
Base URL
https://api.apimart.aiEndpoint
POST
/v1/images/generationsAuth
bearer(Authorization)
Content-Type
application/jsonPolling
/v1/tasks/{task_id}Request Parameters
| Name | Type | Required | Default | Values |
|---|---|---|---|---|
| model | string | required | gpt-image-2 | gpt-image-2 |
| prompt | string | required | — | — |
| n | integer | optional | 1 | — |
| size | string | optional | 1:1 | auto1:13:22:34:33:4+10 |
| resolution | string | optional | 1k | 1k2k4k |
| image_urls | array | optional | — | — |
| official_fallback | boolean | optional | false | — |
Operational
Timeout
Initial delay 10-20s, poll interval 3-5s, typical completion 44-53s
Developer Experience
Code Examples
curlpythonjavascriptgojavaphprubyswiftcsharpdartr
extracted_from: api文档类型/补充apimart; 11语言示例; n固定1; 15比例+pixel; resolution 1k/2k/4k; image_urls up to 16 URL+base64混填; 4K仅8比例; R2稳定链接; batch poll POST /v1/tasks/batch