improve-prompt

Improve Prompt - Enhance prompt

Enhance user prompts for AI image or video generation using advanced AI models.

  • Image prompts: Improve a prompt for image generation
  • Video prompts: Improve a prompt for video generation
post/v1/ai/improve-prompt

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/ai/improve-prompt
  • Auth: API key in header x-magnific-api-key

Request body

promptstring required

Text prompt to improve for AI generation. Can be empty to generate a creative prompt.

type'image' | 'video' required

Type of generation (image or video)

languagestring

Language code for the improved prompt (ISO 639-1 format). Defaults to English if not specified.

webhook_urlstring uri

Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.

Example request

{
  "prompt": "A beautiful landscape",
  "type": "image",
  "language": "en",
  "webhook_url": "https://www.example.com/webhook"
}

Response

OK - The task exists and the status is returned

Example response

{
  "data": {
    "generated": [
      "https://openapi-generator.tech",
      "https://openapi-generator.tech"
    ],
    "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "status": "CREATED"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.