Fähigkeit
Text zu BildBild zu Bild
Gewichteter Rabatt
—
Preisrang #4 / 13
Abrechnungsart
Pro Token
Qualität × Auflösung
Parametervollständigkeit
67%
API-Dok. Bewertung 58/100
Gut gekapseltes eigenes SDK, mehrere Auslieferungsmodi, Fehlerdokumentation fehlt
Preise
| Qualität \ Auflösung | 1K | 2K | 4K |
|---|---|---|---|
| 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 |
Preiseinheit: USD, offizieller Preis von OpenAI öffentlicher Preisgestaltung (USD)
API
API-Stil
Custom SDKLieferung
SyncAsync (Polling)Async (Webhook)
SDK
@fal-ai/client
Ausgabe
urlbase64
Integration
Basis-URL
https://api.fal.aiEndpunkt
POST
openai/gpt-image-2Authentifizierung
api-key-env
Content-Type
application/jsonAnfrageparameter
| Name | Typ | Pflicht | Standard | Werte |
|---|---|---|---|---|
| prompt | string | pflicht | — | — |
| image_size | string | optional | landscape_4_3 | square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9+1 |
| quality | string | optional | high | autolowmediumhigh |
| num_images | integer | optional | 1 | — |
| output_format | string | optional | png | jpegpngwebp |
| sync_mode | boolean | optional | — | — |
| image_urls | array | optional | — | — |
| mask_url | string | optional | — | — |
Betrieb
Antwort-Metadaten
Ja
Entwicklererfahrung
Codebeispiele
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