Black Friday: double credits on your first month, any plan · ends Sunday, Nov 29Cyber Monday extension: double credits on your first month, any plan · ends tonightBlack Friday: 2x creditsCyber Monday: 2x creditsSee plans
ScraperCity logo

Bulk LLM Prompts API Documentation

Bulk LLM Prompts

Run up to 5,000 prompts in one run through an open-weight AI model (gpt-oss-20b) on our own GPUs and get every answer back in one CSV, with the tokens each one used. Prompts that fail are listed in the file and not charged.

$0.00005 per 1,000 tokens (prompts plus answers, the run's total), minimum charge $0.12 a runPOST /api/v1/scrape/bulk-llm-prompts

Parameters

NameTypeRequiredDescription
promptsstring[]RequiredThe prompts, up to 5,000 a run, each up to 24,000 characters. Each can also be an object { id, prompt } to keep your own id in the file.Example: ["Write a one-line cold email opener for a roofing company in Austin.", "Summarize: ..."]
systemPromptstringOptionalOne system prompt sent with every prompt (up to 8,000 characters)Example: You are a concise B2B copywriter.
maxTokensnumberOptionalMost tokens in each answer (1 to 4,096)Default: 1024Example: 1024
temperaturenumberOptional0 for the same answer every time, up to 2 for more varied answersDefault: 0.7Example: 0.7
reasoningstringOptionalHow long the model thinks before answering: low, medium or highDefault: lowExample: low
jsonbooleanOptionaltrue asks for a JSON object as each answerDefault: falseExample: false

Examples

Answer a list of prompts

curl -X POST https://app.scrapercity.com/api/v1/scrape/bulk-llm-prompts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "systemPrompt": "You are a concise B2B copywriter.",
    "prompts": ["Write a one-line opener for a roofing company in Austin.", "Write a one-line opener for a dental clinic in Miami."]
  }'

Check status and download

curl -X GET https://app.scrapercity.com/api/v1/scrape/status/{runId} \
  -H "Authorization: Bearer YOUR_API_KEY"

# When status is SUCCEEDED, download the CSV
curl -L https://app.scrapercity.com/api/downloads/{runId} -o answers.csv

Use Cases

  • •Personalized first lines for a whole lead list
  • •Summaries, rewrites or translations of thousands of texts at once
  • •Drafting product descriptions, ad variants or SEO snippets in bulk

Best Practices

  • •Charged only for prompts that were answered; failed prompts are in the file with their error
  • •CSV columns: id, prompt, status, answer, input_tokens, output_tokens, error

Every scrape returns a runId. Poll GET /api/v1/scrape/status/{runId} until it completes, then download via GET /api/downloads/{runId}?format=csv.

Authenticate every request with Authorization: Bearer YOUR_API_KEY. See the full API reference for authentication, rate limits and error codes.