Expand a photo
expand_imageExtend a photo beyond its edges to a wider or taller shape, filling in matching scenery. OAuth uses site credits (from 24 credits per image with the default model). API keys use a separate USD wallet. Omit approval to get a quote, then confirm max_credits for OAuth or currency USD and decimal max_usd for API keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | ChatGPT only: the photo the user attached. Use image_url everywhere else. | |
| max_usd | No | API key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits. | |
| currency | No | Billing unit: USD for API keys; credits for OAuth (optional for existing OAuth clients). | |
| image_url | No | The photo to extend beyond its edges (https or popnow:// link). | |
| max_credits | No | OAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price. | |
| aspect_ratio | No | The new, larger shape: 16:9, 9:16, 1:1, 4:3, 3:4 or 3:2. Default 16:9. |