API ReferenceAI StudioRefine studio asset

Refine studio asset

Edit a generated studio asset using a natural language prompt message.

POST
/studio/edit

Authorization

x-api-key<token>

API Key authentication via header

In: header

Request Body

application/jsonRequired
mappingItemIdRequiredstring
Format: "uuid"
userMessageRequiredstring
modelstring
curl -X POST "https://niravai.com/api/v1/studio/edit" \
  -H "x-api-key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mappingItemId": "509c7c74-cdcf-4723-b23d-a4a9e42951c6",
    "userMessage": "Add warm sunset studio lighting and soft drop shadows",
    "model": "string"
  }'

Edited image response with updated preview URL