POST /v1/images/edits
Changed onEdit images with JSON inputs. Multipart uploads require normal authentication before conversion; accountless x402 applies to JSON edit requests only when the unauthenticated quote request includes x-x402: true.
Request
- Base URLhttps://api.nano-gpt.com/api
- URLhttps://api.nano-gpt.com/api/v1/images/edits
- Auth
- HTTP bearer
- or API key in header x-api-key
- or none
Headers
x-x402'true'
Set to true on unauthenticated accountless x402 quote requests. Without this header, unauthenticated requests return 401 missing_api_key.
Request body
Response
Image edit response
Example response
{
"data": [
{
"url": "https://...signed-url..."
}
]
}Changes
- info
endpoint added
- info