⚙️ API
API Dokümantasyonu
PromptShot AI'ı kendi uygulamalarınıza entegre edin. Basit REST API ile çoklu form verisi.
Başlarken
The PromptShot AI API is available on the Pro and Business plans.
Base URL
https://promptshotai.comAuthentication (coming soon)
Authorization: Bearer YOUR_API_KEYAll endpoints accept multipart/form-data for file uploads or application/json for text-only endpoints.
POST
/api/image-to-promptGenerate an AI prompt from an uploaded image.
Parametreler
| Name | Type | Required | Description |
|---|---|---|---|
image | File | zorunlu | Image file (JPEG, PNG, WebP — max 10MB) |
style | string | isteğe bağlı | "detailed" | "creative" | "technical" | "cinematic" (default: detailed) |
lang | string | isteğe bağlı | ISO language code (default: en) |
Yanıt
{
"prompt": "A stunning sunset over rolling mountains...",
"tags": ["landscape", "golden hour", "cinematic", "mountains"]
}POST
/api/tools/describeGenerate alt-text, SEO description, or social caption from an image.
Parametreler
| Name | Type | Required | Description |
|---|---|---|---|
image | File | zorunlu | Image file (JPEG, PNG, WebP — max 10MB) |
purpose | string | isteğe bağlı | "general" | "accessibility" | "seo" | "social" (default: general) |
lang | string | isteğe bağlı | ISO language code (default: en) |
Yanıt
{
"description": "A detailed description of the image...",
"altText": "Short one-sentence alt text",
"keywords": ["keyword1", "keyword2"]
}POST
/api/tools/enhance-promptGenerate optimized prompts from structured text parameters.
Parametreler
| Name | Type | Required | Description |
|---|---|---|---|
subject | string | zorunlu | Main subject or scene description |
style | string | isteğe bağlı | Art style (e.g. "Cinematic", "Anime") |
mood | string | isteğe bağlı | Mood or atmosphere |
platform | string | isteğe bağlı | "Midjourney" | "DALL-E 3" | "Stable Diffusion" |
Yanıt
{
"prompts": [
{ "label": "Simple", "prompt": "..." },
{ "label": "Detailed", "prompt": "..." },
{ "label": "Ultra", "prompt": "..." }
],
"tips": ["tip1", "tip2"]
}Hız Sınırları
| Plan | Requests / Month | Max File Size |
|---|---|---|
| Free | 100 | 5MB |
| Pro | 10,000 | 10MB |
| Business | Unlimited | 20MB |
Need API Access?
Upgrade to Pro or Business to get your API key.