⚙️ API

API文档

将PromptShot AI集成到您自己的应用程序中。简单的多部分表单数据REST API。

入门

The PromptShot AI API is available on the Pro and Business plans.

Base URL

https://promptshotai.com

Authentication (coming soon)

Authorization: Bearer YOUR_API_KEY

All endpoints accept multipart/form-data for file uploads or application/json for text-only endpoints.

POST/api/image-to-prompt

Generate an AI prompt from an uploaded image.

参数

NameTypeRequiredDescription
imageFile必填Image file (JPEG, PNG, WebP — max 10MB)
stylestring可选"detailed" | "creative" | "technical" | "cinematic" (default: detailed)
langstring可选ISO language code (default: en)

响应

{
  "prompt": "A stunning sunset over rolling mountains...",
  "tags": ["landscape", "golden hour", "cinematic", "mountains"]
}
POST/api/tools/describe

Generate alt-text, SEO description, or social caption from an image.

参数

NameTypeRequiredDescription
imageFile必填Image file (JPEG, PNG, WebP — max 10MB)
purposestring可选"general" | "accessibility" | "seo" | "social" (default: general)
langstring可选ISO language code (default: en)

响应

{
  "description": "A detailed description of the image...",
  "altText": "Short one-sentence alt text",
  "keywords": ["keyword1", "keyword2"]
}
POST/api/tools/enhance-prompt

Generate optimized prompts from structured text parameters.

参数

NameTypeRequiredDescription
subjectstring必填Main subject or scene description
stylestring可选Art style (e.g. "Cinematic", "Anime")
moodstring可选Mood or atmosphere
platformstring可选"Midjourney" | "DALL-E 3" | "Stable Diffusion"

响应

{
  "prompts": [
    { "label": "Simple", "prompt": "..." },
    { "label": "Detailed", "prompt": "..." },
    { "label": "Ultra", "prompt": "..." }
  ],
  "tips": ["tip1", "tip2"]
}

速率限制

PlanRequests / MonthMax File Size
Free1005MB
Pro10,00010MB
BusinessUnlimited20MB

Need API Access?

Upgrade to Pro or Business to get your API key.

API文档 – PromptShot AI | PromptShot AI