FA

fal/gpt-image-2

Launched 2020-11-13 · Operating for 2015 daysCardACHHOT
Capability
Text to ImageImage to Image
Weighted Discount
Price Rank #4 / 13
Billing Mode
Per Token
Quality × Resolution
Param Completeness
67%
API Doc Score 58/100
Well-wrapped custom SDK, multiple delivery modes, lacks error code docs

Pricing

Quality \ Resolution1K2K4K
Low
$0.006
$0.006
$0.012
$0.012
$0.016
$0.016
Medium
$0.053
$0.053
$0.107
$0.107
$0.139
$0.139
High
$0.211
$0.211
$0.428
$0.428
$0.565
$0.565

Price unit: USD, official price from OpenAI public pricing (USD)

API

API Style
Custom SDK
Delivery
SyncAsync (Polling)Async (Webhook)
SDK
@fal-ai/client
Output
urlbase64

Integration

Base URL
https://api.fal.ai
Endpoint
POST openai/gpt-image-2
Auth
api-key-env
Content-Type
application/json

Request Parameters

NameTypeRequiredDefaultValues
promptstringrequired
image_sizestringoptionallandscape_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9+1
qualitystringoptionalhigh
autolowmediumhigh
num_imagesintegeroptional1
output_formatstringoptionalpng
jpegpngwebp
sync_modebooleanoptional
image_urlsarrayoptional
mask_urlstringoptional

Operational

Response Metadata
Yes

Developer Experience

Code Examples
javascript

extracted_from: https://fal.ai/models/openai/gpt-image-2/api, https://fal.ai/models/openai/gpt-image-2/edit/api; i2i endpoint: openai/gpt-image-2/edit; supports subscribe/queue/stream modes; custom size {width,height} also supported; image metadata in response (width,height,file_name,content_type); FAL_KEY env var for auth

Other Providers for This ModelGPT Image 2

#ProviderWeighted DiscountAPI ScoreCompletenessPayment
1-20%78/100
100%
WeChatAlipay+3
2-10%56/100
44%
StripeWeChat+2
3
FAfalCurrent
58/100
67%
CardACH
4+3%65/100
44%
Card
5-86%53/100
44%
AlipayWeChat+1
6+9%63/100
33%
Card
7+13%54/100
44%
StripePayPal+4