image-to-prompt

Image to Prompt - Generate prompt

Generate descriptive prompts from input images using AI analysis

post/v1/ai/image-to-prompt

Request

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

Request body

imagestring required

Input image for prompt generation. Can be base64-encoded string or URL.

webhook_urlstring uri

Webhook URL to notify the user when the task is completed

Example request

{
  "image": "https://example.com/image.jpg",
  "webhook_url": "https://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.