{"id":25,"date":"2026-05-01T18:00:57","date_gmt":"2026-05-01T18:00:57","guid":{"rendered":"https:\/\/myimagetoprompt.com\/api\/"},"modified":"2026-05-01T19:25:44","modified_gmt":"2026-05-01T19:25:44","slug":"api","status":"publish","type":"page","link":"https:\/\/myimagetoprompt.com\/es\/api\/","title":{"rendered":""},"content":{"rendered":"<div style=\"max-width:900px;margin:0 auto;\">\n<h1>MyImageToPrompt API<\/h1>\n<p>The MyImageToPrompt REST API lets you integrate our image-to-prompt AI capabilities directly into your own applications, tools, and workflows. Build custom integrations for Photoshop plugins, browser extensions, automation pipelines, or any creative tool you can imagine.<\/p>\n<h2>API Endpoints<\/h2>\n<h3>POST \/wp-json\/mitp\/v1\/generate-prompt<\/h3>\n<p>Analyzes an image and generates an optimized AI prompt.<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>image<\/td>\n<td>string<\/td>\n<td>Yes*<\/td>\n<td>Base64-encoded image data URL (data:image\/&#8230;)<\/td>\n<\/tr>\n<tr>\n<td>mode<\/td>\n<td>string<\/td>\n<td>No<\/td>\n<td>Target platform: general, midjourney, sdxl, flux, dalle (default: general)<\/td>\n<\/tr>\n<tr>\n<td>type<\/td>\n<td>string<\/td>\n<td>No<\/td>\n<td>Input type: image or text (default: image)<\/td>\n<\/tr>\n<tr>\n<td>text<\/td>\n<td>string<\/td>\n<td>Yes*<\/td>\n<td>Text description to enhance (required if type=text)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>*Either image or text is required depending on the type parameter.<\/em><\/p>\n<h3>POST \/wp-json\/mitp\/v1\/describe-image<\/h3>\n<p>Generates a comprehensive description of any image.<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>image<\/td>\n<td>string<\/td>\n<td>Yes<\/td>\n<td>Base64-encoded image data URL<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example Request<\/h2>\n<pre style=\"background:#1a1a1a;padding:20px;border-radius:8px;overflow-x:auto;color:#a78bfa;\"><code>fetch('https:\/\/myimagetoprompt.com\/wp-json\/mitp\/v1\/generate-prompt', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application\/json' },\n  body: JSON.stringify({\n    image: 'data:image\/jpeg;base64,...',\n    mode: 'midjourney'\n  })\n})\n.then(res => res.json())\n.then(data => console.log(data.prompt));<\/code><\/pre>\n<h2>Example Response<\/h2>\n<pre style=\"background:#1a1a1a;padding:20px;border-radius:8px;overflow-x:auto;color:#a78bfa;\"><code>{\n  \"success\": true,\n  \"prompt\": \"Breathtaking mountain landscape at golden hour, dramatic peaks...\"\n}<\/code><\/pre>\n<h2>Authentication<\/h2>\n<p>The API uses the site&#8217;s built-in REST API. For production use, include the <code>X-WP-Nonce<\/code> header with a valid WordPress nonce to avoid rate limiting. The API key for OpenAI is stored securely server-side \u2014 you never need to expose your OpenAI credentials.<\/p>\n<h2>Rate Limits<\/h2>\n<p>Free tier: 60 requests per hour per IP address. For higher limits or dedicated API access, <a href=\"\/es\/contact\/\">contact us<\/a>.<\/p>\n<h2>Use Cases<\/h2>\n<ul>\n<li>Browser extensions for instant image-to-prompt conversion<\/li>\n<li>Photoshop \/ Lightroom plugins<\/li>\n<li>Discord bots for AI art communities<\/li>\n<li>Automated content pipelines<\/li>\n<li>Custom AI art workflow applications<\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>MyImageToPrompt API The MyImageToPrompt REST API lets you integrate our image-to-prompt AI capabilities directly into your own applications, tools, and workflows. Build custom integrations for Photoshop plugins, browser extensions, automation pipelines, or any creative tool you can imagine. API Endpoints POST \/wp-json\/mitp\/v1\/generate-prompt Analyzes an image and generates an optimized AI prompt. Parameter Type Required Description [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-25","page","type-page","status-publish","hentry"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/myimagetoprompt.com\/es\/wp-json\/wp\/v2\/pages\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myimagetoprompt.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/myimagetoprompt.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/myimagetoprompt.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myimagetoprompt.com\/es\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":2,"href":"https:\/\/myimagetoprompt.com\/es\/wp-json\/wp\/v2\/pages\/25\/revisions"}],"predecessor-version":[{"id":92,"href":"https:\/\/myimagetoprompt.com\/es\/wp-json\/wp\/v2\/pages\/25\/revisions\/92"}],"wp:attachment":[{"href":"https:\/\/myimagetoprompt.com\/es\/wp-json\/wp\/v2\/media?parent=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}