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": "seedream-4.5-edit",
      "prompt": "Change the sky to sunset colors",
      "image_urls": ["https://example.com/photo.jpg"]
    }
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "status": "processing",
  "tool": "edit-image",
  "createdAt": "2024-01-15T10:30:00.000Z"
}
Credits8 credits
Tooledit-image

Headers

NameTypeRequiredDescription
AuthorizationstringYesYour API key
Content-TypestringYesapplication/json

Body

ParameterTypeRequiredDescription
toolstringYesedit-image
input.modelstringYesseedream-4.5-edit
input.promptstringYesDescription of the edits to apply
input.image_urlsstring[]YesArray of 1 to 10 image URLs to edit
input.image_sizestringNoOutput aspect ratio. One of square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9. Defaults to square_hd.
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": "seedream-4.5-edit",
      "prompt": "Change the sky to sunset colors",
      "image_urls": ["https://example.com/photo.jpg"]
    }
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "status": "processing",
  "tool": "edit-image",
  "createdAt": "2024-01-15T10:30:00.000Z"
}