Edit or stage a photo with AIComing soon
Makes an edited version of one photo: declutter, a new sky, relighting, a time of day, a season, a mood, virtual staging, a sharper upscale, or a change you…
Coming soon. Makes an edited version of one photo: declutter, a new sky, relighting, a time of day, a season, a mood, virtual staging, a sharper upscale, or a change you describe. Nothing structural changes. The edit is not on the listing until you apply it. Energy is spent per photo, and refunded if the edit fails.
Spends Matchai Energy. Returns 402 without doing anything when the account does not have enough Energy, or when this connection reached the Energy limit the account holder set for it.
Scopes: listings:write
Pricing: Included with the connection, and spends Matchai Energy.
AuthorizationBearer <matchai_<base62>>A personal API key, sent as Authorization: Bearer matchai_…. Create keys in Matchai under Settings → Connectors → Advanced (for developers). A key starts with matchai_ followed by letters and digits, carries the scopes chosen when it was created, and can be revoked at any time. Keys reach only the account that created them: to serve other professionals, use Connect with Matchai.
Scope: listings:write
listing_id*stringListing id, or its slug.
1 <= length <= 200Idempotency-Key?stringA unique string (a UUID works). Retrying with the same key within 24 hours returns the first response instead of acting twice. Reusing a key with a different body returns 409 idempotency_key_reused.
1 <= length <= 255application/json- body
media_id*stringThe photo to edit.
1 <= length <= 64kind*stringdeclutter, sky, relight, enhance, time_of_day, weather, season, mood, lively, custom (described in instruction), stage (virtual staging, with style) or upscale.
"declutter""sky""relight""enhance""time_of_day""weather""season""mood""lively""custom""stage""upscale"detail?stringtime_of_day: dusk, golden_hour or night. weather: clear, overcast or after_rain. season: spring, summer, autumn or winter. mood: warm, cool or cozy_lights_on. lively: couple, family, dog or guests.
length <= 40instruction?stringFor custom: the change, in your words. Nothing structural.
length <= 400style?stringFor stage.
"modern""scandinavian""traditional""minimal"The edit has started.
application/json- response
An edited version of a photo. It is not on the listing until you apply it.
id*stringEdit id.
1 <= length <= 64listing_id*stringListing id.
1 <= length <= 64media_id*stringThe photo it was made from.
1 <= length <= 64kind*stringThe edit kind requested.
status*string"queued""running""succeeded""failed""applied"preview_url?|The edited photo, once it succeeded.
uriapplied_media_id?|The media created or replaced when it was applied.
1 <= length <= 64error?|nullcreated_at*stringRequested.
date-timecompleted_at?|Finished.
date-timecurl -X POST 'https://api.matchai.co/v1/listings/string/photo-edits' \ -H 'Idempotency-Key: 6f1d3c2a-0b7e-4f5a-9c8d-1e2f3a4b5c6d' \ -H 'Content-Type: application/json' \ -d '{ "media_id": "string", "kind": "declutter"}'{ "id": "string", "listing_id": "string", "media_id": "string", "kind": "string", "status": "queued", "preview_url": "http://example.com", "applied_media_id": "string", "error": { "code": "string", "message": "string" }, "created_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z"}