4Z API

Submit Shorten Task

Endpoint: POST https://4zapi.com/mj/submit/shorten

Analyze a prompt and return a shortened version to optimize long prompts.

Request body (application/json)

  • prompt (string, required): Prompt to shorten
  • botType (string): Bot type ["MID_JOURNEY", "NIJI_JOURNEY"]
  • notifyHook (string): Callback URL
  • state (string): Custom pass-through state

Request example

{
  "botType": "MID_JOURNEY",
  "prompt": "a very beautiful and majestic white horse with flowing mane running through an enchanted mystical forest with golden rays of sunlight filtering through the ancient tall trees"
}