Skip to main content
POST
/
api
/
run
curl -X POST https://api.artificialstudio.ai/api/run \
  -H "Content-Type: application/json" \
  -H "Authorization: YOUR_API_KEY" \
  -d '{
    "tool": "edit-image",
    "input": {
      "model": "qwen-image-2-edit",
      "prompt": "Replace the background with a sandy beach at sunset",
      "image_urls": ["https://example.com/photo.jpg"]
    }
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "status": "processing",
  "tool": "edit-image",
  "createdAt": "2024-01-15T10:30:00.000Z"
}
Credits7 credits
Tooledit-image

Headers

NameTypeRequiredDescription
AuthorizationstringYesYour API key
Content-TypestringYesapplication/json

Body

ParameterTypeRequiredDescription
toolstringYesedit-image
input.modelstringYesqwen-image-2-edit
input.promptstringYesDescription of the edits to apply
input.image_urlsstring[]YesArray with a single image URL to edit
curl -X POST https://api.artificialstudio.ai/api/run \
  -H "Content-Type: application/json" \
  -H "Authorization: YOUR_API_KEY" \
  -d '{
    "tool": "edit-image",
    "input": {
      "model": "qwen-image-2-edit",
      "prompt": "Replace the background with a sandy beach at sunset",
      "image_urls": ["https://example.com/photo.jpg"]
    }
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "status": "processing",
  "tool": "edit-image",
  "createdAt": "2024-01-15T10:30:00.000Z"
}