⚙️ API
Documentation de l'API
Intégrez PromptShot AI dans vos propres applications. API REST simple avec données de formulaire multipart.
Premiers pas
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.
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
image | File | requis | Image file (JPEG, PNG, WebP — max 10MB) |
style | string | optionnel | "detailed" | "creative" | "technical" | "cinematic" (default: detailed) |
lang | string | optionnel | ISO language code (default: en) |
Réponse
{
"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.
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
image | File | requis | Image file (JPEG, PNG, WebP — max 10MB) |
purpose | string | optionnel | "general" | "accessibility" | "seo" | "social" (default: general) |
lang | string | optionnel | ISO language code (default: en) |
Réponse
{
"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.
Paramètres
| Name | Type | Required | Description |
|---|---|---|---|
subject | string | requis | Main subject or scene description |
style | string | optionnel | Art style (e.g. "Cinematic", "Anime") |
mood | string | optionnel | Mood or atmosphere |
platform | string | optionnel | "Midjourney" | "DALL-E 3" | "Stable Diffusion" |
Réponse
{
"prompts": [
{ "label": "Simple", "prompt": "..." },
{ "label": "Detailed", "prompt": "..." },
{ "label": "Ultra", "prompt": "..." }
],
"tips": ["tip1", "tip2"]
}Limites de débit
| 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.