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": "create-image",
    "input": {
      "model": "luma-photon-flash",
      "prompt": "A dreamy watercolor landscape of rolling hills at dawn"
    }
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "status": "processing",
  "tool": "create-image",
  "createdAt": "2024-01-15T10:30:00.000Z"
}
Credits1 credit
Toolcreate-image

Headers

NameTypeRequiredDescription
AuthorizationstringYesYour API key
Content-TypestringYesapplication/json

Body

ParameterTypeRequiredDescription
toolstringYescreate-image
input.modelstringYesluma-photon-flash
input.promptstringYesText prompt for image generation
input.aspect_ratiostringNoAspect ratio. One of 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, 9:21. Defaults to 4:3.
curl -X POST https://api.artificialstudio.ai/api/run \
  -H "Content-Type: application/json" \
  -H "Authorization: YOUR_API_KEY" \
  -d '{
    "tool": "create-image",
    "input": {
      "model": "luma-photon-flash",
      "prompt": "A dreamy watercolor landscape of rolling hills at dawn"
    }
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "status": "processing",
  "tool": "create-image",
  "createdAt": "2024-01-15T10:30:00.000Z"
}