⚙️ 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