Skip to main content

Quick Start

Get started with the Promptomize API in under 5 minutes.

Overview

The Promptomize API allows you to enhance and optimize prompts programmatically. Use it to improve prompts for text generation, image creation, code assistance, and more.

🚀

Simple Integration

Single endpoint, RESTful API

âš¡

Fast Response

Average latency under 2 seconds

🎯

Multi-Modal

Text, image, video, audio, code, 3D

Step 1: Get Your API Key

Create an API key in the Developer Portal. You'll need this key to authenticate all API requests.

Important: Keep your API key secure. Don't commit it to version control or expose it in client-side code.

Step 2: Make Your First Request

Use the /enhance endpoint to optimize a prompt.

cURL
curl -X POST https://api.promptomize.app/api/v1/public/enhance \
  -H "X-API-Key: pk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Write a professional email to schedule a meeting",
    "modality": "text"
  }'

Step 3: Handle the Response

The API returns the enhanced prompt along with usage information.

Response
{
  "enhancedPrompt": "Compose a professional business email requesting
    a meeting. Include: 1) Clear subject line with purpose and
    timeframe 2) Brief context about why the meeting is needed
    3) Specific proposed times/dates 4) Expected duration and
    attendee list 5) Any preparation needed. Maintain formal
    tone while being concise.",
  "usage": {
    "inputTokens": 42,
    "outputTokens": 156,
    "totalTokens": 198,
    "processingMs": 1234
  },
  "quota": {
    "used": 15,
    "limit": 100,
    "remaining": 85
  }
}

Code Examples

Python

import requests

response = requests.post(
    "https://api.promptomize.app/api/v1/public/enhance",
    headers={"X-API-Key": "pk_live_your_api_key"},
    json={
        "prompt": "Write a professional email",
        "modality": "text",
        "tone": "professional"
    }
)

data = response.json()
print(data["enhancedPrompt"])

JavaScript / TypeScript

const response = await fetch(
  "https://api.promptomize.app/api/v1/public/enhance",
  {
    method: "POST",
    headers: {
      "X-API-Key": "pk_live_your_api_key",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      prompt: "Write a professional email",
      modality: "text",
      tone: "professional"
    })
  }
);

const { enhancedPrompt } = await response.json();
console.log(enhancedPrompt);

Next Steps