API docs / Text models

img2prompt API

Generates text prompts from input images that can be used with Stable Diffusion to recreate similar-looking versions of the original image. Uses OpenAI CLIP models to analyze images against various artists, mediums, and styles, combining results with BLIP captioning to suggest comprehensive text prompts. Optimized for CLIP ViT-L/14 architecture.

Model id
methexis-inc/img2prompt
Provider
methexis-inc
Output
Text
Price
From 5 credits per run, the same as on voor.ai. Options such as length or resolution can change it.

Request

POST https://voor.ai/v1/generations with "model": "methexis-inc/img2prompt". Poll GET /v1/tasks/{id} or receive the signed webhook. See the overview for keys, idempotency, webhooks and errors.

curl https://voor.ai/v1/generations \
  -H "Authorization: Bearer $VOOR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "methexis-inc/img2prompt",
  "input": {
    "reference_images": [
      "https://example.com/input.png"
    ]
  },
  "callback_url": "https://example.com/webhooks/voor"
}'

# Then poll the task (or wait for the webhook):
curl https://voor.ai/v1/tasks/TASK_ID \
  -H "Authorization: Bearer $VOOR_API_KEY"

Input parameters

NameTypeDetails
reference_imagesrequiredarray of URLs

Input image

Up to 1 files · Accepts image/*