Capacité
Texte vers imageImage vers image
Remise pondérée
—
Classement prix #4 / 13
Mode de facturation
Par token
Qualité × Résolution
Complétude des paramètres
67%
Score doc. API 58/100
SDK personnalisé bien encapsulé, plusieurs modes de livraison, documentation des codes d'erreur manquante
Tarifs
| Qualité \ Résolution | 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 |
Unité de prix : USD, prix officiel de OpenAI tarification publique (USD)
API
Style API
Custom SDKLivraison
SyncAsync (Polling)Async (Webhook)
SDK
@fal-ai/client
Sortie
urlbase64
Intégration
URL de base
https://api.fal.aiPoint de terminaison
POST
openai/gpt-image-2Authentification
api-key-env
Content-Type
application/jsonParamètres de requête
| Nom | Type | Requis | Défaut | Valeurs |
|---|---|---|---|---|
| prompt | string | requis | — | — |
| image_size | string | optionnel | landscape_4_3 | square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9+1 |
| quality | string | optionnel | high | autolowmediumhigh |
| num_images | integer | optionnel | 1 | — |
| output_format | string | optionnel | png | jpegpngwebp |
| sync_mode | boolean | optionnel | — | — |
| image_urls | array | optionnel | — | — |
| mask_url | string | optionnel | — | — |
Opérationnel
Métadonnées de réponse
Oui
Expérience développeur
Exemples de code
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